ApsaraDB RDS monitors your instance health using one of two methods: short-lived connection or persistent connection. Matching the detection method to your application's connection pattern ensures accurate health monitoring. By default, RDS uses persistent connection.
Changing the detection method does not affect running workloads on your RDS instance.
Choose a detection method
Use the following criteria to select a method:
Short-lived connection: Your application opens a new connection for every database operation and does not reuse connections.
Persistent connection (default): Your application uses a connection pool — a set of pre-established connections that are reused across requests rather than opened per operation.
If you are unsure whether your application uses a connection pool, check whether your framework or database client library includes a pooling configuration (such as maximumPoolSize or maxConnections). If it does, your application is likely using a connection pool.
Change the detection method
Go to the Availability Detection section in the RDS console and select the method that matches your connection pattern.