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§

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.
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. Used by a draining node to know when it is safe to exit.