Cluster consensus algorithm emulation written in pure Ruby using Celluloid actor library. Raft-ish (maybe).
cd YOUR_APP_PATH/consensus
bundle install
- Check out (or modify) config/nodes.yml for node ids.
./bin consensus NODE_ID
in each terminal tab.- Watch how nodes talk with each other.