This topic describes how to add a shard node to an ApsaraDB for MongoDB sharded cluster instance.

Limits

The specifications of the new shard node must be higher than or equal to the highest specifications among all the shard nodes of the sharded cluster instance.

For example, if the largest storage capacity among all the shard nodes of a sharded cluster instance is 10 GB, the storage capacity of the new shard node must be greater than or equal to 10 GB.

Pricing

For more information, see Configuration change fees.

Precautions

If the minor version of a sharded cluster instance expires or is not included in the maintenance list, ApsaraDB for MongoDB automatically updates the minor version of the instance to the latest version during a specification change. This ensures that the sharded cluster instance can provide higher performance and higher stability.

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 Sharded Cluster Instances.
  4. Find the target instance and click its ID.
  5. In the Shard List section of the Basic Information page, click Add Shard.
    Add a shard node
  6. In the Add Shard panel, configure the following parameters.
    Note
    • When you set the Storage Capacity parameter, the new storage capacity that you select must be greater than or equal to the largest storage capacity among all the shard nodes of the sharded cluster instance. To decrease the storage space of a sharded cluster instance, you can create another instance. For more information, see Other configuration change scenarios and methods.
    • The specifications of the new shard node must be higher than or equal to the highest specifications among all the shard nodes of the sharded cluster instance. For example, if the highest storage capacity among all the shard nodes of the sharded cluster instance is 10 GB, the storage capacity of the new shard node must be greater than or equal to 10 GB.
    Billing method Parameter Description
    Subscription Instance Specifications The specifications of the node. For more information about the supported specifications of shard nodes, see Instance types.
    Storage Capacity The storage capacity of the node.
    Read-only Nodes The number of read-only nodes to add. Valid values: 0 to 5.
    Pay-as-you-go Instance Specifications The specifications of the node. For more information about the supported specifications of shard nodes, see Instance types.
    Storage Capacity The storage capacity of the node.
  7. Purchase the node.
    Perform the following operations based on the billing method of the sharded cluster instance:
    • Pay-as-you-go: Click Pay Now. Then the system automatically collects the amount.
    • Subscription: Click Pay Now. On the Purchase page, complete the payment process.
    When nodes are being added to the sharded cluster instance, the instance is in the Creating Node state. When the status of the instance changes to Running, nodes are added to the instance.

Related API operations

Operation Description
CreateNode Adds a shard or mongos node to an ApsaraDB for MongoDB sharded cluster instance.