kairos
kairos copied to clipboard
:seedling: p2p: use raft for consensus
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
A first step into this: https://github.com/mudler/go-libp2p-simple-raft