Configuring Connection Pools
Scenarios
A session-level connection pool helps reduce the database load caused by frequent establishment of short connections.
Connection Pool is disabled by default. You can enable a session-level connection pool.
Constraints
- The kernel version of proxy instances must be 2.22.07.000 or later.
How a Session-Level Connection Pool Works
A session-level connection pool is suitable for short connections.
When your client disconnects from your database, the system checks whether the connection is idle. If it is, the system places the connection in the connection pool of a proxy instance and retains the connection for a short period of time. When your client re-initiates a connection, any available connection in the connection pool is used, reducing the overhead of establishing a new connection to the database. If no connections are available in the connection pool, a new connection will be established.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select a region and a project.
- Click
in the upper left corner of the page, choose .
- On the Instances page, click the instance name.
- In the navigation pane, choose Database Proxy.
- Click the name of a proxy instance.
- On the Basic Information page, click Change next to Connection Pool.
- Set Connection Pool to Session level and click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.