modified to setup contraints on single bindin space charms.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / mysql.yaml
index b254015..eedc9f0 100644 (file)
@@ -1,15 +1,22 @@
     mysql:
       charm: "./{{ ubuntu.release }}/percona-cluster"
       num_units: {{ unit_qty() }}
+{% if os.service.bindings %}
+      bindings:
+        "": *oam-space
+        cluster: *internal-space
+        shared-db: *internal-space
+{% endif %}
       options:
-{% if os.ha.mode == 'ha' %}
-        innodb-buffer-pool-size: 10G
-{% else %}
         innodb-buffer-pool-size: 1G
-{% endif %}
-        max-connections: 20000
+        max-connections: 4000
+        #performance-schema: true
+        #source: "deb http://repo.percona.com/apt xenial main"
+        #key: "8507EFA5"
         root-password: {{ get_password('mysql_root') }}
         sst-password: {{ get_password('mysql_sst') }}
+        sst-method: rsync
+        wait-timeout: 180
 {% if os.network.ipv6 %}
         prefer-ipv6: {{ os.network.ipv6 }}
 {% endif %}