Skip to content

DuarteSerranoR/RaftImplementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raft Implementation

Project for Fault Tolerance in Distributed Systems - Lib developed for learning.

BEFORE USING

For the database:

You need to check the following pre-requisites:

  1. Have PostgreSQL Installed in your local machine;
  2. Have the replicas file filled with the desired ip addresses;
  3. Have the desired databases created in PostgreSQL

For the PostgreSQL Databases creation:

  • -driver -> PostgreSQL
  • -server -> localhost
  • -dbname -> {program name passed as an argument}-raft-logs
  • -uname -> dev
  • -pwd -> passwd

Other installation and Usage instructions

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

About

Project for Distributed Systems - Lib developed for learning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published