Expand description
Dynamic vnode rebalance control plane. Dynamic vnode rebalance control plane.
Structs§
- Rebalance
Config - 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
meowns no vnodes (its state has been reassigned elsewhere) ordeadlineelapses. Returns true if fully drained. A version materialized from a drain is accepted only with its matching shared-authority decision;Nonetherefore supports ordinary snapshots but fails closed for a drain finalization. Used by a draining node to know when it is safe to exit.