tencent cloud

Feedback

Modifying Instance AZ

Last updated: 2022-10-17 17:15:49

    Overview

    During daily maintenance, you can place your TencentDB for MongoDB and CVM instances in the same AZ to lower the network latency. TencentDB for MongoDB multi-AZ instances support free AZ switch, and single-AZ instances support upgrade to multi-AZ instances.

    Billing

    AZ modification doesn't affect instance billing.

    Notes

    AZ modification may lead to primary-replica switch and a momentary disconnection for about 10 seconds; therefore, proceed during the off-peak hours of your business.

    Instructions

    • All attributes, configurations, and connection addresses of the instance will stay unchanged after AZ modification. The private IP of the database will change after network switch, so you need to reconnect to the instance.

    Prerequisites

    Directions

    1. Log in to the TencentDB for MongoDB console.
    2. In the MongoDB drop-down list on the left sidebar, select Replica Set Instance or Sharded Cluster Instance. The directions for the two types of instances are similar.
    3. Above the instance list on the right, select the region.
    4. In the instance list, find the target instance.
    5. Click the instance ID to enter the Instance Details page.
    6. On the Instance Details page, click Modify AZs after **AZ.
    7. In the Modify AZs pop-up window, read the notes on AZ modification. For a multi-AZ deployed instance, configure different AZs for the primary and replica nodes respectively. For a single-AZ deployed instance, configure the same AZ for both the primary and replica nodes.
      Note:

      • AZ modification may lead to primary-replica switch and a momentary disconnection of about 10 seconds; therefore, proceed during the off-peak hours of your business.
      • To avoid increasing latency, after modifying the AZ of the primary node, you need to change the network of the primary node to one in the new AZ and modify its private IP as soon as possible.
    8. Set AZs in the drop-down lists after Primary Node and Replica Node respectively.
    9. Select the time for executing the AZ switch task after Switch Time. You can click Learn more about switch time and change the instance maintenance time to the off-peak hours of your business. For detailed directions, see Setting Instance Maintenance Time.
      Note:

      If you have selected During maintenance time, do not select Upon modification completion to immediately execute the task before the configured maintenance time; otherwise, a program exception will occur. An initiated task cannot be stopped manually. To stop it, submit a ticket for application.

      • Upon modification completion: The task will be executed immediately after the configuration is completed.
      • During maintenance time: The task will be executed during the maintenance time period.
    10. Click OK.
      The instance status becomes Modifying AZ. Wait for the task to be completed, and you can see that the AZ has been modified.

    Subsequent operations

    After modifying the AZ, switch the VPC subnet to avoid a high access latency. For detailed directions, see Switching Instance Network.

    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