All Products
Search
Document Center

ApsaraDB for MyBase:Change the vSwitch for an instance

Last Updated:Jul 14, 2023

You can change the Virtual Private Cloud (VPC) and vSwitch for an ApsaraDB MyBase for MySQL instance based on your business requirements.

Precautions

  • If your ApsaraDB MyBase for MySQL instance uses enhanced SSDs (ESSDs), you can change the VPC and vSwitch.

  • If your ApsaraDB MyBase for MySQL instance uses local SSDs, you can change only the vSwitch.

Impacts

  • When you change the vSwitch to which your ApsaraDB MyBase for MySQL is connected, a transient connection that lasts approximately 30 seconds occurs. Make sure that your application is configured to automatically reconnect to your ApsaraDB MyBase for MySQL instance.

  • After the vSwitch is changed, the virtual IP address (VIP) of the instance is changed. We recommend that you connect your application to your ApsaraDB MyBase for MySQL instance by using an endpoint. For more information, see Use a database client or the CLI to connect to an ApsaraDB MyBase for MySQL instance.

  • The VIP change operation interrupts the connection between your ApsaraDB MyBase for MySQL instance and Data Management (DMS), and the connection between your ApsaraDB MyBase for MySQL instance and Data Transmission Service (DTS) for a short period of time. After your instance is connected to the new vSwitch and the VIP of the instance is changed, the connections are automatically resumed.

  • After your instance is connected to the new vSwitch, you can only read data from the instance. You cannot write data to the instance due to the data that is cached on your database client. In this case, we recommend that you immediately clear the cache on your database client.

Procedure

  1. Log on to the ApsaraDB for MyBase console.

  2. In the upper-left corner of the page, select a region.

  3. In the left-side navigation pane, choose Instances > MySQL.

  4. Find the instance that you want to manage and click Details in the Actions column.

  5. In the left-side navigation pane, click Database Connection.

  6. In the Database Connection section, click Switch VSwitch.

  7. Select a VPC and a vSwitch and click OK.

    Select a vSwitch
  8. In the message that appears, click OK.