Cloud and Container Basics
Two environments with the same configuration as production are prepared; the current version keeps running in one while the new version is installed and checked in the other, and then the load balancer is switched over to it all at once. If there is a problem, switching back quickly returns to the old version. Which of the following is this release method?
- ABlue-green deployment
- BCanary release
- CRolling update
Show answer and explanation
Answer: A. Blue-green deployment
Blue-green deployment prepares two environments (blue and green) and switches user traffic to the new environment all at once. The old environment is left as it is for a while, so if a problem occurs, simply switching back restores the old version. On the other hand, resources for two environments are needed around the switch, and database schema changes must be made in a form that both the old and new versions can use. A canary release exposes the new version to only some of the requests, and a rolling update replaces servers a few at a time.
- A. Correct. Two environments are prepared, and traffic is switched all at once.
- B. A canary release first sends only some requests to the new version and increases the share while watching how it behaves.
- C. A rolling update replaces the servers or Pods in one environment with the new version a few at a time.