All Products
Search
Document Center

ApsaraDB for MongoDB:Change VPC and vSwitch

Last Updated:Jul 18, 2026

Change the VPC and vSwitch of an ApsaraDB for MongoDB instance that uses ESSD storage.

Prerequisites

The instance must use ESSD storage.

Usage notes

  • A brief connection disruption occurs during the switch. Ensure that your application has an automatic reconnection mechanism.

  • Switching the VPC and vSwitch changes the virtual IP (VIP) address. We recommend that you use the high-availability connection string URI in your application.

  • The VIP change briefly affects Data Management Service (DMS) and Data Transmission Service (DTS). These services automatically resume after the change.

  • The DNS cache on your client may affect read and write operations. Clear the DNS cache immediately after the switch.

Procedure

  1. Go to the Replica Set Instances or Sharded Cluster Instances page. Select the resource group and region at the top of the page, and then click the ID of the target instance.

  2. In the Basic Information section, click Switch to VPC next to Network Type.

  3. In the VPC panel, select the Proprietary Network and VSwitch.

  4. Click Confirm.