- Documentation
Document Database for MongoDB
User guide
Parameter management
Modifying instance parameters
Parameter management
Modifying instance parameters
Modifying instance parameters
Document Database for MongoDB allows custom settings for some parameter values. This topic describes how to configure parameters.
Precautions
After modifying some parameters, the instance needs to be restarted for the new parameter values to take effect. The instance restart time depends on the load status of the instance. During the restart process, the instance may experience 1-2 brief disconnections. Proceed with caution. It is recommended to perform the operation during off-peak hours and add a reconnection mechanism to the application to greatly reduce the impact of database connection interruptions on your business.
Procedure
- In the upper-left corner of the top menu bar, select the project and region for instance.
- Select either Replica set instances or Sharding instances in the left navigation bar depending on the instance type.
- On the target instance type list page, click the target instance name.
- On the instance details page, click the Parameters tab.
- Under the Parameters tab, perform corresponding parameter modification operations according to the instance type.
tip
- You can choose to modify one parameter or multiple parameters simultaneously based on your business needs.
- To undo the last modification, click Undo previous step in the upper-left corner of the parameter list. To cancel all parameter modifications for this session, click Cancel.
- After completing the modification, click Submit in the upper-left corner of the parameter list.
- In the popped-up dialog box, confirm the parameter values before and after the modification and whether the instance needs to be restarted for the modification to take effect, and then click OK.
tip
- After modifying the parameters, the system takes a few seconds to send the parameter configuration to the instance. Therefore, if you modify parameters that require a restart to take effect, it is recommended to wait for 5 to 10 seconds after clicking OK, and then click Refresh in the upper right corner of the instance page. At this time, you will see the instance enter the Restarting status. When the instance status shows as Running, it indicates that the parameter modification was successful.
- The instance restart time depends on the load status of the instance. During the restart process, the instance may experience 1-2 brief disconnections. Proceed with caution. It is recommended to perform the operation during off-peak hours and add a reconnection mechanism to the application to greatly reduce the impact of database connection interruptions on your business.
Subsequent operations
After successfully modifying the parameters, you can view the details of parameter modifications made under the Parameter modification history tab, including the name of the modified parameters, the values before and after modification, the parameter modification status, and the modification time. For specific procedures, refer to Viewing parameter modification history. Relevant APIs
Last updated: 2026.02.09 17:03:13