tencent cloud

Feedback

AZ Migration Scheme

Last updated: 2023-10-20 11:01:13

Overview

When adjusting database resources at the AZ level, you may consider deactivating all AZs with a low resource utilization. In this case, you need to migrate the data in these AZs to other AZs without affecting the normal operations of the current business.

Solution

For convenience considerations, we recommend that you migrate data with the following solutions.
If the current instance is deployed in one single AZ, and all resources in the AZ are to be deactivated, you can use the following data migration scheme:

If the current instance is deployed in multiple AZs, and its master or replica AZ is to be deactivated:
If the master AZ is to be deactivated, manually promote the replica AZ to master AZ, add a new replica for the instance and specify another AZ for it, and delete the replica node in the original master AZ.
If the replica AZ is to be deactivated, change the AZ of the replica as instructed in Adding Replicas to Multi-AZ Deployed Instance.

Directions

Single-AZ deployment

If the AZ of the current instance is to be changed, data needs to be migrated as detailed below. We recommend that you perform the migration during the maintenance time. For more information, see Setting Maintenance Time.
1. Upgrade the current single-AZ deployed instance to a multi-AZ deployed instance as instructed in Upgrading to Multi-AZ Deployment.
After upgrading to multi-AZ deployment, you can see the

icon next to the AZ of the instance in the AZ column in the instance list or in the Basic Info section on the Instance Details page.
Hover over

and you can see that the AZ information of the master and replica nodes of the current instance has not changed.
2. Add a replica to the multi-AZ deployed instance and specify another AZ for it as instructed in Adding Replicas to Multi-AZ Deployed Instance.
Wait for the instance configuration change to complete. Then, you can view the instance's AZ information, and you can see that two replicas have been added to the instance in Guangzhou Zones 4 and 3 respectively.
3. Promote the AZ of the new replica to master AZ.
3.1 Log in to the TencentDB for Redis console.
3.2 In the instance list, find the target instance, and click Instance ID.
3.3 Enter the Instance Details page, select Node Management tab, and click Promote Replica to Master to set the AZ of replica node as the master AZ. For more information, see Manually Promoting to Master Node (Group).
4. Delete all nodes in the original master AZ to clear resources.
On the Node Management tab in the console, you can see that the original master AZ has been automatically switched to the replica AZ, and all nodes in it have been changed to replica nodes.
4.1 On the instance management page, click More > Delete Replica.
4.2 On the TencentDB for Redis Configuration Changes page, select replicas to be deleted for standard architecture and the replica group for cluster architecture, and click OK.

Multi-AZ deployment

If the master AZ is to be deactivated, data needs to be migrated as detailed below. We recommend that you perform the migration during the maintenance time. For more information, see Setting Maintenance Time.
1. Manually promote a replica AZ to master AZ. For more information, see step3 in single-AZ deployment inAZ Migration Scheme > Directions.
2. Add a new replica for the instance as instructed in Adding Replicas to Multi-AZ Deployed Instance.
3. Delete the replica node in the original master AZ. For more information, see step4 in single-AZ deployment in AZ Migration Scheme > Directions.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support