Merge "Change worker defaults to ::os_workers"
This commit is contained in:
commit
94529b345f
@ -404,13 +404,13 @@
|
|||||||
# (optional) The number of worker processes to serve the admin eventlet application.
|
# (optional) The number of worker processes to serve the admin eventlet application.
|
||||||
# This option is deprecated along with eventlet and will be removed in M.
|
# This option is deprecated along with eventlet and will be removed in M.
|
||||||
# This setting has no affect when using WSGI.
|
# This setting has no affect when using WSGI.
|
||||||
# Defaults to max($::processorcount, 2)
|
# Defaults to $::os_workers
|
||||||
#
|
#
|
||||||
# [*public_workers*]
|
# [*public_workers*]
|
||||||
# (optional) The number of worker processes to serve the public eventlet application.
|
# (optional) The number of worker processes to serve the public eventlet application.
|
||||||
# This option is deprecated along with eventlet and will be removed in M.
|
# This option is deprecated along with eventlet and will be removed in M.
|
||||||
# This setting has no affect when using WSGI.
|
# This setting has no affect when using WSGI.
|
||||||
# Defaults to max($::processorcount, 2)
|
# Defaults to $::os_workers
|
||||||
#
|
#
|
||||||
# [*sync_db*]
|
# [*sync_db*]
|
||||||
# (Optional) Run db sync on the node.
|
# (Optional) Run db sync on the node.
|
||||||
@ -749,8 +749,8 @@ class keystone(
|
|||||||
$enable_proxy_headers_parsing = $::os_service_default,
|
$enable_proxy_headers_parsing = $::os_service_default,
|
||||||
$purge_config = false,
|
$purge_config = false,
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
$admin_workers = max($::processorcount, 2),
|
$admin_workers = $::os_workers,
|
||||||
$public_workers = max($::processorcount, 2),
|
$public_workers = $::os_workers,
|
||||||
$service_provider = undef,
|
$service_provider = undef,
|
||||||
$verbose = undef,
|
$verbose = undef,
|
||||||
$enable_pki_setup = undef,
|
$enable_pki_setup = undef,
|
||||||
|
@ -95,7 +95,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
|
||||||
#
|
#
|
||||||
# [*wsgi_application_group*]
|
# [*wsgi_application_group*]
|
||||||
# (optional) The application group of the WSGI script.
|
# (optional) The application group of the WSGI script.
|
||||||
@ -188,7 +188,7 @@ class keystone::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',
|
||||||
$wsgi_application_group = '%{GLOBAL}',
|
$wsgi_application_group = '%{GLOBAL}',
|
||||||
$wsgi_pass_authorization = 'On',
|
$wsgi_pass_authorization = 'On',
|
||||||
|
@ -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.
|
@ -30,7 +30,7 @@ describe 'keystone::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
|
||||||
|
@ -11,7 +11,7 @@ describe 'keystone::roles::admin' do
|
|||||||
:osfamily => 'Debian',
|
:osfamily => 'Debian',
|
||||||
:operatingsystem => 'Debian',
|
:operatingsystem => 'Debian',
|
||||||
:operatingsystemrelease => '7.0',
|
:operatingsystemrelease => '7.0',
|
||||||
:processorcount => '1'
|
:os_workers => 1,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ describe 'keystone' do
|
|||||||
|
|
||||||
let :global_facts do
|
let :global_facts do
|
||||||
{
|
{
|
||||||
:processorcount => 42,
|
|
||||||
:concat_basedir => '/var/lib/puppet/concat',
|
:concat_basedir => '/var/lib/puppet/concat',
|
||||||
:fqdn => 'some.host.tld'
|
:fqdn => 'some.host.tld'
|
||||||
}
|
}
|
||||||
@ -15,7 +14,6 @@ describe 'keystone' do
|
|||||||
:osfamily => 'Debian',
|
:osfamily => 'Debian',
|
||||||
:operatingsystem => 'Debian',
|
:operatingsystem => 'Debian',
|
||||||
:operatingsystemrelease => '7.0',
|
:operatingsystemrelease => '7.0',
|
||||||
:processorcount => '1'
|
|
||||||
}))
|
}))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ describe 'keystone::wsgi::apache' do
|
|||||||
|
|
||||||
let :global_facts do
|
let :global_facts do
|
||||||
{
|
{
|
||||||
: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'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user