blue-green deployment
Running two complete environments, blue for the current release and green for the candidate, and switching traffic between them in one step.
In more detail
Green is tested with no user traffic, then a route, Service selector or load balancer rule is switched. Rollback is switching back, which is fast as long as blue is kept healthy; the cost is running both environments during the transition.
Example
A canary release exposes fewer users to a bad version than a blue-green switch.Related terms
- rolling update — Replacing instances of an application with the new version a few at a time while the rest keep serving.
- canary release — Sending a small share of real traffic to a new version first, and increasing it only while its metrics stay healthy.
- router — A device or service that decides where network traffic is sent.
- smoke test — A quick test that checks the most basic behaviour works after a deploy, before deeper testing or real traffic.
- label selector — A query that picks objects by their labels, such as every pod with app=web; controllers and Services depend on it.
- load balancer — A server that spreads incoming requests across several copies of a service so no single copy is overloaded.
- rollback — Returning a system to a previous known-good version after a bad change.
- progressive delivery — Releasing a new version to a growing share of users step by step, checking health at each step before going further.
Taught in
- Two Hundred Accounts And One Bad Deploy — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- CodeDeploy: Hooks That Never Ran — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Strategies Across Compute: The Canary That Saw Nothing — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Blue-Green, Canary, Rings And Feature Flags — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- One Commit, Four Argo Projects — Certified Argo Project Associate (CAPA) Exam Prep
- The Rollout: A Deployment That Can Stop Halfway — Certified Argo Project Associate (CAPA) Exam Prep
- Canary And Blue-Green: Weights, Routers And One Switch — Certified Argo Project Associate (CAPA) Exam Prep
- AnalysisTemplate And AnalysisRun: Letting Metrics Decide — Certified Argo Project Associate (CAPA) Exam Prep
- Related Practices Sprint: One Change, Five Practices — Certified GitOps Associate (CGOA) Exam Prep
- Thursday, With A Way Back: Promotion, Deploy And Release — Certified GitOps Associate (CGOA) Exam Prep
- Friday, Four Fifty: Progressive Delivery — Certified GitOps Associate (CGOA) Exam Prep
- Patterns Sprint: Eight Needs, One Pattern Each — Certified GitOps Associate (CGOA) Exam Prep
- Forty-Six Of Sixty: The Mock And What It Tells You — Certified GitOps Associate (CGOA) Exam Prep
- The Evening Before: Final Review — Certified GitOps Associate (CGOA) Exam Prep
- Introduction to Release Strategies — Continuous Integration & Continuous Delivery Pipelines
- Blue-Green Deployments — Continuous Integration & Continuous Delivery Pipelines
- Rolling Back Blue-Green — Continuous Integration & Continuous Delivery Pipelines
- A Release That Cannot Take Checkout Down — CompTIA Cloud+ (CV0-004) Exam Prep
- Deployment Sprint: A Plan That Deletes The App Server — CompTIA Cloud+ (CV0-004) Exam Prep
- Ten Percent Off For Everyone: Source Control And Pipelines — CompTIA Cloud+ (CV0-004) Exam Prep
- Sixty Six Of Eighty Five: The Mock And Its Report — CompTIA Cloud+ (CV0-004) Exam Prep
- Build, Release, Run And Processes — DevOps & Site Reliability Engineering
- Deployment Strategies: Rolling Updates — DevOps & Site Reliability Engineering
- Deployment Strategies: Blue Green — DevOps & Site Reliability Engineering
- Decoupling Release From Deployment: Feature Flags — DevOps & Site Reliability Engineering
- Kubernetes Ingress, Routing & TLS Termination — Production Full-Stack Engineering
- Continuous Delivery: Blue-Green & Canary Pipelines — Production Full-Stack Engineering
References
- Martin Fowler: BlueGreenDeployment
- AWS whitepaper: Blue/green deployments
- Argo Rollouts: Blue-green deployment strategy
- Argo Rollouts: Blue Green
Certification courses
- AWS DevOps Engineer Professional course and practice exam: DOP-C02
- AZ-400 course and practice exam: Microsoft Azure DevOps Engineer Expert
- CAPA course and practice exam: Certified Argo Project Associate
- CGOA course and practice exam: Certified GitOps Associate
- CompTIA Cloud+ course and practice exam: CV0-004