-
By default, the code uses 3 nodes. Change N in both server and client files to experiment on using more nodes.
git clone https://github.com/adikul30/raft
cd raft/server/main
go run server.go -logtostderr=true -v=1
go run server.go -logtostderr=true -v=2
After a leader has been elected, to add new logs to raft, run the client.
-
cd raft/client/main
go run client.go
title={In search of an understandable consensus algorithm},
author={Ongaro, Diego and Ousterhout, John},
booktitle={2014 $\{$USENIX$\}$ Annual Technical Conference ($\{$USENIX$\}$$\{$ATC$\}$ 14)},
pages={305--319},
year={2014}
}
- Excellent MIT OCW (https://pdos.csail.mit.edu/6.824/schedule.html) lectures and labs.
- This awesome vizualization (http://thesecretlivesofdata.com/raft/)