Merge "Change worker defaults to ::os_workers"
This commit is contained in:
@@ -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',
|
||||
|
@@ -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.
|
@@ -6,7 +6,7 @@ describe 'swift::proxy::cache' do
|
||||
{
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:osfamily => 'Debian',
|
||||
:processorcount => 1
|
||||
:os_workers => 1,
|
||||
}
|
||||
end
|
||||
|
||||
|
@@ -13,7 +13,7 @@ describe 'swift::proxy' do
|
||||
OSDefaults.get_facts({
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:osfamily => 'Debian',
|
||||
:processorcount => 1,
|
||||
:os_workers => 1,
|
||||
})
|
||||
end
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -4,6 +4,7 @@ describe 'swift::storage::node' do
|
||||
OSDefaults.get_facts({
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:osfamily => 'Debian',
|
||||
:os_workers => 1,
|
||||
})
|
||||
end
|
||||
|
||||
|
@@ -5,6 +5,7 @@ describe 'swift::storage::server' do
|
||||
OSDefaults.get_facts({
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:osfamily => 'Debian',
|
||||
:os_workers => 1,
|
||||
})
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user