Learning rust - by implementing the raft protocol.
Goes without saying but - please don't use this anywhere.
cargo build
./target/debug/ruft
This will start a server with the following default cluster configuration:
127.0.0.1:20000
127.0.0.1:20001
127.0.0.1:20002
This server itself will start on port :20000
Open up two new shells and run:
./target/debug/ruft -p 20001
in one and
./target/debug/ruft -p 20002
in the other
Watch the logs go and use Ctrl+C
liberally.
The leadership and election bit. There's a leader lease in case only one member is active.
Anything else