network_partition#

eclypse.policies.failure.network_partition(groups, *, availability_key='availability', unavailable_value=0.0, remove_edges=False)[source]#

Partition node groups by disabling or removing cross-group edges.

Parameters:
  • groups (list[list[str]]) – Node identifiers grouped by partition.

  • availability_key (str) – Edge asset used when cross-group edges are disabled.

  • unavailable_value (float) – Value written to disabled cross-group edges.

  • remove_edges (bool) – Whether to remove cross-group edges instead of mutating them.

Returns:

Policy that isolates the configured partitions.

Return type:

UpdatePolicy