Skip to main content

Module rebalance

Module rebalance 

Source
Expand description

Dynamic vnode rebalance control plane. Dynamic vnode rebalance control plane.

Structs§

RebalanceConfig
Tunables for the rebalance control plane.

Functions§

audit_assignment_snapshot_authority
Audit a materialized assignment-drain outcome against the shared authority sequence. Ordinary assignments and still-draining transitions require no terminal decision.
spawn_rebalance_controller
Spawn the leader-gated rebalance controller. Runs on every node; leadership is re-checked after the debounce.
spawn_snapshot_watcher
Spawn the per-node snapshot watcher. Exits on shutdown.
startup_committed_assignment
Select the last committed assignment that a cluster process may adopt during startup. A draining head has not transferred ownership, so startup retains its audited predecessor.
wait_until_drained
Poll the durable assignment snapshot until me owns no vnodes (its state has been reassigned elsewhere) or deadline elapses. Returns true if fully drained. A version materialized from a drain is accepted only with its matching shared-authority decision; None therefore supports ordinary snapshots but fails closed for a drain finalization. Used by a draining node to know when it is safe to exit.