Your organization is implementing an automated canary release strategy using Google Cloud Deploy and GKE Gateway API for a mission-critical transaction microservice connected to a Cloud SQL relational database. The deployment pipeline must shift traffic incrementally from the active revision to the canary revision while continuously evaluating Cloud Monitoring metrics against a target Service Level Indicator (SLI). The upcoming software release includes a relational database schema update that adds a mandatory field required by the new software version. Which release management approach ensures continuous service availability and automated rollback capabilities during this rollout?
- Implement a multi-phase database migration strategy with backward-compatible schema changes applied prior to triggering the canary rollout, while using Cloud Deploy with Cloud Monitoring verification metrics for automated traffic rollback.Cevap
- BExecute non-backward-compatible database schema updates immediately before starting the canary traffic split so that both active and canary application revisions immediately use the new structure.
- CRe-architect the pipeline to destroy and re-provision the GKE clusters on every application deployment release to guarantee strict environment isolation before executing the schema update.
- DProvision a parallel Cloud SQL database instance for each deployment release without checking regional resource limits, redirecting canary application instances to the new database endpoint.
Cevap
Implement a multi-phase database migration strategy with backward-compatible schema changes applied prior to triggering the canary rollout, while using Cloud Deploy with Cloud Monitoring verification metrics for automated traffic rollback.
In progressive delivery strategies like canary deployments, both the active release and the canary revision must coexist and process transactions simultaneously. Applying backward-compatible schema changes (such as expanding schema with optional/default columns) prior to shifting traffic guarantees database compatibility across both application revisions. Integrating Cloud Deploy with Cloud Monitoring automated rollback criteria satisfies the requirements for zero downtime and metric-driven automated recovery.
Adım Adım Çözüm
Anahtar Kavram
Backward-Compatible Database Migrations in Canary Deployments