Skip to main content

Module node

Module node 

Source
Expand description

Raft single-group state machine.

Split across files:

  • config: RaftConfig (including voter/learner lists).
  • core: RaftNode struct, constructors, simple accessors, tick, propose, and the Ready output 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
RaftNode struct, constructors, simple accessors, tick, and propose.
membership
Dynamic group membership mutation.
rpc
RPC handlers for incoming Raft messages.