tREADME.md - sraft - simple raft implementation (HTM) git clone https://git.parazyd.org/sraft (DIR) Log (DIR) Files (DIR) Refs (DIR) README --- tREADME.md (445B) --- 1 sraft 2 ===== 3 4 Simple Raft consensus implementation. 5 6 ``` 7 $ cargo build --example peer 8 $ ./target/debug/examples/peer -p 127.0.0.1:13002 -p 127.0.0.1:13003 -i 1 -l 127.0.0.1:13001 9 $ ./target/debug/examples/peer -p 127.0.0.1:13001 -p 127.0.0.1:13001 -i 2 -l 127.0.0.1:13002 10 $ ./target/debug/examples/peer -p 127.0.0.1:13001 -p 127.0.0.1:13002 -i 3 -l 127.0.0.1:13003 11 ``` 12 13 Try stopping and starting certain nodes to see how new leaders are 14 elected.