This is a C++ implementation of the RAFT distributed consensus protocol. Just for learning.
For more details on Raft, you can read In Search of an Understandable Consensus Algorithm by Diego Ongaro and John Ousterhout.
Also have some reference from chishaxie/py-raft.
Todo:
- Cluster membership changes
- Log compaction
$ mkdir build
$ cd build
$ cmake ../ && make
Back to the source dir.
$ make node1
$ make node2
$ make node3
$ make server
$ make test