From 7467ab834fa541ae3a27979ab82c601188c95432 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Mon, 14 Jan 2019 17:28:19 +0100 Subject: [PATCH] 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 --- manifests/init.pp | 12 +++++++++--- ...d_executor_thread_pool_size-d975cafddd385239.yaml | 3 +++ spec/classes/ironic_init_spec.rb | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/add_executor_thread_pool_size-d975cafddd385239.yaml diff --git a/manifests/init.pp b/manifests/init.pp index 6fb1f660..ac3ae667 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -44,6 +44,10 @@ # class is explicitly requested. # 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*] # (optional) Seconds to wait for a response from a call. (integer value) # Defaults to $::os_service_default. @@ -256,6 +260,7 @@ class ironic ( $auth_strategy = 'keystone', $default_resource_class = $::os_service_default, $control_exchange = $::os_service_default, + $executor_thread_pool_size = $::os_service_default, $rpc_response_timeout = $::os_service_default, $default_transport_url = $::os_service_default, $rabbit_use_ssl = $::os_service_default, @@ -341,9 +346,10 @@ class ironic ( } oslo::messaging::default {'ironic_config': - transport_url => $default_transport_url, - rpc_response_timeout => $rpc_response_timeout, - control_exchange => $control_exchange, + executor_thread_pool_size => $executor_thread_pool_size, + transport_url => $default_transport_url, + rpc_response_timeout => $rpc_response_timeout, + control_exchange => $control_exchange, } oslo::messaging::rabbit {'ironic_config': diff --git a/releasenotes/notes/add_executor_thread_pool_size-d975cafddd385239.yaml b/releasenotes/notes/add_executor_thread_pool_size-d975cafddd385239.yaml new file mode 100644 index 00000000..0349272e --- /dev/null +++ b/releasenotes/notes/add_executor_thread_pool_size-d975cafddd385239.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add possibility to configure the size of executor thread pool. diff --git a/spec/classes/ironic_init_spec.rb b/spec/classes/ironic_init_spec.rb index 1fe1b69e..8e1d7675 100644 --- a/spec/classes/ironic_init_spec.rb +++ b/spec/classes/ironic_init_spec.rb @@ -103,6 +103,7 @@ describe 'ironic' 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/my_ip').with_value('') + is_expected.to contain_ironic_config('DEFAULT/executor_thread_pool_size').with_value('') is_expected.to contain_ironic_config('DEFAULT/rpc_response_timeout').with_value('') is_expected.to contain_ironic_config('DEFAULT/control_exchange').with_value('') is_expected.to contain_ironic_config('DEFAULT/transport_url').with_value('').with_secret(true)