Switch git haproxy from balance source to leastconn

Switch from balancing across backends based on source ip address
hash to least number of connections.

Because we have git repos of many sizes, some of which take seconds
to clone, others minutes, we can end up with a load imbalance across
our git backends.  Further, organizations that use NAT to put a
large number of systems behind a single IP address further exacerbate
the imbalance.  Switch to least-connections for load balancing to
better utilize our backends, and hopefully smooth peak loads across
them.

Change-Id: I7ea5e2ff0c98c46237a975989bd014149de01b04
This commit is contained in:
James E. Blair 2015-06-20 15:23:34 -07:00
parent 4f9daf795f
commit 6af76957e5

View File

@ -74,7 +74,7 @@ class openstack_project::git (
mode => 'tcp',
collect_exported => false,
options => {
'balance' => 'source',
'balance' => 'leastconn',
'option' => [
'tcplog',
],
@ -86,7 +86,7 @@ class openstack_project::git (
mode => 'tcp',
collect_exported => false,
options => {
'balance' => 'source',
'balance' => 'leastconn',
'option' => [
'tcplog',
],
@ -100,7 +100,7 @@ class openstack_project::git (
options => {
'maxconn' => '32',
'backlog' => '64',
'balance' => 'source',
'balance' => 'leastconn',
'option' => [
'tcplog',
],