Blue/Green Deployment
Use a blue/green deployment to upgrade a DB system or apply infrastructure changes with reduced downtime. A blue/green deployment prepares and validates a green (target) DB system before switching client connections from the blue (source) DB system to the target DB system.
Blue/green deployments are supported for standalone DB systems in the same region. Blue/green deployments are not supported for high availability DB systems, cross-region deployments, DB systems with MySQL REST Service enabled, DB systems with HeatWave cluster attached, or Always Free DB systems.
Related Topics
Overview of Blue/Green Deployment
When you create a blue/green deployment from an existing standalone blue (source) DB system, the deployment creates a green (target) DB system and prepares it with the selected MySQL version, shape, configuration, and storage settings. The deployment also creates a replication channel to keep the target synchronized with the source until you are ready to switch over.
The deployment tracks the relationship between the source DB system, target DB system, active DB system, and replication channel. While the target DB system is prepared, the source DB system continues to serve client connections. You can monitor the deployment lifecycle state, lifecycle details, and switchover status. After the create operation completes, validate the green target DB system. When you request switchover, the service reevaluates readiness before proceeding. The switchover workflow blocks writes on the source, waits for the target to apply the required transactions, and moves the primary endpoint to the target DB system.
Switchover may impose a short downtime and interrupt client connections while the service blocks writes on the source DB system and moves the primary endpoint to the target DB system.
Updating, moving, or deleting the deployment does not affect the associated resources including the source and target DB system, replication channel, backups, storage, data, or network setup. A deployment cannot be updated, moved, or deleted if it is in UPDATING state and has an operation, such as a switchover, in progress. If you delete the deployment before the switchover starts, you cannot switch over to the target DB system and the DB system upgrade does not complete.
After the switchover is complete, the source DB system is retained. If you no longer need the source DB system, manually delete that DB system to avoid being billed. See Deleting a DB System.
Blue/Green Deployment Status
A blue/green deployment has lifecycle states and switchover statuses.
Lifecycle States
The blue/green deployment lifecycle state indicates the state of the deployment.
CREATINGACTIVEUPDATINGFAILEDDELETINGDELETED
Switchover Status
The switchover status indicates the current stage of the latest switchover action or readiness evaluation.
NOT_STARTED: Switchover has not started.VALIDATING: The service is performing a readiness evaluation.REPLICATING_DATA: The target DB system is catching up with the source DB system.READY_FOR_SWITCHOVER: The latest readiness evaluation found the deployment eligible for switchover.Note
TheREADY_FOR_SWITCHOVERswitchover status is a latest-observed readiness signal. It is not a continuous guarantee that the target DB system is transaction-current at every API read while the source DB system is still accepting writes. The switchover workflow reevaluates readiness before switching over.SWITCHOVER_IN_PROGRESS: Switchover is in progress.SWITCHOVER_COMPLETED: Switchover completed successfully.SWITCHOVER_FAILED: Switchover did not complete successfully.