This topic describes how to change the configurations of your replica set instance to meet your business requirements by using the corresponding features in the ApsaraDB for MongoDB console.

Billing rules

For more information, see Configuration change fees.

Limits

  • When you change the configurations of a replica set instance, the new storage space must be larger than the amount of storage space occupied by the current instance.
  • If the billing method is subscription, you must wait at least 60 days between two consecutive configuration downgrades.
  • The storage space of replica set instances cannot be decreased. To decrease the storage space of a replica set instance, you can create another instance. For more information, see Other configuration change scenarios and methods.
  • Instance categories cannot be changed. For example, a replica set instance cannot be changed into a sharded cluster instance. The storage engines of instances also cannot be changed. If you want to change the category and storage engine of a replica set instance, you can create another instance. For more information, see Other configuration change scenarios and methods.

Precautions

  • Changes to instance configurations do not result in data loss.
  • During a configuration change, you may experience a momentary service interruption or two lasting about 30 seconds each. To prevent a configuration change from interrupting your workloads, we recommend that you perform the configuration change at a time that has minimal impact on your business.
    Note If you change only the Storage Space configuration, no service interruptions occur.
  • The time required to perform a configuration change depends on factors such as the network conditions, task queue status, and data volume. We recommend that you change the configurations 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 instance whose configurations you want to change.
  5. Go to the page on which you can change the configurations of the replica set instance. The method of changing the configurations varies based on the billing method of the instance.
    Subscription
    • Click the More icon icon in the Actions column corresponding to the instance, and select Upgrade or Downgrade.
    • Click the instance ID. In the Basic Information section, click Upgrade or Downgrade.
    Pay-as-you-go
    • Click the More icon icon in the Actions column corresponding to the instance, and select Change Configuration.
    • Click the instance ID. In the Basic Information section, click Change Configuration.
  6. Set the following parameters to complete the change.
    Note When you change the Storage Space configuration, the new storage space must be larger than the amount of storage space occupied by the current instance. To decrease the storage space of a replica set instance, you can create another instance. For more information, see Other configuration change scenarios and methods.
    Billing method Change action Parameter Description
    Subscription Upgrade configurations. Nodes The number of nodes that can be selected when you change the configuration. Valid values:
    • Three Nodes Replicaset: cannot be downgraded.
    • Five Nodes Replicaset: can be downgraded to Three Nodes Replicaset.
    • Seven Nodes Replicaset: can be downgraded to Three Nodes Replicaset or Five Nodes Replicaset.
    Specification The instance specifications that can be selected. For more information about the specifications supported by replica set instances, see Instance types.
    Storage Space The storage space that can be selected.
    Switching Time The time when you want to perform the configuration change.
    • Switch immediately after data migration: ApsaraDB for MongoDB performs the configuration change immediately after you complete the payment.
    • Switching during serviceable time: ApsaraDB for MongoDB performs the configuration change within the specified maintenance window. You can view the current maintenance window, or change the maintenance window by using one of the following methods:
      • In the Migrate Instance to Other Zone panel, click Edit next to Migrate at Scheduled Time.
      • In the Specification Information section of the Basic Information page, click Edit next to Maintenance Period. For more information, see Specify a maintenance period.
    Downgrade configurations. Nodes The number of nodes that can be selected when you change the configuration. Valid values:
    • Three Nodes Replicaset: cannot be downgraded.
    • Five Nodes Replicaset: can be downgraded to Three Nodes Replicaset.
    • Seven Nodes Replicaset: can be downgraded to Three Nodes Replicaset or Five Nodes Replicaset.
    Specification The specifications that can be selected. For more information about the specifications supported by replica set instances, see Instance types.
    Switching Time The time when you want to perform the configuration change.
    • Switch immediately after data migration: ApsaraDB for MongoDB performs the configuration change immediately after you complete the payment.
    • Switching during serviceable time: ApsaraDB for MongoDB performs the configuration change within the specified maintenance window. You can view the current maintenance window, or change the maintenance window by using one of the following methods:
      • In the Migrate Instance to Other Zone panel, click Edit next to Migrate at Scheduled Time.
      • In the Specification Information section of the Basic Information page, click Edit next to Maintenance Period. For more information, see Specify a maintenance period.
    Pay-as-you-go
    • Upgrade configurations.
    • Downgrade configurations.
    Nodes The number of nodes that can be selected when you change the configuration. Valid values:
    • Three Nodes Replicaset: cannot be downgraded.
    • Five Nodes Replicaset: can be downgraded to Three Nodes Replicaset
    • Seven Nodes Replicaset: can be downgraded to Three Nodes Replicaset or Five Nodes Replicaset.
    Specification The specifications that can be selected. For more information about the specifications supported by replica set instances, see Instance types.
    Storage Space The storage space that can be selected.
    Note The storage space of ApsaraDB for MongoDB instances cannot be decreased. To decrease the storage space of an ApsaraDB for MongoDB instance, you can create another instance. For more information, see Other configuration change scenarios and methods.
    Switching Time The time when you want to perform the configuration change.
    • Switch immediately after data migration: ApsaraDB for MongoDB performs the configuration change immediately after you complete the payment.
    • Switching during serviceable time: ApsaraDB for MongoDB performs the configuration change within the specified maintenance window. You can view the current maintenance window, or change the maintenance window by using one of the following methods:
      • In the Migrate Instance to Other Zone panel, click Edit next to Migrate at Scheduled Time.
      • In the Specification Information section of the Basic Information page, click Edit next to Maintenance Period. For more information, see Specify a maintenance period.
  7. Purchase an instance.
    Perform the corresponding operations based on the selected billing method.
    • If the billing method is pay-as-you-go, read and select ApsaraDB for MongoDB Agreement of Service and click Activate.
    • If the billing method is subscription, read and select ApsaraDB for MongoDB Agreement of Service, click Pay, and then complete the payment on the Purchase page.

Result

When the state of the replica set instance changes to Running, the configuration change is complete.