How do `any_errors_fatal` and `max_fail_percentage` help a rollout?
BeginnerProductionRolling Updates, Delegation and Safe Deployments
Answer
They define when a failing rollout should stop. max_fail_percentage: 0 (with serial) aborts after a batch where any host failed. any_errors_fatal: true stops the entire play on any failure, including within a batch.
For a stateless web tier, serial: "25%" with max_fail_percentage: 0 is a safe default. For a database cluster use serial: 1 and any_errors_fatal: true. Hosts that already got the change remain changed, so the rollback plan still matters.
More on Rolling Updates, Delegation and Safe Deployments
How do you do a rolling update with Ansible?BeginnerWhat forms can `serial` take?IntermediateShow the standard pattern for a zero-downtime rolling deploy behind a load balancer.IntermediateWhy do you add a health check inside the deployment play?BeginnerHow do you do a canary deployment?IntermediateHow would you implement blue/green deployment with Ansible?Advanced