raft-rs
raft-rs copied to clipboard
Introduce follower replication
https://github.com/pingcap/raft-rs/issues/136
New features
- Add some new fields in
Message
- New concepts
Group
andDelegate
in the cluster topology - ~~A message now could be sent to a proxy and the proxy redirects the message to the destination~~
TODOs
- [x] The leader can specify the
Delegate
of aGroup
- [x] The
Delegate
canbcast_append
orsend_append
to the other members in theGroup
- [x] Stable group delegate
- [x] Scenarios based testing
Problems
~~The ConfChange protocol for raft groups might need to be discussed.~~ Solved as GroupConfig
is now volatile.
The implementation has been ported to etcd: https://github.com/etcd-io/etcd/pull/11455.
I've finished the main part of this PR. But I'm not sure the best way to implement the ConfChange
for altering raft groups dynamically so I want a discussion with your guys.
PTAL @siddontang @hicqu @BusyJay @Hoverbear
@Fullstop000 Can you please include links to any design docs you worked on?
@Hoverbear Can I make a WIP PR in tikv/rfc ?
@Fullstop000 I think it's OK. :) I'd still really appreciate seeing an RFC (like https://docs.google.com/document/d/1Sp9Tnc_nk_i0feTOgLGPT3jZYVFjfP7C6pwA-wuVHko/edit?ts=5c8c5fe3 which you worked on)
@hicqu PTAL
Any updates?
This PR is discontinued for so long, any updates here? Do we have a plan to get it merged?