Skip to content

luis-mfc/raft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raft protocol implementation

This is a example implementation of the raft consensus protocol for educations proposes only:

How to run

  1. Compile the project:
javac *.java
  1. Configure the number of instances (list of local ports): config.conf
  2. Configure general settings: config.properties
  3. Run the instances:
java FollowerMain <follower number, e.g., 0, 1, ...>
  1. Run the client application:
java Client [serverNumber] <put|get|del|cas|list> <numberOfRequests>

Docker

  1. Run Raft cluster:
docker compose up --build
  1. Manual Test:
docker run --network host -it --rm --entrypoint bash $(docker build -q .)
java Client 0 list 1
java Client 0 put 1
java Client 0 get 1

About

Example Raft Consensus Algorithm implementation from my uni days

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published