kairos icon indicating copy to clipboard operation
kairos copied to clipboard

:seedling: p2p: use raft for consensus

Open mudler opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently there is a leader election process initialized in the p2p sub-network in order to co-ordinate deployments. This is done via syncronizing states via the ledger, and have a small, simplified leader election on top of it. Currently, it is possible to set a minimum number of nodes to achieve a quorum, to avoid split-brain cases in big deployments.

Describe the solution you'd like Enhance the current process to have a leader election process more close to raft where actually we have followers (this concept is currently missing in our implementation) - so to enhance and reduce the chance of split brains.

Describe alternatives you've considered N/A

Additional context

mudler avatar Feb 23 '23 15:02 mudler

A first step into this: https://github.com/mudler/go-libp2p-simple-raft

mudler avatar Feb 18 '25 08:02 mudler