All Products
Search
Document Center

PolarDB:Change the VPC and vSwitch for a PolarDB for MySQL cluster

Last Updated:Jan 25, 2024

PolarDB for MySQL Enterprise Edition allows you to switch the Virtual Private Cloud (VPC) and vSwitch online in the original zone. The endpoint of the PolarDB for MySQL cluster remains unchanged. This topic describes how to switch the VPC and vSwitch.

Note

This feature is in canary release. You can contact us to enable it.

Precautions

  • This feature is applicable only to Enterprise Edition clusters of PolarDB for MySQL Enterprise Edition.

  • When you switch the VPC and vSwitch, a transient connection that lasts approximately 30 seconds occurs. We recommend that you perform this operation during off-peak hours and ensure that your application supports automatic reconnection.

  • This operation interrupts the connection between your cluster and Data Management (DMS) or the connection between your cluster and Data Transmission Service (DTS) for a short period of time. After your cluster is connected to the new VPC and vSwitch, the connection is automatically resumed.

Change the default VPC and default vSwitch

  1. Log on to the PolarDB console. In the upper-left corner, select a region and click the ID of the cluster.

  2. On the Basic Information page, click Switch next to Default VPC.

    8.png

  1. In the Switch VPC dialog box, select a VPC and a vSwitch from the drop-down list.

  1. Set Existing Endpoint Switching and click OK.

Note
  • If you select No for Existing Endpoint Switching, only the default VPC and default vSwitch of the cluster are changed. The default VPC and default vSwitch are automatically selected the next time you create a custom endpoint.

  • If you select Yes for Existing Endpoint Switching, the default VPC and default vSwitch of the cluster are changed. The VPCs and vSwitches of all endpoints are also changed.

Change multiple VPCs and vSwitches at a time

  1. Log on to the PolarDB console. In the upper-left corner, select a region and click the ID of the cluster.

  2. On the Basic Information page, click Switch next to Default VPC.

    8.png

  1. In the Switch VPC dialog box, select a VPC and a vSwitch from the drop-down list.

  1. Select Yes for Existing Endpoint Switching and click OK.

Modify the VPC and vSwitch of a single endpoint

  1. Log on to the PolarDB console. In the upper-left corner, select a region and click the ID of the cluster.

  2. In the Dedicated Enterprise Edition or Standard Enterprise Edition section, click Modify Settings next to the primary endpoint.

  3. In the Modify Endpoint Settings dialog box, choose More > Edit.

    9.png

  1. In the Modify Private Endpoint dialog box, select the VPC and vSwitch from the drop-down list, and then click OK.

Note

Then, the default VPC and default vSwitch of the cluster are the same as the VPC and vSwitch of the primary endpoint.

Specify the VPC and vSwitch when you create a custom endpoint

  1. Log on to the PolarDB console. In the upper-left corner, select a region and click the ID of the cluster.

  2. In the Dedicated Enterprise Edition or Standard Enterprise Edition section, click Create Custom Cluster Endpoint.

  3. In the Create Custom Cluster Endpoint dialog box, select a VPC and a vSwitch from the drop-down list.

  4. Configure other settings and click OK.

Note

When you create a custom endpoint, the default VPC and default vSwitch are selected for the cluster by default. If the default VPC and default vSwitch are not selected for the cluster, the default VPC and default vSwitch of the cluster are changed after the custom endpoint is created.