Expose executor_thread_pool_size
Adding configuration of the size of executor thread pool Depends-on: https://review.openstack.org/#/c/630712/ Change-Id: Id4a61c39ef6392a3d656952467c756be9e68de91
This commit is contained in:
@@ -44,6 +44,10 @@
|
|||||||
# class is explicitly requested.
|
# class is explicitly requested.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $::os_service_default
|
||||||
#
|
#
|
||||||
|
# [*executor_thread_pool_size*]
|
||||||
|
# (optional) Size of executor thread pool when executor is threading or eventlet.
|
||||||
|
# Defaults to $::os_service_default.
|
||||||
|
#
|
||||||
# [*rpc_response_timeout*]
|
# [*rpc_response_timeout*]
|
||||||
# (optional) Seconds to wait for a response from a call. (integer value)
|
# (optional) Seconds to wait for a response from a call. (integer value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $::os_service_default.
|
||||||
@@ -256,6 +260,7 @@ class ironic (
|
|||||||
$auth_strategy = 'keystone',
|
$auth_strategy = 'keystone',
|
||||||
$default_resource_class = $::os_service_default,
|
$default_resource_class = $::os_service_default,
|
||||||
$control_exchange = $::os_service_default,
|
$control_exchange = $::os_service_default,
|
||||||
|
$executor_thread_pool_size = $::os_service_default,
|
||||||
$rpc_response_timeout = $::os_service_default,
|
$rpc_response_timeout = $::os_service_default,
|
||||||
$default_transport_url = $::os_service_default,
|
$default_transport_url = $::os_service_default,
|
||||||
$rabbit_use_ssl = $::os_service_default,
|
$rabbit_use_ssl = $::os_service_default,
|
||||||
@@ -341,9 +346,10 @@ class ironic (
|
|||||||
}
|
}
|
||||||
|
|
||||||
oslo::messaging::default {'ironic_config':
|
oslo::messaging::default {'ironic_config':
|
||||||
transport_url => $default_transport_url,
|
executor_thread_pool_size => $executor_thread_pool_size,
|
||||||
rpc_response_timeout => $rpc_response_timeout,
|
transport_url => $default_transport_url,
|
||||||
control_exchange => $control_exchange,
|
rpc_response_timeout => $rpc_response_timeout,
|
||||||
|
control_exchange => $control_exchange,
|
||||||
}
|
}
|
||||||
|
|
||||||
oslo::messaging::rabbit {'ironic_config':
|
oslo::messaging::rabbit {'ironic_config':
|
||||||
|
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Add possibility to configure the size of executor thread pool.
|
@@ -103,6 +103,7 @@ describe 'ironic' do
|
|||||||
it 'configures ironic.conf' do
|
it 'configures ironic.conf' do
|
||||||
is_expected.to contain_ironic_config('DEFAULT/auth_strategy').with_value('keystone')
|
is_expected.to contain_ironic_config('DEFAULT/auth_strategy').with_value('keystone')
|
||||||
is_expected.to contain_ironic_config('DEFAULT/my_ip').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_ironic_config('DEFAULT/my_ip').with_value('<SERVICE DEFAULT>')
|
||||||
|
is_expected.to contain_ironic_config('DEFAULT/executor_thread_pool_size').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_ironic_config('DEFAULT/rpc_response_timeout').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_ironic_config('DEFAULT/rpc_response_timeout').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_ironic_config('DEFAULT/control_exchange').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_ironic_config('DEFAULT/control_exchange').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_ironic_config('DEFAULT/transport_url').with_value('<SERVICE DEFAULT>').with_secret(true)
|
is_expected.to contain_ironic_config('DEFAULT/transport_url').with_value('<SERVICE DEFAULT>').with_secret(true)
|
||||||
|
Reference in New Issue
Block a user