Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 793 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 793 Bytes

cpp-raft

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

Dep

Build

$ mkdir build 
$ cd build
$ cmake ../ && make

Run

Back to the source dir.

$ make node1  	
$ make node2	
$ make node3	
$ make server   

Test

$ make test