Skip to main content

partition_states

Function partition_states 

Source
pub fn partition_states<I>(nodes: I) -> Vec<PartitionState>
where I: IntoIterator<Item = (u32, PathBuf)>,
Expand description

Group the given running nodes by partition, measuring each node’s data-directory size and each partition’s free space.

nodes should be the set of currently-running nodes as (id, data_dir) pairs; evicted or stopped nodes are irrelevant to a reclaim decision and should be filtered out by the caller. Partitions whose free space cannot be read are skipped.