Module node_details

Module node_details 

Source
Expand description

Per-xname NodeDetails aggregation built from the backend dispatcher.

Replaces the direct csm_rs::node::utils::get_node_details call that previously lived in service/cluster.rs and service/node.rs. Going through the dispatcher’s per-trait methods keeps the service layer backend-agnostic — both CSM and OCHAMI implement the underlying CfsTrait / BootParametersTrait / ComponentTrait / GroupTrait calls used here, so the function works on either site without a runtime branch.

The flow is one round of five parallel fetches followed by an in-memory join keyed by xname, intentionally trading marginally more total bytes pulled (the CFS session list is unfiltered) for O(1) per-xname lookup and no N+1 per-node HSM call. The csm_rs::node::utils::get_node_details it replaces used a semaphore-bounded JoinSet to fan out one HSM-membership call per node; this version derives memberships from a single get_groups(None) instead.

Functions§

get_node_details
Return one NodeDetails per xname in xnames.