Skip to main content

placement_view

Function placement_view 

Source
pub fn placement_view(
    cache: &NodeFactsCache,
    now_secs: u64,
    local: Option<&str>,
    membership: Option<&ClusterMembership>,
    contact: &dyn Fn(&str) -> Option<Liveness>,
) -> Vec<LiveNodeFacts>
Expand description

Every fresh cached node with its liveness. local is always alive; otherwise membership peer state wins, then contact (the control plane’s last direct round trip), else Liveness::Unknown.