Expand description
Node lifecycle management: join, leave, decommission.
Handles the full lifecycle of a node in the cluster:
- Join: Node contacts seed, receives topology, joins as Learner, catches up Raft logs, promoted to Active voter.
- Decommission: Node drains leadership, migrates all vShards to other nodes, then shuts down cleanly.
- Leave: Node is removed from topology after decommission completes.
All transitions are replicated via the metadata Raft group to ensure consistency across the cluster.
Structs§
- Decommission
Result - Result of a decommission operation.
Functions§
- handle_
learner_ promotion - Handle learner promotion after state catch-up validation.
- handle_
node_ join - Apply a topology change: handle join, leave, or state transition.
- is_
safe_ to_ remove - Check if a node can be safely removed from the cluster.
- plan_
decommission - Plan a node decommission: compute which vShards to migrate and where.