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

Prerequisites

Your RDS instance runs PostgreSQL with standard or enhanced SSDs.

Impacts

  • During the change process, your RDS instance encounters a transient connection of about 30 seconds. 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 DMS and Data Transmission Service (DTS). After the change process is finished, these connections are automatically restored to normal.
  • If data is cached on the database client, you can read data but cannot write data. After the change process is finished, we recommend that you immediately clear the cache on the database client.

Procedure

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Database Connection.
  3. In the upper part of the Database Connection page, click Switch vSwitch.
  4. Select a VPC and a vSwitch. Then, click OK.
    Note If you want to create a VPC and a vSwitch, you can click go to the VPC console.
  5. In the message that appears, click OK.

FAQ

How do I change the VPC of an RDS instance if the instance does not allow me to switch to a different VPC and vSwitch?

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