Skip to content

A C++ implementation(Demo) of RAFT consensus algorithm.

License

Notifications You must be signed in to change notification settings

Itachi666/cpp-raft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A C++ implementation(Demo) of RAFT consensus algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published