Skip to main content

Module cluster_status

Module cluster_status 

Source
Expand description

Pure helpers for summarizing node and cluster status.

Both the CLI (table rendering) and the server (service::hardware, service::hw_cluster) call into these. Living in shared/ keeps the CLI from importing crate::service::* for what are really data-only helpers.

Functionsยง

calculate_hsm_hw_component_summary
Aggregate hardware component counts across nodes (summary view).
compute_summary_status
Compute a summary status from a list of node details.
get_cluster_hw_pattern
Compute a hardware pattern (component counts with whitespace stripped).