Highly scalable, available and strongly consistent distributed KV store
sudo apt update
sudo apt -y install python3-pip
pip3 install grpcio
pip3 install grpcio-tools
pip3 install kazoo
pip3 install leveldbpython3 -m grpc_tools.protoc -I ./protos --python_out=. --pyi_out=. --grpc_python_out=. ./protos/*Currently zookeeper is stand alone. In production, must deploy in multiple servers for fault tolerance and availability
bin/zkServer.sh start(Needed only for testing)
bin/zkCli.sh -server 127.0.0.1:2181Start rsm.py only after zookeeper is running
Leader default port : 50051
python3 rsm.py -p 5000 -n localhost:5000 localhost:5001 localhost:5002 -cn cluster:5000:5001:5002
python3 rsm.py -p 5001 -n localhost:5000 localhost:5001 localhost:5002 -cn cluster:5000:5001:5002
python3 rsm.py -p 5002 -n localhost:5000 localhost:5001 localhost:5002 -cn cluster:5000:5001:5002
python3 rsm.py -p 6000 -n localhost:6000 localhost:6001 localhost:6002 -cn cluster:6000:6001:6002
python3 rsm.py -p 6001 -n localhost:6000 localhost:6001 localhost:6002 -cn cluster:6000:6001:6002
python3 rsm.py -p 6002 -n localhost:6000 localhost:6001 localhost:6002 -cn cluster:6000:6001:6002
python3 rsm.py -p 7000 -n localhost:7000 localhost:7001 localhost:7002 -cn cluster:7000:7001:7002
python3 rsm.py -p 7001 -n localhost:7000 localhost:7001 localhost:7002 -cn cluster:7000:7001:7002
python3 rsm.py -p 7002 -n localhost:7000 localhost:7001 localhost:7002 -cn cluster:7000:7001:7002python3 physicalnode.py