edit-icon download-icon

Set the network type when creating an instance

Last Updated: Jan 17, 2018

Background information

ApsaraDB supports two types of network: classic and Virtual Private Cloud (VPC). On the Alibaba Cloud platform, a classic network and VPC have the following differences:

  • Classic network: Cloud services on the classic network are not isolated, and unauthorized access can only be blocked by the security group or whitelist policy of the cloud services.

  • VPC: This helps you build an isolated network environment on Alibaba Cloud. You can customize the route table, IP address range, and gateway on the VPC. In addition, you can combine your on-premises IDC with cloud resources in the Alibaba Cloud VPC through a leased line or VPN to migrate applications to the cloud.

By default, MongoDB uses the classic network type. If you want to use VPC, guarantee that the MongoDB and VPC instances are in the same region. You may create a VPC instance in either of the following scenarios:

  • If no MongoDB instance exists, create a VPC instance and then create a MongoDB instance in VPC. This chapter describes how to create a MongoDB instance.

  • If a MongoDB instance already exists, create a VPC instance in the region where the MongoDB instance is located and add the MongoDB instance to the VPC instance. For more information, see the description about how to change the network type of an existing MongoDB instance.

Procedure

  1. Create a VPC instance. For more information, see Create VPC.

  2. Create a MongoDB instance in the region where the VPC instance is located.

  3. During purchasing, select VPC as the network type and select the corresponding VPC instance. For more information, see Create a replica set instance and Create a sharding instance.

Thank you! We've received your feedback.