RabbitMQ: Add support for quorum queue options
Depends-on: https://review.opendev.org/894866 Change-Id: I447aca06bb1e0050c01bd1e21eb6942602d2643e
This commit is contained in:
parent
e2636737a4
commit
73271ab30c
@ -69,6 +69,24 @@
|
|||||||
# will be run through a green thread.
|
# will be run through a green thread.
|
||||||
# Defaults to $facts['os_service_default']
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
|
# [*rabbit_quorum_queue*]
|
||||||
|
# (Optional) Use quorum queues in RabbitMQ.
|
||||||
|
# Defaults to $facts['os_service_default']
|
||||||
|
#
|
||||||
|
# [*rabbit_quorum_delivery_limit*]
|
||||||
|
# (Optional) Each time a message is rdelivered to a consumer, a counter is
|
||||||
|
# incremented. Once the redelivery count exceeds the delivery limit
|
||||||
|
# the message gets dropped or dead-lettered.
|
||||||
|
# Defaults to $facts['os_service_default']
|
||||||
|
#
|
||||||
|
# [*rabbit_quorum_max_memory_length*]
|
||||||
|
# (Optional) Limit the number of messages in the quorum queue.
|
||||||
|
# Defaults to $facts['os_service_default']
|
||||||
|
#
|
||||||
|
# [*rabbit_quorum_max_memory_bytes*]
|
||||||
|
# (Optional) Limit the number of memory bytes used by the quorum queue.
|
||||||
|
# Defaults to $facts['os_service_default']
|
||||||
|
#
|
||||||
# [*rabbit_use_ssl*]
|
# [*rabbit_use_ssl*]
|
||||||
# (optional) Connect over SSL for RabbitMQ
|
# (optional) Connect over SSL for RabbitMQ
|
||||||
# Defaults to $facts['os_service_default']
|
# Defaults to $facts['os_service_default']
|
||||||
@ -270,6 +288,10 @@ class cinder (
|
|||||||
$rabbit_heartbeat_timeout_threshold = $facts['os_service_default'],
|
$rabbit_heartbeat_timeout_threshold = $facts['os_service_default'],
|
||||||
$rabbit_heartbeat_rate = $facts['os_service_default'],
|
$rabbit_heartbeat_rate = $facts['os_service_default'],
|
||||||
$rabbit_heartbeat_in_pthread = $facts['os_service_default'],
|
$rabbit_heartbeat_in_pthread = $facts['os_service_default'],
|
||||||
|
$rabbit_quorum_queue = $facts['os_service_default'],
|
||||||
|
$rabbit_quorum_delivery_limit = $facts['os_service_default'],
|
||||||
|
$rabbit_quorum_max_memory_length = $facts['os_service_default'],
|
||||||
|
$rabbit_quorum_max_memory_bytes = $facts['os_service_default'],
|
||||||
$rabbit_use_ssl = $facts['os_service_default'],
|
$rabbit_use_ssl = $facts['os_service_default'],
|
||||||
$service_down_time = $facts['os_service_default'],
|
$service_down_time = $facts['os_service_default'],
|
||||||
$report_interval = $facts['os_service_default'],
|
$report_interval = $facts['os_service_default'],
|
||||||
@ -342,6 +364,10 @@ class cinder (
|
|||||||
kombu_ssl_ca_certs => $kombu_ssl_ca_certs,
|
kombu_ssl_ca_certs => $kombu_ssl_ca_certs,
|
||||||
amqp_durable_queues => $amqp_durable_queues,
|
amqp_durable_queues => $amqp_durable_queues,
|
||||||
kombu_compression => $kombu_compression,
|
kombu_compression => $kombu_compression,
|
||||||
|
rabbit_quorum_queue => $rabbit_quorum_queue,
|
||||||
|
rabbit_quorum_delivery_limit => $rabbit_quorum_delivery_limit,
|
||||||
|
rabbit_quorum_max_memory_length => $rabbit_quorum_max_memory_length,
|
||||||
|
rabbit_quorum_max_memory_bytes => $rabbit_quorum_max_memory_bytes,
|
||||||
}
|
}
|
||||||
|
|
||||||
oslo::messaging::amqp { 'cinder_config':
|
oslo::messaging::amqp { 'cinder_config':
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
The ``cinder`` class now supports options for quorum queues in RabbitMQ.
|
@ -39,6 +39,10 @@ describe 'cinder' do
|
|||||||
:kombu_ssl_version => '<SERVICE DEFAULT>',
|
:kombu_ssl_version => '<SERVICE DEFAULT>',
|
||||||
:rabbit_ha_queues => '<SERVICE DEFAULT>',
|
:rabbit_ha_queues => '<SERVICE DEFAULT>',
|
||||||
:rabbit_retry_interval => '<SERVICE DEFAULT>',
|
:rabbit_retry_interval => '<SERVICE DEFAULT>',
|
||||||
|
:rabbit_quorum_queue => '<SERVICE DEFAULT>',
|
||||||
|
:rabbit_quorum_delivery_limit => '<SERVICE DEFAULT>',
|
||||||
|
:rabbit_quorum_max_memory_length => '<SERVICE DEFAULT>',
|
||||||
|
:rabbit_quorum_max_memory_bytes => '<SERVICE DEFAULT>',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__messaging__amqp('cinder_config').with(
|
is_expected.to contain_oslo__messaging__amqp('cinder_config').with(
|
||||||
:server_request_prefix => '<SERVICE DEFAULT>',
|
:server_request_prefix => '<SERVICE DEFAULT>',
|
||||||
@ -101,12 +105,16 @@ describe 'cinder' do
|
|||||||
) }
|
) }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'with rabbitmq heartbeats' do
|
context 'with rabbitmq options' do
|
||||||
let :params do
|
let :params do
|
||||||
req_params.merge(
|
req_params.merge(
|
||||||
:rabbit_heartbeat_timeout_threshold => '60',
|
:rabbit_heartbeat_timeout_threshold => '60',
|
||||||
:rabbit_heartbeat_rate => '10',
|
:rabbit_heartbeat_rate => '10',
|
||||||
:rabbit_heartbeat_in_pthread => true
|
:rabbit_heartbeat_in_pthread => true,
|
||||||
|
:rabbit_quorum_queue => true,
|
||||||
|
:rabbit_quorum_delivery_limit => 3,
|
||||||
|
:rabbit_quorum_max_memory_length => 5,
|
||||||
|
:rabbit_quorum_max_memory_bytes => 1073741824,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -114,6 +122,10 @@ describe 'cinder' do
|
|||||||
:heartbeat_timeout_threshold => '60',
|
:heartbeat_timeout_threshold => '60',
|
||||||
:heartbeat_rate => '10',
|
:heartbeat_rate => '10',
|
||||||
:heartbeat_in_pthread => true,
|
:heartbeat_in_pthread => true,
|
||||||
|
:rabbit_quorum_queue => true,
|
||||||
|
:rabbit_quorum_delivery_limit => 3,
|
||||||
|
:rabbit_quorum_max_memory_length => 5,
|
||||||
|
:rabbit_quorum_max_memory_bytes => 1073741824,
|
||||||
) }
|
) }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user