A blue-green release looks fine in preview, but after switching, latency spikes. How do you design protection for this?
IntermediateScenarioCI Integration & Progressive Delivery
Answer
Situation read → Preview traffic was not representative.
What I'd do →
- Add
postPromotionAnalysiswith latency and error metrics; failure switches the active Service back. - Keep
scaleDownDelaySecondslong enough (for example 10 minutes) that the old ReplicaSet is still up for instant rollback. - Use
prePromotionAnalysiswith synthetic load against the preview Service. - Consider canary instead, so real traffic ramps gradually.
Why → Blue-green is all-or-nothing on cutover; post-promotion checks plus a warm old version make it reversible.
Interview tip → Explain why canary is safer when realistic traffic cannot be simulated.
More on CI Integration & Progressive Delivery
Design a CI pipeline that deploys through GitOps without giving CI cluster access.BeginnerTwo pipelines commit tag bumps to the config repo at the same time and one fails with "rejected, non-fast-forward". How do you make it robust?BeginnerShould CI wait for Argo CD to finish deploying before marking the pipeline green?IntermediateYou want automatic rollback when error rates rise after a deploy. How do you build it?IntermediateYour canary uses replica-based weights with 3 replicas and `setWeight: 10`. What actually happens and what do you change?IntermediateProduct wants internal staff to test the new version in production before any customer sees it. How?Advanced