Skip to content

Commit

Permalink
(maint) typo percent_databse_connections
Browse files Browse the repository at this point in the history
  • Loading branch information
tkishel committed Oct 17, 2019
1 parent 75c404c commit d4cd672
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/puppet_x/puppetlabs/tune/calculate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def calculate_master_settings(node)
# https://github.com/puppetlabs/puppet-enterprise-modules/blob/irving/modules/puppet_enterprise/manifests/profile/database.pp
default_database_max_connections = 400

percent_databse_connections = 1.10
percent_database_connections = 1.10

settings = initialize_settings(node)

Expand Down Expand Up @@ -223,7 +223,7 @@ def calculate_master_settings(node)

if node['classes']['database'] && node['infrastructure']['compiler_connections']
if node['infrastructure']['compiler_connections'] > default_database_max_connections
settings['params']['puppet_enterprise::profile::database::max_connections'] = (node['infrastructure']['compiler_connections'] * percent_databse_connections).to_i
settings['params']['puppet_enterprise::profile::database::max_connections'] = (node['infrastructure']['compiler_connections'] * percent_database_connections).to_i
end
end

Expand Down Expand Up @@ -302,7 +302,7 @@ def calculate_database_settings(node)
# https://github.com/puppetlabs/puppet-enterprise-modules/blob/irving/modules/puppet_enterprise/manifests/profile/database.pp
default_database_max_connections = 400

percent_databse_connections = 1.10
percent_database_connections = 1.10

settings = initialize_settings(node)

Expand All @@ -314,7 +314,7 @@ def calculate_database_settings(node)

if node['infrastructure']['compiler_connections']
if node['infrastructure']['compiler_connections'] > default_database_max_connections
settings['params']['puppet_enterprise::profile::database::max_connections'] = (node['infrastructure']['compiler_connections'] * percent_databse_connections).to_i
settings['params']['puppet_enterprise::profile::database::max_connections'] = (node['infrastructure']['compiler_connections'] * percent_database_connections).to_i
end
end

Expand Down

0 comments on commit d4cd672

Please sign in to comment.