Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 525 Bytes

File metadata and controls

16 lines (12 loc) · 525 Bytes

Build Your Own Raft Consensus Protocol in Python

Tutorial available at my website

Quick Start (if you just want to run it):

# Launch a 3-node cluster
python3 cluster.py --nodes 3

# In another terminal, write and read data
python3 client.py --server http://127.0.0.1:8001 set greeting "hello world"
python3 client.py --server http://127.0.0.1:8001 get greeting

# Check cluster status
python3 client.py --server http://127.0.0.1:8001 status