在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Gan-Tu/cppGFS2.0开源软件地址:https://github.com/Gan-Tu/cppGFS2.0开源编程语言:C++ 88.9%开源软件介绍:cppGFS2.0A distributed Google File System (GFS), implemented in C++ DemoGetting StartedIn this project, we plan to use Bazel as our main build tool. You can install Bazel by following their website instructions. As of writing, you will need at least Bazel version 5.1.0 for a proper working demo. Installation scripts have been provided to install bazel in For example, for Linux, run with desired Bazel version:
For MacBook (Intel Chip), use For MacBook (Apple Chips), use Then, from the root directory, you can run Bazel commands as normal. For example:
To learn more about how to use Bazel, or how to write Bazel build rule for C++, see the official documentation. Note: If you get an error in the form of Running GFS clientMake sure you have the GFS server clusters are up and running. You can either write a binary by importing the GFS client at To build the command line binary, run
Then, you can run any of these modes:
Running GFS server clusters using DockerMake sure you have Docker and Docker compose installed To start all servers and expose respective server ports outside of Docker for connection, run:
As of writing, the Dockerfile doesn't support MacBook M1 Max yet. You will need to manually update the file to install/use a ARM64 compatible Bazel image. You can refer to the Then, you can use GFS client to interact with the cluster. After you are done with it, turn everything off by typing Ctrl + C, and then
Benchmark PerformanceWe use Google Benchmarks open source library to test our performance. To run them, simply start the GFS cluster in the background, and run the benchmark binaries in Known Issues
C++ Style GuidePlease, if possible, follow Google C++ style guide. If you use an IDE or any common text editors, they have extensions that help you auto format and lint your code for style errors. |
2022-08-15
2022-08-17
2022-09-23
2023-10-27
2022-08-18
请发表评论