Skip to content

jacobday/distributed-key-value-store

Repository files navigation

Distributed Multi-Consistency Key-Value Store

How to Run

  1. Install the necessary dependencies by executing pip3 install -r requirements.txt
  2. Configure the number of client and replica processes in the config.yml file

Main Program

  1. Define the commands to be executed in the client-commands.txt file, following this template:

    client_id replica_id set/get key [value]

  2. Run the main.py script

  3. Select the desired consistency scheme in the console:

    Consistency schemes:

    1. Sequential
    2. Eventual
    3. Linear
    4. Causal
  4. Review the logs in the main.log file and view the final key-value store of each replica in the ./results folder

Test Program

  1. Run the test.py script:
    • The test program will verify each consistency scheme is functioning correctly.
  2. Check the testing logs in the test.log file and view the final key-value store of each replica in the ./results folder

Additional Notes

  • To generate or update the requirements.txt file, run pip3 freeze > requirements.txt

About

Distributed Multi-Consistency Key-Value Store

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages