From f179fb1d09b7b2593defeb77fde232e0c9a00d0d Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 13 Sep 2024 11:38:25 +0900 Subject: [PATCH] Expose rabbit_qos_prefetch_count The option was supported by puppet-oslo but was not configurable via this module. Change-Id: I9c6cf51dd21db4107ecf846b1c73363ce3c38d08 --- manifests/init.pp | 6 ++++++ .../notes/rabbit_qos_prefetch_count-4ba50285a26647c5.yaml | 4 ++++ spec/classes/neutron_init_spec.rb | 1 + 3 files changed, 11 insertions(+) create mode 100644 releasenotes/notes/rabbit_qos_prefetch_count-4ba50285a26647c5.yaml diff --git a/manifests/init.pp b/manifests/init.pp index c371854c7..37941be0d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -133,6 +133,10 @@ # will be run through a green thread. # Defaults to $facts['os_service_default'] # +# [*rabbit_qos_prefetch_count*] +# (Optional) Specifies the number of messages to prefetch. +# Defaults to $facts['os_service_default'] +# # [*rabbit_quorum_queue*] # (Optional) Use quorum queues in RabbitMQ. # Defaults to $facts['os_service_default'] @@ -294,6 +298,7 @@ class neutron ( $rabbit_heartbeat_timeout_threshold = $facts['os_service_default'], $rabbit_heartbeat_rate = $facts['os_service_default'], $rabbit_heartbeat_in_pthread = $facts['os_service_default'], + $rabbit_qos_prefetch_count = $facts['os_service_default'], $rabbit_quorum_queue = $facts['os_service_default'], $rabbit_transient_quorum_queue = $facts['os_service_default'], $rabbit_quorum_delivery_limit = $facts['os_service_default'], @@ -397,6 +402,7 @@ class neutron ( heartbeat_timeout_threshold => $rabbit_heartbeat_timeout_threshold, heartbeat_rate => $rabbit_heartbeat_rate, heartbeat_in_pthread => $rabbit_heartbeat_in_pthread, + rabbit_qos_prefetch_count => $rabbit_qos_prefetch_count, rabbit_use_ssl => $rabbit_use_ssl, rabbit_transient_queues_ttl => $rabbit_transient_queues_ttl, kombu_reconnect_delay => $kombu_reconnect_delay, diff --git a/releasenotes/notes/rabbit_qos_prefetch_count-4ba50285a26647c5.yaml b/releasenotes/notes/rabbit_qos_prefetch_count-4ba50285a26647c5.yaml new file mode 100644 index 000000000..689286020 --- /dev/null +++ b/releasenotes/notes/rabbit_qos_prefetch_count-4ba50285a26647c5.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + The new ``neutron::rabbit_qos_prefetch_count`` parameter has been added. diff --git a/spec/classes/neutron_init_spec.rb b/spec/classes/neutron_init_spec.rb index 1b7c7be2c..e6f96a7e3 100644 --- a/spec/classes/neutron_init_spec.rb +++ b/spec/classes/neutron_init_spec.rb @@ -80,6 +80,7 @@ describe 'neutron' do :heartbeat_timeout_threshold => '', :heartbeat_rate => '', :heartbeat_in_pthread => '', + :rabbit_qos_prefetch_count => '', :rabbit_use_ssl => '', :rabbit_transient_queues_ttl => '', :kombu_reconnect_delay => '',