raft

command module
v0.0.0-...-4ad0f93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2020 License: MIT Imports: 5 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL