All Products
Search
Document Center

ApsaraDB for MongoDB:Change Mongos node specifications

Last Updated:Jul 17, 2026

A Mongos node routes client requests to the correct shard. If your Mongos nodes can no longer handle increased traffic efficiently, ApsaraDB for MongoDB lets you change the specifications of one or more Mongos nodes in a sharded cluster instance.

Billing

For more information, see Configuration change fees.

Usage notes

  • During the specification change, one or two transient disconnections may occur, each lasting about 30 seconds. You can schedule the switchover to minimize the impact on your business.

  • The time to complete the configuration change depends on factors such as network conditions, the task queue, and the number and size of nodes. Perform the change during off-peak hours and ensure that your application has an automatic reconnection mechanism.

  • If the minor version of your instance has expired or is no longer maintained, the system automatically upgrades it to the latest minor version to ensure better performance and stability.

Procedure

  1. Go to the ApsaraDB for MongoDB sharded cluster instances page. In the top navigation bar, select a resource group and a region, and then click the ID of the target instance.

  2. In the Mongos List section, change the configuration of one or more Mongos nodes.

    • To change the configuration of a single Mongos node

      In the row of the target Mongos node, click 三个点 in the Actions column. For a pay-as-you-go instance, select Change configuration. For a subscription instance, select Upgrade or Downgrade.

    • To change the configuration of multiple Mongos nodes

      1. In the Mongos List, select the checkboxes of the target Mongos nodes.

      2. In the upper-left corner of the Mongos List, for pay-as-you-go instances, click Batch Change configurations. For subscription instances, click Batch Upgrade or Batch Downgrade.

  3. Configure the following parameters.

    Parameter

    Description

    Category

    Select the specification category for the Mongos nodes.

    Note
    • Available only for cloud disk-based instances.

    • A category is unavailable if the current zone does not support it.

    • For information about the categories and specifications of sharded cluster instances, see Sharded cluster instance specifications.

    Instance Specifications

    Select the specifications for the Mongos nodes.

    Switchover Time

    Select when the new configuration takes effect.

    • Switch Immediately after Migration: The new configuration takes effect immediately after the change is complete.

    • Switch within Maintenance Window: The new configuration takes effect during the specified maintenance window. You can use the current maintenance window or set a new one.

      1. Click Edit next to Switch within Maintenance Window to set the switchover time.

      2. In the Specification Information section, click Edit next to Maintenance Window to set the switchover time. For more information, see Set a maintenance window.

  4. Complete the purchase based on your billing method.

    • For pay-as-you-go instances: Click Pay. The system automatically deducts the fee within the next hour.

    • For subscription instances: Click Pay, and then follow the instructions on the Pay page to complete the payment.

    During the configuration change, the instance status is In the process of matching. The change is complete when the instance status changes to Running.

Related APIs

API

Description

ModifyNodeSpec

Modifies the specifications of a single Mongos node or shard in an ApsaraDB for MongoDB sharded cluster instance.

ModifyNodeSpecBatch

Modifies the specifications of multiple Mongos nodes or shards in an ApsaraDB for MongoDB sharded cluster instance.