From 0cd6c7dac297478d5dd66313aef09e5e5324d2ad Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Thu, 19 Jan 2017 10:02:50 -0600 Subject: modfiied to support the new spaces in juju. Change-Id: I4938bb53b0172ebde9a110d7ac6a0725064aa5ca Signed-off-by: Narinder Gupta --- ci/config_tpl/juju2/bundle_tpl/mysql.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ci/config_tpl/juju2/bundle_tpl/mysql.yaml') 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 %} -- cgit 1.2.3-korg