churn#

eclypse.policies.topology.churn(*, remove_probability=0.0, add_probability=0.0, candidate_nodes=None)[source]#

Randomly remove existing nodes and add candidate nodes.

Parameters:
  • remove_probability (float) – Per-existing-node probability of removal.

  • add_probability (float) – Per-candidate-node probability of addition.

  • candidate_nodes (dict[str, dict] | None) – Optional mapping from node id to node assets.

Returns:

Policy that applies node churn.

Return type:

UpdatePolicy