qtuning the HA mode of cluster to respond for apis. 81/18181/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Mon, 8 Aug 2016 23:28:30 +0000 (18:28 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Mon, 8 Aug 2016 23:29:21 +0000 (18:29 -0500)
Change-Id: I070b62f063ec6ecb1ea7501139dfcf1c34593a42
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/config_tpl/bundle_tpl/ceilometer.yaml
ci/config_tpl/bundle_tpl/cinder.yaml
ci/config_tpl/bundle_tpl/glance.yaml
ci/config_tpl/bundle_tpl/keystone.yaml
ci/config_tpl/bundle_tpl/mysql.yaml
ci/config_tpl/bundle_tpl/neutron-api.yaml
ci/config_tpl/bundle_tpl/nova-cloud-controller.yaml
ci/config_tpl/bundle_tpl/openstack-dashboard.yaml

index 031551a..66c24c8 100644 (file)
@@ -7,6 +7,10 @@
       num_units: {{ unit_qty() }}
       options:
 {% if os.ha.mode == 'ha' %}
+        haproxy-server-timeout: 10000
+        haproxy-client-timeout: 10000
+        haproxy-queue-timeout: 10000
+        haproxy-connect-timeout: 10000
         vip: {{ opnfv.vip.ceilometer }}
 {% endif %}
 {% if os.beta.public_api %}
index 4c1b862..175c67e 100644 (file)
@@ -2,14 +2,18 @@
       charm: "local:{{ ubuntu.release }}/cinder"
       num_units: {{ unit_qty() }}
       options:
+{% if os.ha.mode == 'ha' %}
+        haproxy-server-timeout: 10000
+        haproxy-client-timeout: 10000
+        haproxy-queue-timeout: 10000
+        haproxy-connect-timeout: 10000
+        vip: {{ opnfv.vip.cinder }}
+{% endif %}
 {% if os.beta.public_api %}
         os-public-hostname: api.{{ opnfv.domain }}
 {% endif %}
         block-device: None
         glance-api-version: 2
-{% if os.ha.mode == 'ha' %}
-        vip: {{ opnfv.vip.cinder }}
-{% endif %}
       to:
 {% for unit_id in to_select() %}
         - "lxc:nodes={{ unit_id }}"
index 8499932..31f9c3b 100644 (file)
@@ -3,6 +3,10 @@
       num_units: {{ unit_qty() }}
       options:
 {% if os.ha.mode == 'ha' %}
+        haproxy-server-timeout: 10000
+        haproxy-client-timeout: 10000
+        haproxy-queue-timeout: 10000
+        haproxy-connect-timeout: 10000
         vip: {{ opnfv.vip.glance }}
 {% endif %}
 {% if os.beta.public_api %}
index 24f5b10..05df44d 100644 (file)
@@ -5,6 +5,10 @@
         admin-password: {{ opnfv.admin_password | default(os.admin.password) }}
         admin-token: {{ os.admin.name }}
 {% if os.ha.mode == 'ha' %}
+        haproxy-server-timeout: 10000
+        haproxy-client-timeout: 10000
+        haproxy-queue-timeout: 10000
+        haproxy-connect-timeout: 10000
         vip: {{ opnfv.vip.keystone }}
 {% endif %}
 {% if os.beta.public_api %}
index 110140e..afa4519 100644 (file)
@@ -2,8 +2,11 @@
       charm: "local:{{ ubuntu.release }}/percona-cluster"
       num_units: {{ unit_qty() }}
       options:
-        innodb-buffer-pool-size: 100M
-        #lp1366997-workaround: true
+{% if os.ha.mode == 'ha' %}
+        innodb-buffer-pool-size: 10G
+{% else %}
+        innodb-buffer-pool-size: 1G
+{% endif %}
         max-connections: 20000
         root-password: {{ get_password('mysql_root') }}
         sst-password: {{ get_password('mysql_sst') }}
index 9ee914a..321c2e8 100644 (file)
@@ -3,6 +3,13 @@
       num_units: {{ unit_qty() }}
       options:
         neutron-security-groups: true
+{% if os.ha.mode == 'ha' %}
+        vip: {{ opnfv.vip.neutron }}
+        haproxy-server-timeout: 10000
+        haproxy-client-timeout: 10000
+        haproxy-queue-timeout: 10000
+        haproxy-connect-timeout: 10000
+{% endif %}
 {% if os.network.controller == 'nosdn' %}
         flat-network-providers: "*"
 {% if os.network.dvr %}
@@ -14,9 +21,6 @@
         flat-network-providers: "*"
         manage-neutron-plugin-legacy-mode: False
 {% endif %}
-{% if os.ha.mode == 'ha' %}
-        vip: {{ opnfv.vip.neutron }}
-{% endif %}
 {% if os.beta.public_api %}
         os-public-hostname: api.{{ opnfv.domain }}
 {% endif %}
index bdf1090..497ef29 100644 (file)
@@ -5,13 +5,17 @@
         #console-access-protocol: novnc
         neutron-external-network: ext-net
         service-guard: true
+{% if os.ha.mode == 'ha' %}
+        haproxy-server-timeout: 10000
+        haproxy-client-timeout: 10000
+        haproxy-queue-timeout: 10000
+        haproxy-connect-timeout: 10000
+        vip: {{ opnfv.vip.nova }}
+{% endif %}
 {% if opnfv.domain is defined %}
         console-proxy-ip: {{ opnfv.domain }}
 {% endif %}
         network-manager: Neutron
-{% if os.ha.mode == 'ha' %}
-        vip: {{ opnfv.vip.nova }}
-{% endif %}
 {% if os.beta.public_api %}
         os-public-hostname: api.{{ opnfv.domain }}
 {% endif %}
index 83408dc..8d60475 100644 (file)
@@ -5,6 +5,10 @@
         secret: admin
         webroot: /
 {% if os.ha.mode == 'ha' %}
+        haproxy-server-timeout: 10000
+        haproxy-client-timeout: 10000
+        haproxy-queue-timeout: 10000
+        haproxy-connect-timeout: 10000
         vip: {{ opnfv.vip.dashboard }}
 {% endif %}
 {% if os.beta.public_api %}