All Products
Search
Document Center

ApsaraDB for MongoDB:Change the configurations of a standalone instance

Last Updated:Aug 01, 2024

This topic describes how to change the configurations of a standalone instance. If the specifications of a standalone instance are higher or lower than the specifications that are required for your business, you can change the configurations of the instance based on your business requirements.

Billing rules

For more information, see Configuration change fees.

Limits

  • The new storage capacity that you specify must be greater than or equal to the existing storage capacity of the standalone instance.

  • You cannot decrease the storage capacity of a standalone instance. To decrease the storage capacity of the instance, create another instance to replace the existing instance. For more information, see Other configuration change scenarios and methods.

  • You cannot change the number of nodes, architecture, or storage engine of a standalone instance. For example, you cannot change a standalone instance into a replica set instance. To make such configuration changes, create another instance to replace the existing instance. For more information, see Other configuration change scenarios and methods.

Usage notes

  • The amount of time required to perform a configuration change depends on factors such as the network conditions, task queue status, and data size. We recommend that you change the configurations of a sharded cluster instance during off-peak hours and make sure that your application can automatically reconnect to the instance.

  • During a configuration change, one or two transient disconnections may occur. Each transient disconnection lasts about 30 seconds. To prevent a configuration change from interrupting your workloads, we recommend that you change configurations at a time that has minimal impact on your business.

  • Configuration changes do not cause data loss.

  • If the minor version of an instance expires or is no longer maintained, ApsaraDB for MongoDB automatically updates the minor version of the instance to the latest version when you upgrade or downgrade the specifications of the instance.

Procedure

  1. Go to the Replica Set 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 Specifications section of the Basic Information page, perform the corresponding operations based on the billing method of the instance.

    • If the billing method of the instance is subscription, click Upgrade or Downgrade.

    • If the billing method of the instance is pay-as-you-go, click Change Configurations.

  3. On the Change Configuration page, configure the parameters described in the following table.

    Note

    When you change the value of the Storage Space parameter, you must make sure that the new storage capacity that you specify is greater than or equal to the existing storage capacity of the standalone instance. To decrease the storage capacity of the instance, create another instance to replace the existing instance. For more information, see Other configuration change scenarios and methods.

    Parameter

    Description

    Specification

    The new specifications. For more information about the specifications supported by standalone instances, see Overview.

    Storage

    The storage capacity that can be selected when you change the configurations.

    Note

    This parameter is not displayed when you downgrade the specifications of a standalone instance that uses the subscription billing method.

    Switching Time

    The time when you want the system to apply the configuration change.

    • Switch Immediately After Data Migration: ApsaraDB for MongoDB applies the configuration change immediately after the payment is complete.

    • Switch Within Maintenance Window: ApsaraDB for MongoDB applies the configuration change within the maintenance window that you specify. You can also perform the following steps to modify the maintenance window:

      1. Click Edit next to Switch Within Maintenance Window.

      2. Go to the Basic Information page. In the Specification Information section, click Edit next to Maintenance Period. For more information, see Specify a maintenance window.

  4. Read and select the Terms of Service, click Buy Now, and then complete the payment as prompted.

    When you change the configurations of the instance, the instance status is Changing Configuration. If the instance status changes to Running, the instance configurations are changed.

Related API operations

Operation

Description

ModifyDBInstanceSpec

Changes the specifications or storage capacity of a standalone or replica set instance.