- Install the necessary dependencies by executing
pip3 install -r requirements.txt
- Configure the number of client and replica processes in the config.yml file
-
Define the commands to be executed in the client-commands.txt file, following this template:
client_id replica_id set/get key [value]
-
Run the main.py script
-
Select the desired consistency scheme in the console:
Consistency schemes:
- Sequential
- Eventual
- Linear
- Causal
-
Review the logs in the main.log file and view the final key-value store of each replica in the ./results folder
- Run the test.py script:
- The test program will verify each consistency scheme is functioning correctly.
- Check the testing logs in the test.log file and view the final key-value store of each replica in the ./results folder
- To generate or update the requirements.txt file, run
pip3 freeze > requirements.txt