edit-icon download-icon

Switch from classic network to VPC

Last Updated: Jan 17, 2018

Background

Virtual Private Cloud (VPC) is a private network logically isolated from other virtual networks. Alibaba Cloud VPC allows you to build an isolated network environment with better security and performance than classic network. With these benefits, VPC becomes a preferred networking choice for cloud users. To meet the increasing network migration needs, ApsaraDB for MongoDB adds a new feature called hybrid network access. This feature enables seamless migration from classic network to VPC with no intermittent service interruption or access interruption.

Solution

Previously, when you switch a MongoDB instance from the classic network to VPC, the address of the classic network is released immediately, which causes a transient disconnection shorter than 30s, and cloud products in the classic network, such as ECS, cannot reconnect to the MongoDB instance.

The hybrid access solution allows an MongoDB instance to be connected by ECS instances in a classic network and those in VPC to implement smooth change of network types. When you switch the MongoDB instance from the classic network to VPC, you can choose to retain the address of the classic network (for up to 120 days) while the new VPC connection address is generated. In this way, the instance can be accessed by ECS instances in the classic network and those in VPC during migration.

During hybrid access to the instance, you can gradually migrate ECS instances and other cloud products in the classic network to VPC to enable intranet-based connection between all products over VPC with improved security.

Limits

During the hybrid access period, switching to classic network is not supported.

Procedure

  1. Log on to the MongoDB console and find the target instance.

  2. In the operation area, choose More > Change network type to go to the Change Network Type page.

  3. Click Switch to VPC to go to the Switch to VPC confirmation page. Then, select the expected VPC and VSwitch, select Reserve Original Classic Network, set the expiration time of the intranet address of the original classic network, and click OK.

Thank you! We've received your feedback.