Browse Source

increase mysql max_connections

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

Change-Id: I831998cace276fa7b5889e15f1ad938903d0d410
Jan Klare 2 years ago
parent
commit
6cdfe56ea2
3 changed files with 4 additions and 4 deletions
  1. 1
    1
      attributes/mysql.rb
  2. 1
    1
      spec/mariadb-server-redhat_spec.rb
  3. 2
    2
      spec/mariadb-server_spec.rb

+ 1
- 1
attributes/mysql.rb View File

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

+ 1
- 1
spec/mariadb-server-redhat_spec.rb View File

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

+ 2
- 2
spec/mariadb-server_spec.rb View File

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

Loading…
Cancel
Save