Skip to content

alexprut/raft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raft

An implementation of the Raft consensus algorithm in Go. The following implementation includes: Leader Election. Log Replication, Membership Changes and Log Compaction is currently work in progress.

Build

go build client.go
go build server.go

Test

go test

Run

./server localhost:8001 localhost:8002 localhost:8003 localhost:8004 localhost:8005
./server localhost:8002 localhost:8001 localhost:8003 localhost:8004 localhost:8005
./server localhost:8003 localhost:8001 localhost:8002 localhost:8004 localhost:8005
./server localhost:8004 localhost:8001 localhost:8002 localhost:8003 localhost:8005
./server localhost:8005 localhost:8001 localhost:8002 localhost:8003 localhost:8004
./client localhost:8001 localhost:8002 localhost:8003 localhost:8004 localhost:8005

License

Licensed under MIT.

Releases

No releases published

Packages

No packages published

Languages