You need to enable JavaScript to run this app.
RDS for MySQL

RDS for MySQL

Copy page
Download PDF
Managing instances
Migrating nodes to other availability zones
Copy page
Download PDF
Migrating nodes to other availability zones
RDS for MySQL supports migrating the nodes of an instance to other availability zones in the same region. This topic describes the steps to migrate availability zones.​
Prerequisites​
  • The instance has been created and is in the Running status. For specific operations, refer to Creating an instance.​
  • The region where the instance is located has multiple AZs.​
Limitation​
Only double-node instance types support migrating nodes. A classic architecture with one primary node and one secondary node, and multiple read-only nodes can be added.​
Precautions​
  • Migrating the availability zone will migrate the entire instance. The database will experience 1 to 2 flash breaks during the migration. Proceed with caution. Migrate availability zones during off-peak business hours and ensure your application has an automatic reconnection mechanism.​
  • MySQL instances can only use subnets located in the same availability zone as the primary or secondary node. You cannot migrate both the primary and secondary nodes to an availability zone that does not contain their subnet.​
Migration scenarios​
​
Migration scenarios​
Description​
Change a single-availability zone instance to a multiple-availability zone instance.​
When migrating, select different availability zones for the primary and secondary nodes.​
For example: In the Beijing region, migrate an instance from availability zone A (primary) + availability zone A (secondary) to availability zone A (primary) + availability zone B (secondary).​
Change the availability zones for nodes in a multi-availability-zone instance.​
During migration, change the availability zone of the primary node, the secondary node, or a read-only node.​
​
tip​
Migrating an availability zone will not change the node IDs of any nodes.​
Billing​
The availability zone migration feature is free, and no fees are charged for any migration scenario.​
Procedure​
  1. Log on to the RDS for MySQL console.​
  1. In the upper-left corner of the top menu bar, select the project and region for the instance.​
  1. On the Instances page, click the target instance name.​
  1. Go to the Summary tab and click on the edit icon after Availability zone.​
  1. In the Migrate availability zones dialog box, select the target availability zone and execution time for each node, and click OK.​
  • ​
    Parameter​
    Description​
    Modify availability zone​
    The following rules apply when you modify the availability zone of a node:​
    • You can specify different availability zones in the same region for the primary node and the secondary node.​
    • Nodes can be distributed in up to three availability zones.​
    Switch time​
    Select an execution time for the availability zone migration.​
    • Switch now: Execute the migration immediately after clicking OK.​
    • Specific time: Execute the migration within the specified time period.​
    • Maintenance window: Execute the migration within the instance's maintenance window.​
    Specific time period​
    If you select to perform the migration within a specific time, set a time period for the migration.​
    tip​
    • Time periods cannot be set across days.​
    • The shortest time period is two hours.​
    • Set the time period within the time range indicated in the console.​
    Maintenance window​
    If you choose to perform the migration within the maintenance window, you need to confirm the instance's maintenance window.​
    tip​
    • You can click Edit to modify the maintenance window of the instance. For detailed rules on setting maintenance window, see Configuring maintenance window.​
    • After a task is initiated, you can still modify the instance's maintenance window, but the execution time of the initiated task will not be automatically adjusted with the modification of the maintenance window. If you need to adjust the execution time of a task, you need to manually schedule and adjust it at Task center. For more information about modifying tasks execution time, see Changing the execution time of a task.​
    ​
Related API​
​
API​
Description​
Call the MigrateToOtherZone API to migrate nodes of a specified instance to another availability zone within the same region.​
​
Last updated: 2025.09.28 16:49:36