This topic describes how to switch Redis instances that are deployed in classic networks to Virtual Private Cloud (VPC) networks.

Background

ApsaraDB supports two types of networks: the classic network and VPC network. The differences between the classic network and VPC network are as follows:

  • Classic network: Cloud services in a classic network are not isolated. Unauthorized access to a cloud service is blocked only by a security group or a whitelist policy of the service.
  • VPC: You can use a VPC network to build an isolated network environment in Alibaba Cloud. You can customize the route table, IP address range, and gateway for a VPC network. You can also use a physical connection or Virtual Private Network (VPN) to combine your on-premises data center with cloud resources in Alibaba Cloud VPC networks to build a virtual data center and smoothly migrate your applications to the cloud.

Precautions

  • You can switch the network type from the classic network to VPC network, but not conversely.
  • When you switch the network type from the classic network to VPC network, you can choose to keep the connection address of the classic network.

Prerequisites

The current network type of an ApsaraDB for Redis instance is the classic network. A VPC and a VSwitch are created in the region where the ApsaraDB for Redis instance is deployed. For more information, see Create a VPC.

Notice You must create a VSwitch in the zone where the target ApsaraDB for Redis instance is deployed.

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. In the top navigation bar, select the region where the target instance is located.
  3. On the Instances page, click the Instance ID of the target instance.
  4. On the Instance Information page, click Switch to VPC Network.
  5. In the Switch to VPC Network dialog box, select a VPC and a VSwitch, select an option for Retain the connection address of the classic network, select a retention period for Retention Days, and then click OK.
    Notice
    • You can click Refresh on the Instance Information page to view the endpoints of the classic network and VPC network.
    • If OK is disabled, you need to check whether you have selected a VSwitch. If no VSwitch is available in the current VPC network, you need to create a VSwitch. For more information, see VPC User Guide > VSwitch management.

Troubleshooting

For more information about how to fix issues that may occur when you connect to an ApsaraDB for Redis instance, see Troubleshooting for connection issues in ApsaraDB for Redis.

Related operations

SwitchNetwork