Merge "Change worker defaults to ::os_workers"

This commit is contained in:
Jenkins
2016-10-20 22:11:21 +00:00
committed by Gerrit Code Review
7 changed files with 12 additions and 5 deletions

View File

@@ -25,7 +25,7 @@
#
# [*workers*]
# (optional) Number of threads to process requests.
# Defaults to the number of processors.
# Defaults to $::os_workers.
#
# [*allow_account_management*]
# (optional) Rather or not requests through this proxy can create and
@@ -133,7 +133,7 @@ class swift::proxy(
$proxy_local_net_ip,
$port = '8080',
$pipeline = ['healthcheck', 'cache', 'tempauth', 'proxy-server'],
$workers = $::processorcount,
$workers = $::os_workers,
$allow_account_management = true,
$account_autocreate = true,
$log_headers = 'False',

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

@@ -6,7 +6,7 @@ describe 'swift::proxy::cache' do
{
:operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:processorcount => 1
:os_workers => 1,
}
end

View File

@@ -13,7 +13,7 @@ describe 'swift::proxy' do
OSDefaults.get_facts({
:operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:processorcount => 1,
:os_workers => 1,
})
end

View File

@@ -5,7 +5,7 @@ describe 'swift::ringbuilder' do
OSDefaults.get_facts({
:operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:processorcount => 1,
:os_workers => 1,
})
end
describe 'when swift class is not included' do

View File

@@ -4,6 +4,7 @@ describe 'swift::storage::node' do
OSDefaults.get_facts({
:operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:os_workers => 1,
})
end

View File

@@ -5,6 +5,7 @@ describe 'swift::storage::server' do
OSDefaults.get_facts({
:operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:os_workers => 1,
})
end