Change the availability detection method

更新时间:
复制 MD 格式

Alibaba Cloud checks the health of your MyBase instance using either short-lived or persistent connections. By default, it uses persistent connections.

Prerequisites

You have created a MyBase MySQL High-availability Edition instance. For more information, see Create a MyBase MySQL instance.

Procedure

  1. Log on to the ApsaraDB for MyBase console.

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

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

  4. Select the destination instance and click Details in the Actions column.

  5. In the navigation pane on the left, click Service availability.

  6. Click Change availability detection method.

    You can find the Change availability detection method button on the Instance availability page.

  7. In the dialog box that appears, select Persistent connection or Short-lived connection, then click Save changes.

    • If your application frequently creates and closes database connections, use the short-lived connection detection method.

    • If your application uses a database connection pool, use the persistent connection detection method.