TencentDB for MongoDB allows you to adjust the instance maintenance time in the console to meet the changes in your business requirements.
Overview
Maintenance time is a very important concept for TencentDB for MongoDB. To ensure the stability of your TencentDB for MongoDB instance, the backend system performs maintenance operations on the instance during the maintenance time. We highly recommend you set an acceptable maintenance time for your business instance, usually during off-peak hours, so as to minimize the potential impact on your business.
In addition, we also recommend you perform operations involving data migration, such as adjusting the memory specification or AZ of mongod or mongos nodes, during the maintenance time. Taking the database instance AZ change as an example, as the full and incremental data needs to be synced from the original AZ to the new AZ, data migration will be involved. After the AZ is changed, a momentary disconnection from the database may occur. When the task is initiated, the Switch Time can be selected as During maintenance time, so that the instance data migration will be started during the next maintenance time after the data sync is completed.
Notes:
Before maintenance is carried out for TencentDB for MongoDB during the maintenance time, notifications will be sent to the contacts configured in your Tencent Cloud account through SMS and email.
Version Description
Currently, TencentDB for MongoDB 7.0, 6.0, 5.0, 4.4, 4.2, 4.0, 3.6, and 3.2 support maintenance time configuration.
Prerequisites
You have created a TencentDB for MongoDB instance.
The TencentDB for MongoDB replica set or sharding instance is in Running status.
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 Instance. The operations for Replica Set Instance and Sharded Instance are similar.
3. Select Region at the top of the Instance List page on the right.
4. In the Instance List, find the target instance.
5. Click the ID of the target instance to enter the Instance Details page.
6. On the Instance Details page, click Modify on the right of Maintenance Time.
7. In the Modify Maintenance Time dialog box, set the Start Time and Duration.

8. Click OK to complete the operation. You can view the newly set maintenance time on the Instance Details page.