From: Narinder Gupta Date: Tue, 14 Feb 2017 11:38:13 +0000 (-0600) Subject: Trying to setup the right values of mysql for cluster. X-Git-Tag: danube.1.0~40 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=11d88375218cf94d24024b4178d2d1cd78e49999;p=joid.git Trying to setup the right values of mysql for cluster. Change-Id: I3d1d8e7284e33b9eb056d17b41f792e757699747 Signed-off-by: Narinder Gupta --- diff --git a/ci/03-maasdeploy.sh b/ci/03-maasdeploy.sh index c0226bcb..2e26e928 100755 --- a/ci/03-maasdeploy.sh +++ b/ci/03-maasdeploy.sh @@ -395,18 +395,22 @@ addnodes(){ fi } +#configure MAAS with the different options. configuremaas + if [ "$virtinstall" -eq 1 ]; then enablesubnetanddhcp fi +sleep 60 + #reconfigure maas with correct MAAS address. #Below code is needed as MAAS have issue in commisoning without restart. sudo ./maas-reconfigure-rack.sh $MAAS_IP sudo ./maas-reconfigure-region.sh $MAAS_IP # lets sleep for around 5 more minutes to make sure all images are in sync. -sleep 300 +sleep 240 #lets add the nodes now. Currently works only for virtual deploymnet. addnodes diff --git a/ci/config_tpl/juju2/bundle_tpl/mysql.yaml b/ci/config_tpl/juju2/bundle_tpl/mysql.yaml index e5626a75..dd455f0d 100644 --- a/ci/config_tpl/juju2/bundle_tpl/mysql.yaml +++ b/ci/config_tpl/juju2/bundle_tpl/mysql.yaml @@ -8,11 +8,12 @@ {% endif %} options: {% if os.ha.mode == 'ha' %} - innodb-buffer-pool-size: 1G + innodb-buffer-pool-size: 16M + max-connections: 200 {% else %} innodb-buffer-pool-size: 1G -{% endif %} max-connections: 4000 +{% endif %} #performance-schema: true #source: "deb http://repo.percona.com/apt xenial main" #key: "8507EFA5"