2 charm: "local:{{ ubuntu.release }}/percona-cluster"
3 num_units: {{ unit_qty() }}
5 {% if os.ha.mode == 'ha' %}
6 innodb-buffer-pool-size: 10G
8 innodb-buffer-pool-size: 1G
10 max-connections: 20000
11 root-password: {{ get_password('mysql_root') }}
12 sst-password: {{ get_password('mysql_sst') }}
13 {% if os.network.ipv6 %}
14 prefer-ipv6: {{ os.network.ipv6 }}
16 {% if os.ha.mode == 'ha' %}
17 vip: {{ opnfv.vip.mysql }}
19 min-cluster-size: {{ unit_qty() }}
21 {% for unit_id in to_select() %}
22 - "lxc:nodes={{ unit_id }}"