An implementation of the Raft Consensus algorithm for the Cornell Data Science Distributed Game Server project.\
- Run
cargo run --bin directory
, which will host the directory web server at localhost:8000.
- First, declare the list of peer IP addresses in data/peers.txt, one on each line.
- To run a Raft node at a certain port, run
cargo run --bin node <port> localhost
from any directory. - Type 'start' when prompted to start up the node and connect to its peers.
- First, declare the list of peer IP addresses in data/peers.txt, one on each line.
- Run
cargo run --bin client
from any directory.
- To run the tests, run
cargo test
from any directory.
protobuf3
brew install protobuf
apt-get protobuf-compiler
on Ubuntu may not get the right version.
Install a precompiled binary of version 3.15.8+ from https://grpc.io/docs/protoc-installation/
reqwest depends on openssl which may require installing additional tooling https://docs.rs/openssl/0.10.16/openssl/#automatic