Use source balancing to transition to centos7
We currently see some odd behavior with shallow clones using the leastconn balance method. Theory is that having a mix of centos6 and centos7 git backends introduces this as a client may end up talking to different git versions on the backends. Using a specific backend never has an issue but using the haproxy load balancer does have problems occasionally. Work around this by forcing each client to use a single backend via the source haproxy balance method. Then when the entire cluster of backends is centos7 based we can switch back to leastconn balancing. Change-Id: If78ff254388870f90a8b1f4821f4eef98f616d64
This commit is contained in:
parent
c56a052567
commit
431da49406
@ -74,7 +74,7 @@ class openstack_project::git (
|
||||
mode => 'tcp',
|
||||
collect_exported => false,
|
||||
options => {
|
||||
'balance' => 'leastconn',
|
||||
'balance' => 'source',
|
||||
'option' => [
|
||||
'tcplog',
|
||||
],
|
||||
@ -86,7 +86,7 @@ class openstack_project::git (
|
||||
mode => 'tcp',
|
||||
collect_exported => false,
|
||||
options => {
|
||||
'balance' => 'leastconn',
|
||||
'balance' => 'source',
|
||||
'option' => [
|
||||
'tcplog',
|
||||
],
|
||||
@ -100,7 +100,7 @@ class openstack_project::git (
|
||||
options => {
|
||||
'maxconn' => '256',
|
||||
'backlog' => '256',
|
||||
'balance' => 'leastconn',
|
||||
'balance' => 'source',
|
||||
'option' => [
|
||||
'tcplog',
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user