Module hardware

Module hardware 

Source
Expand description

Hardware inventory queries for individual nodes and clusters.

Both query shapes (cluster-by-group, nodes-by-expression) fan out one per-xname get_inventory_hardware_query call concurrently, rate-limited by a Tokio semaphore at the HW_INVENTORY_CONCURRENCY_LIMIT constant defined below. Failed per-node fetches are logged and replaced by an empty [NodeSummary] so the response vector lines up with the input xname list.

The internal aggregation helper calculate_group_hw_component_summary lives in manta_shared::types::cluster_status; it’s only re-imported here to back the test module.

Structs§

GetHardwareClusterParams
Typed parameters for fetching cluster hardware inventory.
GetHardwareNodesListParams
Typed parameters for fetching hardware inventory for a list of nodes.
HardwareClusterResult
Result of a hardware cluster query.
HardwareNodesListResult
Result of a hardware nodes-list query.

Functions§

get_hardware_cluster
Fetch hardware inventory for every member of an HSM group.
get_hardware_nodes_list
Fetch hardware inventory for the nodes named by params.host_expression.