summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2015-09-01 17:30:41 -0400
committerDan Prince <dprince@redhat.com>2015-09-03 17:57:33 +0000
commitad974333e0df16cca7aa2f144c84b11dca1d70fc (patch)
treea4c26dba45af51e2820a928d58fa3cd9c7f8542d
parentc529fce3ef2f246909cb821bc2319cc5413960d3 (diff)
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
-rw-r--r--manifests/loadbalancer.pp3
1 files changed, 3 insertions, 0 deletions
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':