1 Star 0 Fork 0

yyangcc / bfs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

The Baidu File System

Build Status Build Status

The 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 and Tera, BFS supports many real-time products in Baidu, including Baidu webpage database, Baidu incremental indexing system, Baidu user behavior analysis system, etc.

Features

  1. Continuous availability
    • Nameserver is implemented as a raft group, no single point failure.
  2. High throughput
    • High performance data engine to maximize IO utils.
  3. Low latency
    • Global load balance and slow node detection.
  4. Linear scalability
    • Support multi data center deployment and up to 10,000 data nodes.

Architecture

架构图

Quick Start

Build

./build.sh

Standalone BFS

cd sandbox
./deploy.sh
./start_bfs.sh

How to Contribute

  1. Please read the RoadMap or source code.
  2. Find something you are interested in and start working on it.
  3. Test your code by simply running make test and make check.
  4. Make a pull request.
  5. Once your code has passed the code-review and merged, it will be run on thousands of servers :)

Contact us

opensearch@baidu.com

====

百度文件系统

百度的核心业务和数据库系统都依赖分布式文件系统作为底层存储,文件系统的可用性和性能对上层搜索业务的稳定性与效果有着至关重要的影响。现有的分布式文件系统(如HDFS等)是为离线批处理设计的,无法在保证高吞吐的情况下做到低延迟和持续可用,所以我们从搜索的业务特点出发,设计了百度文件系统。

核心特点

  1. 持续可用
    • 数据多机房、多地域冗余,元数据通过Raft维护一致性,单个机房宕机,不影响整体可用性。
  2. 高吞吐
    • 通过高性能的单机引擎,最大化存储介质IO吞吐;
  3. 低延时
    • 全局负载均衡、慢节点自动规避
  4. 水平扩展
    • 设计支持两地三机房,1万+台机器管理。

架构

架构图

快速试用

构建

./build.sh

单机版BFS

cd sandbox
./deploy.sh
./start_bfs.sh

如何参与开发

  1. 阅读RoadMap文件或者源代码,了解我们当前的开发方向
  2. 找到自己感兴趣开发的的功能或模块
  3. 进行开发,开发完成后自测功能是否正确,并运行make test及make check检查是否可以通过已有的测试case
  4. 发起pull request
  5. 在code-review通过后,你的代码便有机会运行在百度的数万台服务器上~

联系我们

邮件:opensearch@baidu.com
QQ群:188471131

Copyright (c) 2014, Bluebore All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of bfs nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

The Baidu File System. 展开 收起
C++
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/yyangcc/bfs.git
git@gitee.com:yyangcc/bfs.git
yyangcc
bfs
bfs
master

搜索帮助