loadbalancer: use 'source' for novnc balance mode
authorEmilien Macchi <emilien@redhat.com>
Tue, 1 Sep 2015 21:30:41 +0000 (17:30 -0400)
committerDan Prince <dprince@redhat.com>
Thu, 3 Sep 2015 17:57:33 +0000 (17:57 +0000)
commitad974333e0df16cca7aa2f144c84b11dca1d70fc
treea4c26dba45af51e2820a928d58fa3cd9c7f8542d
parentc529fce3ef2f246909cb821bc2319cc5413960d3
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