You can change the zone of a Tair (Redis OSS-compatible) instance using the console or an API operation if zone resources are insufficient for an instance type upgrade, you need to improve disaster recovery capabilities, or you need to move an instance for other reasons. After the zone is changed, the instance data, database accounts, endpoints, and other information remain unchanged.
Prerequisites
If a cloud-native instance has a public endpoint, you must release the public endpoint first.
If a classic instance has a public endpoint or a direct connection endpoint, you must release the public endpoint and release the direct connection endpoint first.
Considerations
Supported migration types and scenarios
Supported migration types | Common scenarios |
Migrate from a single zone to a single zone | You can migrate the instance to the same zone as your ECS instance. ECS instances and databases in the same zone can connect over the internal network with lower latency. |
Migrate from multi-zone to multi-zone | |
Migrate from a single zone to multi-zone | You can improve disaster recovery by enabling cross-data-center resilience. A single-zone instance is resilient to server-level and rack-level failures. A multi-zone instance is deployed across data centers and can withstand full data center outages. This significantly enhances disaster recovery. |
Migrate from multi-zone to a single zone | Meets the requirements for specific features. |
Procedure
This operation may cause transient connections. We recommend that you perform this operation during off-peak hours and make sure that your application can automatically reconnect to your instance.
Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the Basic Information section, click Migrate next to the Zone.
In the panel that appears, configure the parameters.
Setting
Description
Primary zone change
Select the target zone.
Secondary zone change (optional)
After specifying a secondary zone, the instance’s secondary node migrates to that zone, enabling cross-zone disaster recovery.
NoteIf you do not specify a secondary zone, both primary and secondary nodes migrate to the primary zone.
Virtual Switch:
Select the destination vSwitch for migration. If no vSwitch exists in the target zone, create one first. For more information, see Create and manage vSwitches.
NoteThis option appears and requires configuration only if the instance uses a virtual private cloud (VPC).
Executed At
Update Now: After clicking OK, the system starts the migration task immediately. The migration succeeds when the instance status becomes Running.
Update During Maintenance (recommended): After clicking OK, the system performs preliminary migration tasks and changes the instance status to Migrating to Another Zone. The instance remains available during this phase. The actual switchover occurs only during the configured maintenance window.
For more information, see Set a maintenance window.
Primary zone nodes per shard
Secondary zone nodes per shard
If the instance is a cloud-native type (cluster multi-replica or read/write splitting), you can adjust how replica (or read-only) nodes distribute between primary and secondary zones during multi-zone migration. This setting does not change the total number of primary and secondary nodes.
NoteFor cluster architecture instances, these parameters represent the number of replica (read-only) nodes per shard in the primary and secondary zones, respectively.
Read the warning message, select the check box, and then click OK.
Related API
API operation | Description |
Migrates an instance to another zone within the same region. |