This topic describes how to switch to a new VSwitch for an RDS PostgreSQL instance equipped with standard SSDs or enhanced SSDs (ESSDs).

Prerequisites

Your RDS PostgreSQL instance is equipped with standard SSDs or ESSDs.

Impacts

  • While you switch to a new VSwitch, there is a 30-second brief disconnection. Make sure that your application is configured to automatically reconnect to the RDS instance after disconnection.
  • After you switch to a new VSwitch, the virtual IP addresses (VIPs) of the RDS instance change. Therefore, we recommend that you use an endpoint of the RDS instance to establish a connection with your application.
  • The VIP changes interrupt connections with Alibaba Cloud Data Management Service (DMS) and Data Transmission Service (DTS). The connections with DMS and DTS can be automatically restored to normal.
  • If the client locally caches data, you may only be able to read data. We recommend that you clear the cache immediately after the RDS instance is switched to a new VPC and VSwitch.

Procedure

  1. Log on to the ApsaraDB for RDS console.
  2. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where the target RDS instance resides.
    Select a region
  3. Find the target instance and click the instance ID.
  4. In the left-side navigation pane, click Database Connection.
  5. In the upper-right corner, click Switch VSwitch.
    切换交换机
  6. Select a VPC and a VSwitch, then click OK.
    Note To create a VPC or VSwitch, click go to the VPC console.
    选择VPC和虚拟交换机
  7. In the displayed dialog box, click the button for confirming the switchover.

FAQ

How do I change the VPC of an RDS PostgreSQL instance if that instance does not allow me to switch to a new VPC and VSwitch?

Purchase a new instance with the target VPC selected. Then, migrate the data of the original instance to the new instance. For more information, see Migrate data between ApsaraDB for RDS instances.