summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/mysql.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ci/config_tpl/juju2/bundle_tpl/mysql.yaml')
-rw-r--r--ci/config_tpl/juju2/bundle_tpl/mysql.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/ci/config_tpl/juju2/bundle_tpl/mysql.yaml b/ci/config_tpl/juju2/bundle_tpl/mysql.yaml
index b2540155..e42d09ad 100644
--- a/ci/config_tpl/juju2/bundle_tpl/mysql.yaml
+++ b/ci/config_tpl/juju2/bundle_tpl/mysql.yaml
@@ -1,13 +1,17 @@
mysql:
charm: "./{{ ubuntu.release }}/percona-cluster"
num_units: {{ unit_qty() }}
+{% if os.service.bindings %}
+ bindings:
+ shared-db: internal-api
+{% endif %}
options:
{% if os.ha.mode == 'ha' %}
innodb-buffer-pool-size: 10G
{% else %}
innodb-buffer-pool-size: 1G
{% endif %}
- max-connections: 20000
+ max-connections: 2000
root-password: {{ get_password('mysql_root') }}
sst-password: {{ get_password('mysql_sst') }}
{% if os.network.ipv6 %}