All Products
Search
Document Center

ApsaraDB for MyBase:Migrate an instance

Last Updated:Mar 28, 2026

Move an ApsaraDB for MyBase instance to a different host within your dedicated cluster — in the same zone or across zones — to rebalance workloads or respond to host issues.

Important

Migration disconnects the instance for approximately 30 seconds. Schedule the operation during low-traffic periods, or use the Maintenance Window option to defer it to a predictable off-peak window.

Prerequisites

Before you begin, ensure that you have:

Migration restrictions

Instance typeSame-zone migrationCross-zone migration
ApsaraDB MyBase for MySQL Master-replica EditionSupportedNot supported
ApsaraDB MyBase for SQL ServerSupportedNot supported
ApsaraDB MyBase for MySQL High-availability EditionSupportedSupported
ApsaraDB MyBase for PostgreSQLSupportedSupported

Cross-zone migration risks

If you migrate to a host in a different zone, address the following before and after migration:

  • VIP change: The virtual IP address (VIP) of the instance changes after migration. Connect your application using the instance endpoint, not the IP address, to avoid connection failures.

  • Client cache: If your client cache is full, data cannot be written to it. Clear the cache before migrating.

  • DTS tasks: If a Data Transmission Service (DTS) task is running on the instance, restart the DTS task after migration completes.

Migrate an instance

  1. Log on to the ApsaraDB for MyBase console.

  2. In the upper-left corner, select a region.

  3. In the left-side navigation pane, click Dedicated Clusters. Find the dedicated cluster that contains the instance you want to migrate, then click Details in the Actions column.

  4. In the left-side navigation pane, click Instances.

  5. Find the instance, then choose More > Migrate in the Actions column.

    Migrate an ApsaraDB MyBase for MySQL instance

  6. In the panel that appears, configure the following parameters.

    You can migrate a primary or secondary instance independently. To migrate only a primary instance, configure only the parameters for the primary instance.
    ParameterDescription
    Destination ZoneThe zone to migrate the instance to. The drop-down list shows all zones where hosts in the dedicated cluster are deployed.
    Note

    Available only for ApsaraDB MyBase for MySQL High-availability Edition and ApsaraDB MyBase for PostgreSQL instances.

    vSwitchThe vSwitch for the destination zone. If no vSwitch is available, click Create vSwitch to create one.
    Note

    Available only when migrating a primary instance to a different zone.

    Destination HostThe target host. If left blank, the instance is migrated to any available host in the specified zone.
    Migration TimeWhen to perform the migration: Immediate — starts migration right away; use for urgent moves or off-peak hours when you can accept the 30-second disconnection immediately. Maintenance Window 02:00–06:00 — defers migration to the next maintenance window; use for routine migrations where a predictable low-traffic window exists. Specified Time — schedules migration at an exact time; use when you need precise control over when the disconnection occurs.

    Migrate an instance

  7. Click OK.

Next steps

For database engine-specific migration steps and additional options, see: