Allow configuration of Gerrit httpd.maxQueued option

Allow puppet to configure the Gerrit 2.11 httpd.maxQueued[1]
option.

[1] https://gerrit-documentation.storage.googleapis.com/
       Documentation/2.11/config-gerrit.html#httpd.maxQueued

Change-Id: Iea202fcfe7af4a9d5b4c3a360124c24649b1133b
This commit is contained in:
Khai Do 2016-02-03 16:03:49 -08:00
parent 185f87b585
commit 1a7e671d40
2 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,7 @@
# httpd_acceptorthreads:
# httpd_minthreads:
# httpd_maxthreads:
# httpd_maxqueued:
# httpd_maxwait:
# Gerrit configuration options; see Gerrit docs.
# commentlinks:
@ -176,6 +177,7 @@ class gerrit(
$httpd_acceptorthreads = '',
$httpd_minthreads = '',
$httpd_maxthreads = '',
$httpd_maxqueued = '',
$httpd_maxwait = '',
$commentlinks = [],
$trackingids = [],
@ -368,6 +370,7 @@ class gerrit(
# - $httpd_acceptorthreads
# - $httpd_minthreads
# - $httpd_maxthreads
# - $httpd_maxqueued
# - $commentlinks
# - $trackingids
# - $enable_melody

View File

@ -100,6 +100,9 @@
<% if @httpd_maxthreads != "" -%>
maxThreads = <%= @httpd_maxthreads %>
<% end -%>
<% if @httpd_maxqueued != "" -%>
maxQueued = <%= @httpd_maxqueued %>
<% end -%>
[cache]
directory = cache
[cache "web_sessions"]