Skip to main content

Module utils

Module utils 

Source

Functionsยง

build_datanode_plan ๐Ÿ”’
Builds the drain plan of node_id.
ensure_drain_deadline ๐Ÿ”’
Returns an error if the drain exceeded its deadline.
leads_region ๐Ÿ”’
Returns true if node_id still leads region_id.
select_migration_target ๐Ÿ”’
Selects the migration destination of region_id off the drained datanode.