From 35f8d7bd988a53a3dd3adf3664c353bb9fb5701c Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 13 Mar 2023 11:50:00 +0900 Subject: [PATCH] Expose executor_thread_pool_size This option has been supported by puppet-oslo but has not been configurable. Change-Id: Iec33f81eca912e07d5864bf6f923ac7c09dc530c --- manifests/init.pp | 12 +++++++++--- .../executor_thread_pool_size-89efded5c86adcdd.yaml | 4 ++++ spec/classes/designate_init_spec.rb | 7 ++++--- 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 releasenotes/notes/executor_thread_pool_size-89efded5c86adcdd.yaml diff --git a/manifests/init.pp b/manifests/init.pp index c82221ee..e9d73f13 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -40,6 +40,10 @@ # option. # Defaults to $facts['os_service_default'] # +# [*executor_thread_pool_size*] +# (Optional) Size of executor thread pool when executor is threading or eventlet. +# Defaults to $facts['os_service_default']. +# # [*notification_transport_url*] # (optional) Connection url for oslo messaging notification backend. An # example rabbit url would be, rabbit://user:pass@host:port/virtual_host @@ -138,6 +142,7 @@ class designate( $default_transport_url = $facts['os_service_default'], $rpc_response_timeout = $facts['os_service_default'], $control_exchange = $facts['os_service_default'], + $executor_thread_pool_size = $facts['os_service_default'], $notification_topics = $facts['os_service_default'], $purge_config = false, $amqp_durable_queues = $facts['os_service_default'], @@ -171,9 +176,10 @@ class designate( } oslo::messaging::default { 'designate_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::notifications { 'designate_config': diff --git a/releasenotes/notes/executor_thread_pool_size-89efded5c86adcdd.yaml b/releasenotes/notes/executor_thread_pool_size-89efded5c86adcdd.yaml new file mode 100644 index 00000000..38e619e5 --- /dev/null +++ b/releasenotes/notes/executor_thread_pool_size-89efded5c86adcdd.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + The new ``designate::executor_thread_pool_size`` parameter has been added. diff --git a/spec/classes/designate_init_spec.rb b/spec/classes/designate_init_spec.rb index dcea800a..f2815a85 100644 --- a/spec/classes/designate_init_spec.rb +++ b/spec/classes/designate_init_spec.rb @@ -96,9 +96,10 @@ describe 'designate' do it 'configures messaging' do is_expected.to contain_oslo__messaging__default('designate_config').with( - :transport_url => '', - :rpc_response_timeout => '', - :control_exchange => '' + :executor_thread_pool_size => '', + :transport_url => '', + :rpc_response_timeout => '', + :control_exchange => '' ) is_expected.to contain_oslo__messaging__notifications('designate_config').with( :driver => 'messaging',