Partial implementation of Raft consensus algorithm with focus on leader election performance
- Login to DAS5
- Reserve nodes
- Clone the repository
- Run the Node.py script from the root directory by updating the run.sh script with your user id
- Additionally, the run.sh script might be needed to be enabled as an executable, use below command -
chmod 777 ./run.sh
Additional scripts are provided to handle stopping server by cancelling the reservation and reserving immediately, this is a workaround to kill xmlrpc servers on DAS5.
To test the implementation with leader breakdown, uncomment the code for limited iterations and counter in Node.py Line 237 and add the condition here Node.py L85
Infinite loop might cause the server to run indefinitely on the nodes, might be better to try out with limited iterations first.