From ad974333e0df16cca7aa2f144c84b11dca1d70fc Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Tue, 1 Sep 2015 17:30:41 -0400 Subject: 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 --- manifests/loadbalancer.pp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'manifests/loadbalancer.pp') 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': -- cgit 1.2.3-korg