Merge "added for newton support and integration."
[joid.git] / ci / config_tpl / public-api-proxy.yaml
index 726945f..02299ae 100644 (file)
@@ -1,13 +1,14 @@
-haproxy:
-  charm: "local:{{ opnfv.distro }}/haproxy"
-  num_units: 1
-  options:
-    services: |-
+    haproxy:
+      charm: "local:{{ opnfv.distro }}/haproxy"
+      num_units: 1
+      options:
+        services: |-
 {% for service in public_api_services.values() %}
-      - service_name: {{ service.name }}
-        service_host: {{ public_api_ip }}
-        service_port: {{ service.port }}
-        servers: [[{{ service.name }},{{ service.ip }},{{ service.port }}]]
+          - service_name: {{ service.name }}
+            service_host: {{ public_api_ip }}
+            service_port: {{ service.port }}
+            service_options: [mode http, balance leastconn]
+            servers: [[{{ service.name }}, {{ service.ip }}, {{ service.port }}, 'maxconn 100 cookie S0 check']]
 {% endfor %}
-  to:
-    - "nodes=0"
+      to:
+        - "nodes=0"