When you need to change the network settings of an ApsaraDB RDS for MariaDB instance, such as the VPC or subnet, you can change its vSwitch directly — without creating a new instance or interrupting your business.
Prerequisites
Before you begin, ensure that you have:
An RDS instance using the subscription or pay-as-you-go billing method
Impacts
Changing the vSwitch of an RDS instance has the following effects:
Transient connection (approximately 30 seconds): Switching vSwitches causes a brief connection interruption. Configure your application to automatically reconnect to the RDS instance.
Virtual IP address (VIP) change: The VIPs of the RDS instance change after the switch. Connect your application using an endpoint instead of a VIP to avoid disruption. After the change, refresh the connection information in the ApsaraDB RDS console to view the updated VIPs.
Data Management (DMS) and Data Transmission Service (DTS) connections interrupted: VIP changes briefly interrupt connections between the RDS instance and Data Management (DMS) and DTSData Transmission Service (DTS). Connections resume automatically after the change completes.
DNS cache: If a DNS cache exists on your database client, you can read data but cannot write data. Clear the DNS cache on the client as soon as possible.
Change the vSwitch
Go to the Instances page. In the top navigation bar, select the region where the RDS instance resides. Find the instance and click its ID.
In the left-side navigation pane, click Database Connection.
Click Switch vSwitch.
In the dialog box, select the target vSwitch in the Change To field, then click OK.
NoteIf no vSwitch exists in the current zone of the virtual private cloud (VPC), no vSwitch is available for selection. Go to the VPC console to create a vSwitch in the zone first.
In the message that appears, click OK.