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
-
Log on to the ApsaraDB for MyBase console.
-
In the upper-left corner of the page, select the destination region.
-
In the navigation pane on the left, choose .
-
Select the destination instance and click Details in the Actions column.
-
In the navigation pane on the left, click Service availability.
-
Click Change availability detection method.
You can find the Change availability detection method button on the Instance availability page.
-
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.
-