Configure database parameters

更新时间: 2026-07-17 17:50:08

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.

上一篇: Parameter settings 下一篇: View the parameter modification history
阿里云首页 云数据库 MongoDB 版 相关技术圈