Configure database parameters

更新时间:
复制 MD 格式

ApsaraDB for MongoDB allows you to configure database parameters. You can modify these parameters to better suit your business requirements.

Prerequisites

This procedure applies to standalone, replica set, and sharded cluster instances.

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

    On the Parameter List page, you can view 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.