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

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances based on the instance type.
  3. In the upper-left corner of the page, select the resource group and region to which the instance belongs.
  4. Click the ID of an instance, or click More icon in the Actions column corresponding to the instance and select Manage.
  5. In the left-side navigation pane of the instance details page, choose Parameters > Parameter List.
  6. 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
      1. Click 选择运行参数值 in the Running Parameter Value column corresponding to the parameter for which you want to modify the running parameter value.
      2. In the dialog box that appears, specify a different value for the parameter.
      3. Click OK.
    • Sharded cluster instance
      1. 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.
      2. 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.
      3. In the Modify Parameter panel, specify a different value for one or more parameters.
      4. Click OK.