Project for Fault Tolerance in Distributed Systems - Lib developed for learning.
You need to check the following pre-requisites:
- Have PostgreSQL Installed in your local machine;
- Have the replicas file filled with the desired ip addresses;
- Have the desired databases created in PostgreSQL
- -driver -> PostgreSQL
- -server -> localhost
- -dbname -> {program name passed as an argument}-raft-logs
- -uname -> dev
- -pwd -> passwd
To launch the application, with all the pre-requisites checked out, You only run the main.py with the following arguments:
main.py {number of the replica starting at index 0} {program name passed to the database creation}
Following this logic, for the replica 0, with the database raft0-raft-logs, you run:
main.py 0 raft0