This topic describes how to configure database parameters for an ApsaraDB for MongoDB instance to better fit your business needs.
Prerequisites
A standalone, replica set, or sharded cluster instance is created.
Precautions
After you save the changes to specific parameters, the instance restarts. For more information about whether a restart is required after a parameter is modified, see descriptions in the Force Restart column on the Parameter List page.
While the instance is restarting, it is not connected. We recommend that you restart your instance during off-peak hours to minimize the impact on your business.
Procedure
Go to the Replica Set Instances or Sharded Cluster Instances page. In the top navigation bar, select the region in which the instance resides. Then, find the instance and click the ID of the instance.
In the left-side navigation pane of the instance details page, click Parameters.
On the Parameters page, proceed by scenario.
NoteOn the Parameters page, you can view the detailed information of a parameter. The information includes Parameter Name, Default Parameter Value, Running Parameter Value, Force Restart, Value Range, and Parameter Description.
Standalone and replica set instance
Click
in the Running Parameter Value column corresponding to the parameter for which you want to modify the running parameter value.
In the dialog box that appears, specify a different value for the parameter.
Click OK.
Sharded cluster instance
Select the type of nodes whose parameter value you want to modify from the Node drop-down list.
DB: displays modifiable parameters for shard nodes.
Mongos: displays modifiable parameters for mongos nodes.
CS: displays modifiable parameters for Configserver nodes.
Click Batch Modify.
- Note
You can also click
in the Running Parameter Value column corresponding to the parameter for which you want to modify the running parameter value.
In the Modify Parameter panel, specify a different value for one or more parameters.
Click OK.