raft

command module
v0.0.0-...-5c9d26a Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MIT Imports: 1 Imported by: 0

README ¶

raft

The Raft implementation in Go

How to run the program?

All the nodes that are going to be in the cluster should be mentioned in the startup command.

go run main.go --http-port 3001 --raft-port 5001 --nodes "localhost:3001,localhost:3002,localhost:3003" 

The http-port is the port where the communication happen of the node gets elected as the leader. The raft-port is used to make the RPC call. You need to provide all the node that would be in the cluster in the node flag.

🚧 Feature working in progress
  • Leader election
  • Membership change
  • Log compaction

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