Increase git haproxy maxconn from 32 to 256

It seems from the logs that we're regularly hitting the max 32
connections limit in haproxy for the git protocol backend under
periods of moderate to high load. Increase this to 256, and also
increase the backlog to 256 so that we can have up to one backlogged
connection per active connection.

In theory 256 should be a sane max since we have leastconn balancing
across 8 backends running persistent git-daemon with its default max
connections value of 32.

Change-Id: I80785348b8abb831a2f833a535a5e4234ce3e7f3
This commit is contained in:
Jeremy Stanley 2015-07-17 17:06:42 +00:00
parent f889e14fdb
commit 710fec8521

View File

@ -98,8 +98,8 @@ class openstack_project::git (
mode => 'tcp',
collect_exported => false,
options => {
'maxconn' => '32',
'backlog' => '64',
'maxconn' => '256',
'backlog' => '256',
'balance' => 'leastconn',
'option' => [
'tcplog',