Expand description
Raft single-group state machine.
Split across files:
config:RaftConfig(including voter/learner lists).core:RaftNodestruct, constructors, simple accessors,tick,propose, and theReadyoutput type.- [
internal]: Internal state transitions (elections, replication, commit advancement) and timeout math. membership: Dynamic configuration changes — add/remove voters, add/remove/promote learners.rpc: Incoming RPC handlers (AppendEntries,RequestVote,InstallSnapshot, and their response handlers).
Re-exports§
pub use self::config::RaftConfig;pub use self::core::RaftNode;pub use self::core::Ready;
Modules§
- config
- Configuration for a single Raft group on this node.
- core
RaftNodestruct, constructors, simple accessors,tick, andpropose.- membership
- Dynamic group membership mutation.
- rpc
- RPC handlers for incoming Raft messages.