correlated_failure#
- eclypse.policies.failure.correlated_failure(probability, *, group_key, availability_key='availability', failed_availability=0.0, node_ids=None, node_filter=None)[source]#
Fail all selected nodes sharing a group value together.
- Parameters:
probability (float) – Per-group probability of applying the failure.
group_key (str) – Node asset used to identify correlated groups.
availability_key (str) – Node asset used to store availability.
failed_availability (float) – Value written when a group fails.
node_ids (list[str] | None) – Optional explicit node identifiers to mutate.
node_filter (NodeFilter | None) – Optional predicate receiving
(node_id, data).
- Returns:
Policy that fails whole selected node groups.
- Return type: