Skip to content

Commit ab93a60

Browse files
authored
tuning: note on db connection pool (#431)
Related to apache/cloudstack#9518 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 5f8ef7d commit ab93a60

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

source/adminguide/tuning.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,25 @@ at `MySQL Reference
9191
Manual <http://dev.mysql.com/doc/refman/5.5/en/innodb-buffer-pool.html>`_.
9292

9393

94+
Selecting Database Connection Pool Library
95+
------------------------------------------
96+
97+
CloudStack uses JDBC connection pool to manage and use database connections
98+
in an optimal manner. It allows using either
99+
`HikariCP <https://github.com/brettwooldridge/HikariCP>`_ or
100+
`DBCP 2 <https://commons.apache.org/dbcp/>`_ based on the preference for
101+
individual CloudStack databases - cloud, cloud_usage, simulator.
102+
103+
The following settings can be configured in the db.properties configuration
104+
file for the management server or usage server:
105+
db.cloud.connectionPoolLib
106+
db.cloud_usage.connectionPoolLib
107+
db.simulator.connectionPoolLib
108+
109+
To use DBCP 2, the value for the configuration must be set to 'dbcp'. An
110+
empty value or 'hikaricp' will allow using HikariCP.
111+
112+
94113
Monitor the Database Load
95114
-------------------------
96115

0 commit comments

Comments
 (0)