Expose rabbit_qos_prefetch_count
The option was supported by puppet-oslo but was not configurable via this module. Change-Id: Ie46b178c847e33688a87d07093eb939af1403c66
This commit is contained in:
@@ -113,6 +113,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']
|
||||
#
|
||||
# [*amqp_durable_queues*]
|
||||
# (optional) Define queues as "durable" to rabbitmq.
|
||||
# Defaults to $facts['os_service_default']
|
||||
@@ -260,6 +264,7 @@ class barbican::api (
|
||||
$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_ha_queues = $facts['os_service_default'],
|
||||
$rabbit_quorum_queue = $facts['os_service_default'],
|
||||
$rabbit_transient_quorum_queue = $facts['os_service_default'],
|
||||
@@ -322,6 +327,7 @@ class barbican::api (
|
||||
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,
|
||||
kombu_reconnect_delay => $kombu_reconnect_delay,
|
||||
kombu_failover_strategy => $kombu_failover_strategy,
|
||||
amqp_durable_queues => $amqp_durable_queues,
|
||||
|
@@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``barbican::api::rabbit_qos_prefetch_count`` parameter has been
|
||||
added.
|
@@ -35,6 +35,7 @@ describe 'barbican::api' do
|
||||
:rabbit_heartbeat_timeout_threshold => '<SERVICE DEFAULT>',
|
||||
:rabbit_heartbeat_rate => '<SERVICE DEFAULT>',
|
||||
:rabbit_heartbeat_in_pthread => '<SERVICE DEFAULT>',
|
||||
:rabbit_qos_prefetch_count => '<SERVICE DEFAULT>',
|
||||
:rabbit_ha_queues => '<SERVICE DEFAULT>',
|
||||
:rabbit_quorum_queue => '<SERVICE DEFAULT>',
|
||||
:rabbit_transient_quorum_queue => '<SERVICE DEFAULT>',
|
||||
@@ -84,6 +85,7 @@ describe 'barbican::api' do
|
||||
:rabbit_heartbeat_timeout_threshold => '10',
|
||||
:rabbit_heartbeat_rate => '10',
|
||||
:rabbit_heartbeat_in_pthread => true,
|
||||
:rabbit_qos_prefetch_count => 0,
|
||||
:rabbit_ha_queues => true,
|
||||
:rabbit_quorum_queue => true,
|
||||
:rabbit_transient_quorum_queue => true,
|
||||
@@ -172,6 +174,7 @@ describe 'barbican::api' do
|
||||
:heartbeat_timeout_threshold => param_hash[:rabbit_heartbeat_timeout_threshold],
|
||||
:heartbeat_rate => param_hash[:rabbit_heartbeat_rate],
|
||||
:heartbeat_in_pthread => param_hash[:rabbit_heartbeat_in_pthread],
|
||||
:rabbit_qos_prefetch_count => param_hash[:rabbit_qos_prefetch_count],
|
||||
:kombu_reconnect_delay => param_hash[:kombu_reconnect_delay],
|
||||
:kombu_failover_strategy => param_hash[:kombu_failover_strategy],
|
||||
:amqp_durable_queues => param_hash[:amqp_durable_queues],
|
||||
|
Reference in New Issue
Block a user