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:
parent
2c9f3dfd3c
commit
6cdfe56ea2
|
@ -54,4 +54,4 @@ default['openstack']['mysql']['character-set-server'] = 'latin1'
|
||||||
# Memory allocated for caching query results
|
# Memory allocated for caching query results
|
||||||
default['openstack']['mysql']['query_cache_size'] = '0'
|
default['openstack']['mysql']['query_cache_size'] = '0'
|
||||||
# Maximum number of connections
|
# Maximum number of connections
|
||||||
default['openstack']['mysql']['max_connections'] = '151'
|
default['openstack']['mysql']['max_connections'] = '307'
|
||||||
|
|
|
@ -30,7 +30,7 @@ describe 'openstack-ops-database::mariadb-server' do
|
||||||
/^innodb_log_buffer_size = 8388608$/,
|
/^innodb_log_buffer_size = 8388608$/,
|
||||||
/^character-set-server = latin1$/,
|
/^character-set-server = latin1$/,
|
||||||
/^query_cache_size = 0$/,
|
/^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)\
|
expect(chef_run).to render_config_file(file.name)\
|
||||||
.with_section_content('mysqld', line)
|
.with_section_content('mysqld', line)
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,7 +13,7 @@ describe 'openstack-ops-database::mariadb-server' do
|
||||||
it 'overrides mariadb default attributes' 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']['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']['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
|
expect(chef_run.node['mariadb']['forbid_remote_root']).to be true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ describe 'openstack-ops-database::mariadb-server' do
|
||||||
/^innodb_log_buffer_size = 8388608$/,
|
/^innodb_log_buffer_size = 8388608$/,
|
||||||
/^character-set-server = latin1$/,
|
/^character-set-server = latin1$/,
|
||||||
/^query_cache_size = 0$/,
|
/^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)\
|
expect(chef_run).to render_config_file(file.name)\
|
||||||
.with_section_content('mysqld', line)
|
.with_section_content('mysqld', line)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue