From 851072aa42a34b60a2e5d2aa175a14d80a6c3d47 Mon Sep 17 00:00:00 2001 From: Christian Aistleitner Date: Sun, 5 May 2013 15:04:09 +0200 Subject: Add documentation for database.connectionPool setting Change-Id: Ib74b555e40e37e2bf739b133c0cebdd934c67fbe --- Documentation/config-gerrit.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Documentation') diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt index 96f018df28..6228a94ab7 100644 --- a/Documentation/config-gerrit.txt +++ b/Documentation/config-gerrit.txt @@ -1029,6 +1029,13 @@ database.type or database.url for any supported database. isn't necessary as it can be constructed from the all of the above properties. +[[database.connectionPool]]database.connectionPool:: ++ +If true, use connection pooling for database connections. Otherwise, a +new database connection is opened for each request. ++ +Default is false for MySQL, and true for other database backends. + [[database.poolLimit]]database.poolLimit:: + Maximum number of open database connections. If the server needs @@ -1040,11 +1047,17 @@ httpd and sshd threads as some request processing code paths may need multiple connections. + Default is 8. ++ +This setting only applies if +<> is true. [[database.poolMinIdle]]database.poolMinIdle:: + Minimum number of connections to keep idle in the pool. Default is 4. ++ +This setting only applies if +<> is true. [[database.poolMaxIdle]]database.poolMaxIdle:: + @@ -1052,6 +1065,9 @@ Maximum number of connections to keep idle in the pool. If there are more idle connections, connections will be closed instead of being returned back to the pool. Default is 4. ++ +This setting only applies if +<> is true. [[database.poolMaxWait]]database.poolMaxWait:: + @@ -1070,6 +1086,9 @@ Values should use common unit suffixes to express their setting: If a unit suffix is not specified, `milliseconds` is assumed. + Default is `30 seconds`. ++ +This setting only applies if +<> is true. [[download]]Section download ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3