{"id":13470409,"url":"https://github.com/baidu/bfs","last_synced_at":"2025-05-15T06:02:20.964Z","repository":{"id":23205392,"uuid":"26562172","full_name":"baidu/bfs","owner":"baidu","description":"The Baidu File System.","archived":false,"fork":false,"pushed_at":"2018-12-03T15:52:28.000Z","size":11938,"stargazers_count":2858,"open_issues_count":119,"forks_count":553,"subscribers_count":220,"default_branch":"master","last_synced_at":"2025-04-14T08:14:02.846Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baidu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-13T00:00:29.000Z","updated_at":"2025-04-07T01:47:07.000Z","dependencies_parsed_at":"2022-07-18T10:38:58.101Z","dependency_job_id":null,"html_url":"https://github.com/baidu/bfs","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu%2Fbfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu%2Fbfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu%2Fbfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu%2Fbfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baidu","download_url":"https://codeload.github.com/baidu/bfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254283336,"owners_count":22045140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:00:29.880Z","updated_at":"2025-05-15T06:02:20.946Z","avatar_url":"https://github.com/baidu.png","language":"C++","readme":"[The Baidu File System](http://github.com/baidu/bfs)\n=======\n\n [![Build Status](https://travis-ci.org/baidu/bfs.svg?branch=master)](https://travis-ci.org/baidu/bfs)  [![Build Status](https://scan.coverity.com/projects/8135/badge.svg)](https://scan.coverity.com/projects/myawan-bfs-1/) \n\nThe Baidu File System (BFS) is a distributed file system designed to support real-time applications. Like many other distributed file systems, BFS is highly fault-tolerant. But different from others, BFS provides low read/write latency while maintaining high throughput rates. Together with [Galaxy](https://github.com/baidu/galaxy) and [Tera](http://github.com/baidu/tera), BFS supports many real-time products in Baidu, including Baidu webpage database, Baidu incremental indexing system, Baidu user behavior analysis system, etc.\n\n## Features\n1. Continuous availability \n\t* Nameserver is implemented as a `raft group`, no single point failure.\n2. High throughput\n\t* High performance data engine to maximize IO utils.\n3. Low latency\n\t* Global load balance and slow node detection.\n4. Linear scalability\n\t* Support multi data center deployment and up to 10,000 data nodes.\n\n## Architecture\n![架构图](resources/images/bfs-arch2-mini.png)\n\n## Quick Start\n#### Build  \n    ./build.sh\n#### Standalone BFS\n    cd sandbox\n    ./deploy.sh\n    ./start_bfs.sh\n\n## How to Contribute\n1. Please read the [RoadMap](docs/en/roadmap.md) or source code.  \n2. Find something you are interested in and start working on it.\n3. Test your code by simply running `make test` and `make check`.\n4. Make a pull request.\n5. Once your code has passed the code-review and merged, it will be run on thousands of servers :)\n\n\n## Contact us\nopensearch@baidu.com\n\n====\n\n[百度文件系统](http://github.com/baidu/bfs)\n====\n\n百度的核心业务和数据库系统都依赖分布式文件系统作为底层存储，文件系统的可用性和性能对上层搜索业务的稳定性与效果有着至关重要的影响。现有的分布式文件系统（如HDFS等）是为离线批处理设计的，无法在保证高吞吐的情况下做到低延迟和持续可用，所以我们从搜索的业务特点出发，设计了百度文件系统。\n\n## 核心特点\n1. 持续可用  \n\t* 数据多机房、多地域冗余，元数据通过Raft维护一致性，单个机房宕机，不影响整体可用性。  \n2. 高吞吐  \n\t* 通过高性能的单机引擎，最大化存储介质IO吞吐；  \n3. 低延时  \n\t* 全局负载均衡、慢节点自动规避  \n4. 水平扩展  \n\t* 设计支持两地三机房，1万+台机器管理。  \n\n## 架构\n![架构图](resources/images/bfs-arch2-mini.png)\n\n## 快速试用\n#### 构建\n    ./build.sh\n#### 单机版BFS\n    cd sandbox\n    ./deploy.sh\n    ./start_bfs.sh\n\n## 如何参与开发\n1. 阅读[RoadMap](docs/cn/roadmap.md)文件或者源代码，了解我们当前的开发方向\n2. 找到自己感兴趣开发的的功能或模块\n3. 进行开发，开发完成后自测功能是否正确，并运行make test及make check检查是否可以通过已有的测试case\n4. 发起pull request\n5. 在code-review通过后，你的代码便有机会运行在百度的数万台服务器上~\n\n\n## 联系我们\n邮件：opensearch@baidu.com  \nQQ群：188471131\n\n","funding_links":[],"categories":["C++","Distributed Filesystem","Framework","`Distributed Filesystem `"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaidu%2Fbfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaidu%2Fbfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaidu%2Fbfs/lists"}