tencent cloud

フィードバック

AZ Migration Scheme

最終更新日:2024-11-05 10:22:22

    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.
    In the instance list, find the target instance, and click Instance ID.
    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.
    On the instance management page, click More > Delete Replica.
    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.
    お問い合わせ

    カスタマーサービスをご提供できるため、ぜひお気軽にお問い合わせくださいませ。

    テクニカルサポート

    さらにサポートが必要な場合は、サポートチケットを送信して弊社サポートチームにお問い合わせください。24時間365日のサポートをご提供します。

    電話サポート(24 時間365日対応)