From 6c779a5f8334ddae630698b99d20951744b24f72 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 2 Feb 2012 14:22:08 +1300 Subject: [PATCH] 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 --- modules/gerrit/templates/gerrit.config.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/gerrit/templates/gerrit.config.erb b/modules/gerrit/templates/gerrit.config.erb index 10ce9b0ea3..22411ad843 100644 --- a/modules/gerrit/templates/gerrit.config.erb +++ b/modules/gerrit/templates/gerrit.config.erb @@ -9,7 +9,7 @@ hostname = localhost database = reviewdb username = gerrit2 - poolLimit = 20 + poolLimit = 32 [auth] type = OPENID_SSO openIdSsoUrl = <%= openidssourl %> @@ -22,7 +22,7 @@ javaHome = /usr/lib/jvm/java-6-openjdk/jre [sshd] listenAddress = *:29418 - threads = 12 + threads = 24 [httpd] listenUrl = proxy-https://*:8081/ acceptorThreads = 8 @@ -36,4 +36,4 @@ [commentlink "<%= commentlink['name'] %>"] match = "<%= commentlink['match'] %>" link = "<%= commentlink['link'] %>" -<% end -%> \ No newline at end of file +<% end -%>