summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/mysql.yaml
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-01-19 10:02:50 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2017-01-19 11:43:46 -0600
commit0cd6c7dac297478d5dd66313aef09e5e5324d2ad (patch)
tree9e5ff2f4d4e03f1196c8ffc7c6785045bcc5f86c /ci/config_tpl/juju2/bundle_tpl/mysql.yaml
parentbbd5aa8591fb02f6c73217df81108d43cfc747b4 (diff)
modfiied to support the new spaces in juju.
Change-Id: I4938bb53b0172ebde9a110d7ac6a0725064aa5ca Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
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 %}