Rolling Deploy Behind the Load Balancer
Release with zero downtime in serial.
Zero Downtime Is the Promise
Update all web nodes without dropping a single request. The trick is a rolling deploy: change a few hosts at a time. 🔄
serial Controls the Batch
Add serial to your play so Ansible works through hosts in small waves instead of all at once.
- hosts: web
serial: 1
tasks:
- import_role:
name: webappAll lessons in this course
- Architect the Project: Roles & Inventory
- Provision, Harden & Bootstrap Hosts
- Rolling Deploy Behind the Load Balancer
- Smoke Tests, Rollback & Notifications