Merge pull request #566 from enovance/issue/561/emilien

loadbalancer: use TCP checks for Spice
This commit is contained in:
Yanis Guenane
2014-08-18 11:05:24 -04:00
2 changed files with 6 additions and 4 deletions

View File

@@ -373,11 +373,13 @@ class cloud::loadbalancer(
port => $spice_port,
options => {
'balance' => 'leastconn',
'mode' => 'tcp',
'option' => ['tcpka', 'forwardfor', 'tcplog',],
'http-check' => '',
'timeout server' => '120m',
'timeout client' => '120m',
},
bind_options => $spice_bind_options,
httpchk => 'httpchk GET /';
}
cloud::loadbalancer::binding { 'trove_api_cluster':
ip => $trove_api,

View File

@@ -209,10 +209,10 @@ describe 'cloud::loadbalancer' do
:ipaddress => [params[:vip_public_ip]],
:ports => '6082',
:options => {
'mode' => 'http',
'option' => ['tcpka', 'forwardfor', 'tcplog','httpchk GET /'],
'http-check' => 'expect ! rstatus ^5',
'mode' => 'tcp',
'option' => ['tcpka', 'forwardfor', 'tcplog'],
'balance' => 'leastconn',
'http-check' => '',
'timeout server' => '120m',
'timeout client' => '120m'
}