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.
Note 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
- Log on to the ApsaraDB for MongoDB console.
- In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances based on the instance type.
- In the upper-left corner of the page, select the resource group and region to which
the instance belongs.
- Click the ID of an instance, or click
in the Actions column corresponding to the instance and select Manage.
- In the left-side navigation pane of the instance details page, choose .
- On the Parameters page, proceed by scenario.
Note On 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.