All Products
Search
Document Center

ApsaraDB for MongoDB:Configure database parameters for an ApsaraDB for MongoDB instance

Last Updated:May 17, 2024

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. 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.

  2. In the left-side navigation pane of the instance details page, click Parameters.

  3. 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.

    1. DB: displays modifiable parameters for shard nodes.

    2. Mongos: displays modifiable parameters for mongos nodes.

    3. CS: displays modifiable parameters for Configserver nodes.

    1. Click Batch Modify.

    2. 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.