Skip to content

juanpabloaj/tick-time-with-raft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tick time with Raft

Every server runs the same time tick, but based on his ID, every server only shows some seconds marks in the log.

Every node contains all the information but the responsibility of show to the log (the execution) is distributed.

When a new server is added the responsibility is redistributed.

Start leader

go run . -id node0 raft0

Start peers

go run . -id node1 -haddr :11001 -raddr :12001 -join :11000 raft1
go run . -id node2 -haddr :11002 -raddr :12002 -join :11000 raft2

gif

Based on

https://github.com/otoolep/hraftd

Using hashicorp/raft

https://github.com/hashicorp/raft

Raft description

https://raft.github.io/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages