From 4b0815f4975bcdd63562784b1dd1042692c3967c Mon Sep 17 00:00:00 2001 From: James Slagle Date: Wed, 26 Aug 2015 16:50:09 -0400 Subject: [PATCH] Raise the mysql max connection limit We need to raise this higher on the undercloud, as we were hitting the previous limit on an undercloud with 24 cores. As part of this change, also disable the open file limit to bring the configuration in line with the Overcloud. Change-Id: Ia77b6ca11d16f24dfd74332cbe01e18286ccb6ea --- elements/puppet-stack-config/puppet-stack-config.pp | 11 ++++++----- .../puppet-stack-config.yaml.template | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/elements/puppet-stack-config/puppet-stack-config.pp b/elements/puppet-stack-config/puppet-stack-config.pp index b05895724..7bb9f6601 100644 --- a/elements/puppet-stack-config/puppet-stack-config.pp +++ b/elements/puppet-stack-config/puppet-stack-config.pp @@ -19,11 +19,12 @@ if count(hiera('ntp::servers')) > 0 { # TODO Galara class { 'mysql::server': - override_options => { - 'mysqld' => { - 'bind-address' => hiera('controller_host'), - 'max_connections' => 500, - } + override_options => { + 'mysqld' => { + 'bind-address' => hiera('controller_host'), + 'max_connections' => hiera('mysql_max_connections'), + 'open_files_limit' => '-1', + } } } diff --git a/elements/puppet-stack-config/puppet-stack-config.yaml.template b/elements/puppet-stack-config/puppet-stack-config.yaml.template index df8ac645c..ce097853f 100644 --- a/elements/puppet-stack-config/puppet-stack-config.yaml.template +++ b/elements/puppet-stack-config/puppet-stack-config.yaml.template @@ -117,6 +117,7 @@ mysql_innodb_buffer_pool_size: 0 mysql_root_password: '' mysql_cluster_name: unset mysql::server::manage_config_file: true +mysql_max_connections: 4096 # Neutron neutron::bind_host: {{LOCAL_IP}}