If the current zone in which your instance is deployed has insufficient resources for a specification upgrade or if you want to improve the disaster recovery capability, you can migrate the instance to another zone by using the Tair (Redis OSS-compatible) console or calling an API operation. After the instance is migrated to another zone, the data, accounts, and endpoints of the instance remain unchanged.
Prerequisites
The instance has any additionally requested public endpoints and private endpoints released.
If the instance has the preceding endpoints, release the endpoints before you migrate the instance. Otherwise, the Cross-zone Migration button is dimmed and the operation cannot be performed.
Precautions
Supported migration types and scenarios
Type | Scenario |
Migrate an instance from one zone to another | You want to migrate the instance to the zone of a specific Elastic Compute Service (ECS) instance. An ECS instance and a Tair instance that are deployed in the same zone can communicate over an internal network at low network latency. |
Migrate an instance from a set of zones to another | |
Migrate an instance from one zone to multiple zones | You want to implement disaster recovery across data centers for the instance. Single-zone instances can withstand server- and rack-level failures. Multi-zone instances can withstand data center-level failures and enhance disaster recovery capabilities by deploying resources across different data centers. |
Migrate an instance from multiple zones to one zone | You want to migrate the instance based on specific business requirements. |
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 Cross-zone Migration to the right of Zone.
In the panel that appears, configure the parameters. The following table describes the parameters.
Parameter
Description
Destination Primary Zone
The primary destination zone to which you want to migrate the instance.
Destination Secondary Zone (optional)
The secondary destination zone to which you want to migrate the instance. If you configure this parameter, replica nodes of the instance are migrated to this zone. This ensures cross-zone disaster recovery.
NoteIf you do not configure this parameter, the master and replica nodes of the instance are all migrated to the primary zone.
vSwitch
The destination vSwitch. If no vSwitch exists in the destination zone, you must create a vSwitch. For more information, see Create and manage vSwitches.
NoteThis parameter is available and required only when the instance is deployed in a VPC.
Exec Time
Upgrade Now: After you click OK, the migration immediately starts. When the instance status changes to Running, the instance is migrated.
Update During Maintenance (recommended): After you click OK, the pre-migration operations immediately start and the instance status changes to Migrating to Another Zone. During this process, the instance remains fully operational. The migration is not performed until the maintenance window starts.
For more information, see Configure a maintenance window.
Nodes Per Shard in Primary Zone
Nodes Per Shard in Secondary Zone
If the instance is a multi-replica cluster instance or read/write splitting instance that is deployed in cloud-native mode, you can use these parameters to modify the distribution of replica nodes or read replicas in the primary and secondary zones when you migrate the instance to multiple zones. When you perform the operation, you cannot change the total number of master and replica nodes.
NoteIf the instance is a cluster instance, the preceding parameters indicate the number of replica nodes or read replicas per shard in the primary and secondary zones.
Read the prompt and select the check box. Then, click OK.
Related API operations
API operation | Description |
Migrates an instance across zones within the same region. |