This topic describes how to switch an ApsaraDB RDS for PostgreSQL instance that uses standard SSDs or enhanced SSDs (ESSDs) to a different vSwitch.

Prerequisites

Your RDS instance runs PostgreSQL with standard SSDs or ESSDs.

Impacts

  • When you switch your RDS instance to a different vSwitch, a transient connection that lasts approximately 30 seconds occurs. Make sure that your application is configured to automatically reconnect to your RDS instance.
  • After the vSwitch of your RDS instance is changed, the virtual IP addresses (VIPs) of your RDS instance change. We recommend that you connect your application to your RDS instance by using an endpoint. For more information, see Configure endpoints for an ApsaraDB RDS for PostgreSQL instance.
  • The VIP changes temporarily interrupt the connections to Data Management (DMS) and Data Transmission Service (DTS). After the vSwitch of your RDS instance is changed, these connections are automatically restored to normal.
  • If data is cached on your database client, you can read data but cannot write data. After the vSwitch of your RDS instance is changed, we recommend that you immediately clear the cache on the database client.

Procedure

  1. Access RDS Instances, select a region at the top, and then click the ID of the target RDS instance.
  2. In the left-side navigation pane, click Database Connection.
  3. On the Database Connection page, click Switch VSwitch. Switch VSwitch
  4. In the dialog box that appears, select a destination vSwitch and click OK. Switch VSwitch dialog box
  5. In the message that appears, click Switch.

FAQ

How do I change the VPC of an RDS instance?

Purchase a new RDS instance that resides in the required VPC. Then, migrate the data of the original RDS instance to the new RDS instance. For more information, see Use the cloud migration feature to migrate data between ApsaraDB RDS for PostgreSQL instances or Use DTS to migrate data between ApsaraDB RDS for PostgreSQL instances.