qtuning the HA mode of cluster to respond for apis.
[joid.git] / ci / config_tpl / bundle_tpl / mysql.yaml
1     mysql:
2       charm: "local:{{ ubuntu.release }}/percona-cluster"
3       num_units: {{ unit_qty() }}
4       options:
5 {% if os.ha.mode == 'ha' %}
6         innodb-buffer-pool-size: 10G
7 {% else %}
8         innodb-buffer-pool-size: 1G
9 {% endif %}
10         max-connections: 20000
11         root-password: {{ get_password('mysql_root') }}
12         sst-password: {{ get_password('mysql_sst') }}
13 {% if os.ha.mode == 'ha' %}
14         vip: {{ opnfv.vip.mysql }}
15 {% endif %}
16         min-cluster-size: {{ unit_qty() }}
17       to:
18 {% for unit_id in to_select() %}
19         - "lxc:nodes={{ unit_id }}"
20 {% endfor %}