Merge "Change worker defaults to ::os_workers"

This commit is contained in:
Jenkins 2016-10-11 08:45:39 +00:00 committed by Gerrit Code Review
commit 5f29d12afe
5 changed files with 9 additions and 5 deletions

View File

@ -55,7 +55,7 @@
# #
# [*threads*] # [*threads*]
# (optional) The number of threads for the vhost. # (optional) The number of threads for the vhost.
# Defaults to $::processorcount # Defaults to $::os_workers
# #
# [*ssl_cert*] # [*ssl_cert*]
# [*ssl_key*] # [*ssl_key*]
@ -91,7 +91,7 @@ class vitrage::wsgi::apache (
$ssl_crl_path = undef, $ssl_crl_path = undef,
$ssl_crl = undef, $ssl_crl = undef,
$ssl_certs_dir = undef, $ssl_certs_dir = undef,
$threads = $::processorcount, $threads = $::os_workers,
$priority = '10', $priority = '10',
) { ) {

View File

@ -0,0 +1,5 @@
---
other:
- Parameters that control the number of spawned child processes for
distributing processing have had their default value changed from
::processorcount to ::os_workers.

View File

@ -112,7 +112,6 @@ describe 'vitrage::api' do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts({ facts.merge!(OSDefaults.get_facts({
:fqdn => 'some.host.tld', :fqdn => 'some.host.tld',
:processorcount => 2,
:concat_basedir => '/var/lib/puppet/concat' :concat_basedir => '/var/lib/puppet/concat'
})) }))
end end

View File

@ -30,7 +30,7 @@ describe 'vitrage::db::postgresql' do
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({ facts.merge(OSDefaults.get_facts({
:processorcount => 8, :os_workers => 8,
:concat_basedir => '/var/lib/puppet/concat' :concat_basedir => '/var/lib/puppet/concat'
})) }))
end end

View File

@ -79,7 +79,7 @@ describe 'vitrage::wsgi::apache' do
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts({ facts.merge!(OSDefaults.get_facts({
:processorcount => 42, :os_workers => 8,
:concat_basedir => '/var/lib/puppet/concat', :concat_basedir => '/var/lib/puppet/concat',
:fqdn => 'some.host.tld' :fqdn => 'some.host.tld'
})) }))