This topic describes how to change the specifications 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 specifications of the instance based on your business requirements.

Billing

For more information, see Configuration change fees.

Limits

  • The new storage capacity that you specify for a standalone instance must be greater than the storage space that is used in the instance.
  • If a standalone instance is charged based on the subscription billing method, the interval between two downgrades must be greater than or equal to 60 days.
  • The storage capacity of a standalone instance cannot be decreased. If you require less storage space, you can create another standalone instance. For more information, see Configuration change overview.
  • The instance type, storage engine, and number of nodes of a standalone instance cannot be changed. For example, a standalone instance cannot be upgraded to a replica set instance. If you require a different instance type, storage engine, or number of nodes, you can create another standalone instance. For more information, see Configuration change overview.

Precautions

  • Specification changes do not cause data loss.
  • During a specification change, you may experience one or two transient connections. Each transient connection lasts about 30 seconds. To prevent interruptions to your workloads, we recommend that you can set the switching time for a specification change based on your business requirements.
    Note If you change only the value of the Storage Space parameter, no transient connections occur.
  • The time that is required for a specification change varies based on factors such as the network conditions, task queue status, and data volume. We recommend that you change the specifications of a standalone instance during off-peak hours and make sure that your application is configured to automatically reconnect to the instance.
  • To ensure better performance and stability of the instance, the system will upgrade the minor version to the latest version by default. If the minor version of your instance expires or is not included in the maintenance list and the instance is upgraded, migrated, changed, Created from a backup, Created by point-in-time, or performed Restore data to a new ApsaraDB for MongoDB instance.

Procedure

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the upper-left corner of the page, select the resource group and the region of the target instance.
  3. In the left-side navigation pane, click Replica Set Instances.
  4. On the Replica Set Instances page, find the standalone instance whose specifications you want to change.
  5. Open the page on which you can change the specifications of the standalone instance. The method of opening the page varies based on the billing method of the standalone instance.
    If the standalone instance is charged based on the subscription billing method, perform the following operations:
    • In the Actions column, click the More icon icon to show more options. Then, click Upgrade or Downgrade.
    • Click the ID of the standalone instance. In the Basic Information section of the Basic Information page, click Upgrade or Downgrade.
    If the standalone instance is charged based on the pay-as-you-go billing method, perform the following operations:
    • In the Actions column, click the More icon icon to show more options. Then, click Change Configuration.
    • Click the ID of the standalone instance. In the Basic Information section of the Basic Information page, click Change Configuration.
  6. Configure the following parameters.
    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 the storage space that is used in the standalone instance. If you require less storage space, you can create another standalone instance. For more information, see Configuration change overview.
    Billing method Change type Parameter Description
    Subscription Upgrade Specification Select the new specifications of the standalone instance. For more information about the specifications that are supported by standalone instances, see Instance types.
    Storage Space Select the new storage capacity of the standalone instance.
    Switching Time Select the time when you want to apply the specification change.
    • Switch immediately after data migration: ApsaraDB for MongoDB applies the specification change immediately after you complete the payment.
    • Switching during serviceable time: ApsaraDB for MongoDB applies the specification change within the maintenance window that you specify. You can view the maintenance window. You can also change the maintenance window by using one of the following methods:
      • Click Edit next to Switching during serviceable time.
      • Go to the Basic Information page. In the Specification Information section, click Edit next to Maintenance Period. For more information, see Specify a maintenance period.
    Downgrade Specification Select the new specifications of the standalone instance. For more information about the specifications that are supported by standalone instances, see Instance types.
    Switching Time Select the time when you want to apply the specification change.
    • Switch immediately after data migration: ApsaraDB for MongoDB applies the specification change immediately after you complete the payment.
    • Switching during serviceable time: ApsaraDB for MongoDB applies the specification change within the maintenance window that you specify. You can view the maintenance window. You can also change the maintenance window by using one of the following methods:
      • Click Edit next to Switching during serviceable time.
      • Go to the Basic Information page. In the Specification Information section, click Edit next to Maintenance Period. For more information, see Specify a maintenance period.
    Pay-as-you-go
    • Upgrade
    • Downgrade
    Specification Select the new specifications of the standalone instance. For more information about the specifications that are supported by standalone instances, see Instance types.
    Storage Space Select the new storage capacity of the standalone instance.
    Note The storage capacity of a standalone instance cannot be decreased. If you require less storage space, you can create another standalone instance. For more information, see Configuration change overview.
    Switching Time Select the time when you want to apply the specification change.
    • Switch immediately after data migration: ApsaraDB for MongoDB applies the specification change immediately after you complete the payment.
    • Switching during serviceable time: ApsaraDB for MongoDB applies the specification change within the maintenance window that you specify. You can view the maintenance window. You can also change the maintenance window by using one of the following methods:
      • Click Edit next to Switching during serviceable time.
      • Go to the Basic Information page. In the Specification Information section, click Edit next to Maintenance Period. For more information, see Specify a maintenance period.
  7. Complete the payment.
    Perform the following operations based on the billing method of the standalone instance:
    • If the standalone instance is charged based on the pay-as-you-go billing method, read and select ApsaraDB for MongoDB Agreement of Service and click Activate.
    • In the standalone instance is charged based on the subscription billing method, read and select ApsaraDB for MongoDB Agreement of Service, click Pay, and then complete the payment.

Related operations

Operation Description
ModifyDBInstanceSpec Changes the specifications or storage capacity of an ApsaraDB for MongoDB standalone instance or replica set instance.

Result

When the status of the standalone instance changes to Running, the specification change is complete.