From 6af76957e577197acbf6bac17dbabbabfc0b93be Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Sat, 20 Jun 2015 15:23:34 -0700 Subject: [PATCH] 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 --- modules/openstack_project/manifests/git.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/openstack_project/manifests/git.pp b/modules/openstack_project/manifests/git.pp index f173d1d1a2..4e7927de25 100644 --- a/modules/openstack_project/manifests/git.pp +++ b/modules/openstack_project/manifests/git.pp @@ -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', ],