From: Emilien Macchi Date: Tue, 1 Sep 2015 21:30:41 +0000 (-0400) Subject: loadbalancer: use 'source' for novnc balance mode X-Git-Tag: opnfv-6.0.0~841 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=ad974333e0df16cca7aa2f144c84b11dca1d70fc;p=apex-puppet-tripleo.git loadbalancer: use 'source' for novnc balance mode When establishing a connection from the client (Web Browser) to the novncproxy (loadbalanced by HAproxy), we need to make sure the client will stick on the same server the time he's connected, because HAproxy load-balance to another novncproxy node, the client will loose the connection and timeout like 'Connection Reset By Peer error'. This patch aims to configure novnc HAproxy configuration to balance using 'source' mode, so it will make sure the server remains the same while the connection is established. Change-Id: Ibbb7162b763f1fd2854a10a92a681910e0683c0a Closes-BZ: 1257324 --- diff --git a/manifests/loadbalancer.pp b/manifests/loadbalancer.pp index 1a3c5f6..e30d76e 100644 --- a/manifests/loadbalancer.pp +++ b/manifests/loadbalancer.pp @@ -807,6 +807,9 @@ class tripleo::loadbalancer ( if $nova_novncproxy { haproxy::listen { 'nova_novncproxy': bind => $nova_novnc_bind_opts, + options => { + 'balance' => 'source', + }, collect_exported => false, } haproxy::balancermember { 'nova_novncproxy':