From f7c60ee6535461186dffde847afa340e9aa27c8e Mon Sep 17 00:00:00 2001 From: marios Date: Thu, 14 May 2015 16:38:06 +0300 Subject: Makes sure galera can handle the connections Increases the max_connections since this is currently set to 151. This causes problems in a baremetal environment with multiple CPUs. A related change is @ https://review.openstack.org/#/c/183046/2 for haproxy. There is also a bug report at https://bugzilla.redhat.com/show_bug.cgi?id=1218322 Change-Id: I9b4690191616cc04c4edc7b2402bd9ec54a7d17d --- puppet/manifests/overcloud_controller.pp | 6 ++++-- puppet/manifests/overcloud_controller_pacemaker.pp | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'puppet') diff --git a/puppet/manifests/overcloud_controller.pp b/puppet/manifests/overcloud_controller.pp index 1b088a86..2b4e2052 100644 --- a/puppet/manifests/overcloud_controller.pp +++ b/puppet/manifests/overcloud_controller.pp @@ -90,8 +90,10 @@ if hiera('step') >= 2 { config_file => $mysql_config_file, override_options => { 'mysqld' => { - 'bind-address' => hiera('controller_host') - } + 'bind-address' => hiera('controller_host'), + 'max_connections' => '1024', + 'open_files_limit' => '-1', + }, } } diff --git a/puppet/manifests/overcloud_controller_pacemaker.pp b/puppet/manifests/overcloud_controller_pacemaker.pp index d9618e82..3ab025de 100644 --- a/puppet/manifests/overcloud_controller_pacemaker.pp +++ b/puppet/manifests/overcloud_controller_pacemaker.pp @@ -156,6 +156,8 @@ if hiera('step') >= 2 { 'query_cache_size' => '0', 'query_cache_type' => '0', 'bind-address' => hiera('controller_host'), + 'max_connections' => '1024', + 'open_files_limit' => '-1', 'wsrep_provider' => '/usr/lib64/galera/libgalera_smm.so', 'wsrep_cluster_name' => 'galera_cluster', 'wsrep_slave_threads' => '1', -- cgit 1.2.3-korg