All Products
Search
Document Center

ApsaraDB for MongoDB:Configure database parameters

Last Updated:Jul 17, 2026

Modify database parameters of your ApsaraDB for MongoDB instance to better suit your business requirements.

Prerequisites

The instance is a standalone, replica set, or sharded cluster instance.

Considerations

Modifying certain parameters automatically restarts the instance. To identify which parameters require a restart, see the Parameter List column on the Force Restart page.

Note

An instance restart interrupts all active connections. Before you modify a parameter that requires a restart, schedule the change during off-peak hours to minimize the impact on your services.

Procedure

  1. Go to the ApsaraDB for MongoDB replica set instances or ApsaraDB for MongoDB sharded cluster instances page, select the resource group and region at the top, and then click the ID of the target instance.

  2. In the left-side navigation pane, click Parameters.

  3. On the Parameter List page, modify parameters based on the instance type.

    Note

    The Parameter List page displays the Parameter Name, Default Value, Parameter Value, Force Restart, Value Range, and Parameter Description for each parameter.

    Standalone and replica set instances

    1. Click 选择运行参数值 in the Parameter Value column.

    2. In the dialog box, select a new value.

    3. Click Confirm.

    Sharded cluster instances

    From the Select Node drop-down list, select the node type to modify.

    • DB: Modifiable shard node parameters.

    • Mongos: Modifiable mongos node parameters.

    • CS: Modifiable config server node parameters.

    Click Batch Modify.

    Note

    You can also click Select Running Parameter Value in the Parameter Value column to modify the Parameter Value of the specified parameter.

    On the Modify Parameters page, enter the new parameter values.

    Click Confirm.