add server_option in haproxy configuration 07/19407/1
authorDavid Blaisonneau <david.blaisonneau@orange.com>
Tue, 23 Aug 2016 09:39:20 +0000 (11:39 +0200)
committerNarinder Gupta <narinder.gupta@canonical.com>
Tue, 23 Aug 2016 22:48:07 +0000 (22:48 +0000)
Change-Id: Id7061bcb8eb93cdd6f53fd77db04c82d7e5434a0
Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com>
(cherry picked from commit 60df185703ac9af51033e538a85760c670437e5a)

ci/config_tpl/public-api-proxy.yaml

index 2e06fff..e3407e7 100644 (file)
@@ -8,7 +8,7 @@
             service_host: {{ public_api_ip }}
             service_port: {{ service.port }}
             service_options: [mode http, balance leastconn],
-            servers: [[{{ service.name }},{{ service.ip }},{{ service.port }}]]
+            servers: [[{{ service.name }}, {{ service.ip }}, {{ service.port }}, 'maxconn 100 cookie S0 check']]
 {% endfor %}
       to:
         - "nodes=0"