Soru

Zorluk: ZorRelease Management and Deployment Strategies (Blue-Green, Canary, Rolling)

A financial platform hosts its mission-critical transactions API on Compute Engine Managed Instance Groups (MIGs) behind an External HTTP(S) Load Balancer. The engineering team is planning a zero-downtime blue-green deployment for a major application version that includes database schema changes. To ensure high availability and prevent deployment pipeline failures during the environment cutover, which TWO architectural and operational steps must the team implement?

  1. Apply database schema modifications using an expand-contract migration pattern to ensure full backward compatibility with the active blue environment prior to shifting traffic.Cevap
  2. Verify and request regional Compute Engine CPU and instance quota increases in advance to accommodate running blue and green environments in parallel.Cevap
  3. C
    Execute breaking database DDL scripts on the production database immediately prior to switching the Load Balancer backend service target to the green environment.
  4. D
    Replatform the application to Google Kubernetes Engine (GKE) Enterprise clusters specifically to eliminate the need for load balancer backend switching during blue-green cutovers.

Cevap

The team must apply database schema modifications using an expand-contract migration pattern and verify/request regional Compute Engine resource quota increases prior to deployment.
In a blue-green deployment pattern with a shared database, database schema changes must be backward-compatible (using an expand-contract pattern) so that the active blue environment continues to function normally while the green environment is deployed. Additionally, because blue-green deployments require running two identical environments side-by-side during validation and cutover, regional Compute Engine resource quotas must be requested and verified in advance to prevent provisioning errors.

Adım Adım Çözüm

1
Analyze database migration strategy for zero-downtime blue-green deployments.
Identified that breaking DDL changes on shared database backends ruin backward compatibility for active blue nodes.
An expand-contract pattern allows new columns/tables to be added without invalidating queries from older application versions.
2
Evaluate infrastructure resource requirements during parallel blue and green execution.
Determined that concurrent execution requires double compute capacity during validation and cutover phases.
If regional CPU quotas are not increased ahead of time, green MIG auto-scaling or provisioning will fail during deployment.
3
Assess alternative compute platform suggestions.
Rejected platform migration to GKE as an over-engineered solution.
Compute Engine MIGs natively support backend service traffic shifting via HTTP(S) Load Balancing without incurring GKE cluster management overhead.

Anahtar Kavram

Blue-Green Deployment Infrastructure Requirements and Database Schema Compatibility
Bu soruyu puanla