serial & Rolling Batch Execution
Roll changes out in safe waves.
All at Once Is Risky
Updating every server in one sweep is fast, but a bad change can take down your whole fleet at the same instant. Rolling updates avoid that.
Meet serial
The serial keyword tells a play to work through hosts in batches instead of all together. You update a slice, then move to the next.
- hosts: web
serial: 2All lessons in this course
- forks & Parallelism Tuning
- Strategies: linear, free & host_pinned
- SSH Pipelining & Connection Reuse
- serial & Rolling Batch Execution