Skip to main content

reason_from_strategies

Function reason_from_strategies 

Source
fn reason_from_strategies(reasons: &[&'static str]) -> ReplicaCreateDropReason
Expand description

Map a create decision’s strategy-attribution to the audit reason carried on the create event.

A create the graceful strategy desired is recorded as a graceful reconfiguration. Everything else, baseline-held replicas, is Manual, the tag for replicas the cluster’s own config calls for.

Drops never come through here: a drop happens exactly when no strategy desires the replica, so it carries no attribution and is uniformly audited ReplicaCreateDropReason::Retired.