raft-rs
raft-rs copied to clipboard
Raft distributed consensus algorithm implemented in Rust.
While discussing #135 we determined that supporting replication between two followers, for instance in the same datacenter, to reduce WAN overhead, may be a desirable feature. This RFC proposes the...
Specifically, I want to add a node to the raft group first. But I first add a learner node, and then when the log of the learner node is up-to-date,...
Signed-off-by: LintianShi Modify raft-rs to support follower replication in TiKV. Main change: - Add option of follower replication for `RawNode` and `Config` - Add new message type: `MsgGroupBroadcast` and an...
My MacOS is Apple M1 chipset, with Sonoma 14.2 I installed `protobuf` using `brew install protobuf` and tried to compile to compile an empty `hello, world!` project with raft crate...
I have come across - `vote leader` and - `vote term` in [this](https://github.com/tikv/raft-rs/blob/65a00620d80a89603c3358fd4b90265a692ae767/src/storage.rs#L37C71-L37C71) line. While I understand the basic concepts `leader`, `term` and `vote`, `commit index` as they are defined...
As I mentioned in the raft-rs Slack channel before, I think it would be very useful if users could see their byte slice information like Entry's `context`, `data`. I think...
--- name: no_std about: Supporting no_std compilation mode --- **Description of feature:** Make the library compatible with no_std environments. **Implementation:** The std target implementation remains unchanged. The majority of changes...
A draft change to show the feasibility of no_std support in raft-rs
Fixes #511
**Describe the bug** Nodes often crashing (`panic`) during first few moments of Raft, when using distinct `priority` values per node together with `pre_vote = true`. The least-prioritized node never crashes....