# This file is managed by puppet.
# https://github.com/openstack/openstack-ci-puppet

[gerrit]
	basePath = git
	canonicalWebUrl = <%= canonicalweburl %>
[database]
	type = MYSQL
	hostname = localhost
	database = reviewdb
	username = gerrit2
	poolLimit = 20
[auth]
	type = OPENID_SSO
	openIdSsoUrl = <%= openidssourl %>
	cookieSecure = true
	contributorAgreements = true
[sendemail]
	smtpServer = localhost
[container]
	user = gerrit2
	javaHome = /usr/lib/jvm/java-6-openjdk/jre
[sshd]
	listenAddress = *:29418
	threads = 12
[httpd]
	listenUrl = proxy-https://*:8081/
	acceptorThreads = 8
[cache]
	directory = cache
[cache "web_sessions"]
	maxAge = 1d
[user]
	email = <%= email %>
<% commentlinks.each do |commentlink| -%>
[commentlink "<%= commentlink['name'] %>"]
        match = "<%= commentlink['match'] %>"
        link = "<%= commentlink['link'] %>"
<% end -%>
# This file is managed by puppet.
# https://github.com/openstack/openstack-ci-puppet

[gerrit]
	basePath = git
	canonicalWebUrl = <%= canonicalweburl %>
[database]
	type = MYSQL
	hostname = localhost
	database = reviewdb
	username = gerrit2
	poolLimit = 32
[auth]
	type = OPENID_SSO
	openIdSsoUrl = <%= openidssourl %>
	cookieSecure = true
	contributorAgreements = true
[sendemail]
	smtpServer = localhost
[container]
	user = gerrit2
	javaHome = /usr/lib/jvm/java-6-openjdk/jre
[sshd]
	listenAddress = *:29418
	threads = 24
[httpd]
	listenUrl = proxy-https://*:8081/
	acceptorThreads = 8
[cache]
	directory = cache
[cache "web_sessions"]
	maxAge = 1d
[user]
	email = <%= email %>
<% commentlinks.each do |commentlink| -%>
[commentlink "<%= commentlink['name'] %>"]
        match = "<%= commentlink['match'] %>"
        link = "<%= commentlink['link'] %>"
<% end -%>

Increase sshd threads for gerrit.
Increase sshd threads for gerrit.

Based on the advice in this thread:
http://groups.google.com/group/repo-discuss/browse_thread/thread/b91491c185295a71

Size the sshd threads (which are also used to handle https git requests)
better.  Based on current trends, we peak at about 50% cpu usage
and 25% memory usage.  Double the number of threads here to try to
allow us to get closer to 100% cpu.

(Corresponding increase in db connections.)

Change-Id: Icde18233de01466b241ab28d38d2e98735108193
