increase mysql max_connections

* increase mysql max_connections from 151 to 307 to avoid mysql errors
  in integration tests

Change-Id: I831998cace276fa7b5889e15f1ad938903d0d410
This commit is contained in:
Jan Klare 2016-10-11 12:56:16 +02:00
parent 2c9f3dfd3c
commit 6cdfe56ea2
3 changed files with 4 additions and 4 deletions

View File

@ -54,4 +54,4 @@ default['openstack']['mysql']['character-set-server'] = 'latin1'
# Memory allocated for caching query results
default['openstack']['mysql']['query_cache_size'] = '0'
# Maximum number of connections
default['openstack']['mysql']['max_connections'] = '151'
default['openstack']['mysql']['max_connections'] = '307'

View File

@ -30,7 +30,7 @@ describe 'openstack-ops-database::mariadb-server' do
/^innodb_log_buffer_size = 8388608$/,
/^character-set-server = latin1$/,
/^query_cache_size = 0$/,
/^max_connections = 151$/].each do |line|
/^max_connections = 307$/].each do |line|
expect(chef_run).to render_config_file(file.name)\
.with_section_content('mysqld', line)
end

View File

@ -13,7 +13,7 @@ describe 'openstack-ops-database::mariadb-server' do
it 'overrides mariadb default attributes' do
expect(chef_run.node['mariadb']['mysqld']['bind_address']).to eq '127.0.0.1'
expect(chef_run.node['mariadb']['mysqld']['default_storage_engine']).to eq 'InnoDB'
expect(chef_run.node['mariadb']['mysqld']['max_connections']).to eq '151'
expect(chef_run.node['mariadb']['mysqld']['max_connections']).to eq '307'
expect(chef_run.node['mariadb']['forbid_remote_root']).to be true
end
@ -42,7 +42,7 @@ describe 'openstack-ops-database::mariadb-server' do
/^innodb_log_buffer_size = 8388608$/,
/^character-set-server = latin1$/,
/^query_cache_size = 0$/,
/^max_connections = 151$/].each do |line|
/^max_connections = 307$/].each do |line|
expect(chef_run).to render_config_file(file.name)\
.with_section_content('mysqld', line)
end