Add queue_manager and stream_fanout
This patch adds two new parameters to the toplevel class: - rabbit_use_queue_manager - rabbit_stream_fanout that are already handled by the oslo::messaging::rabbit class, which makes it impossible to set using nova_config. Change-Id: Ifb14d23b79e13458e8db9ff165153deca703c7f5
This commit is contained in:
@@ -91,6 +91,14 @@
|
||||
# (Optional) Limit the number of memory bytes used by the quorum queue.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*rabbit_use_queue_manager*]
|
||||
# (Optional) Should we use consistant queue names or random ones.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*rabbit_stream_fanout*]
|
||||
# (Optional) Use stream queues in RabbitMQ (x-queue-type: stream).
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*rabbit_enable_cancel_on_failover*]
|
||||
# (Optional) Enable x-cancel-on-ha-failover flag so that rabbitmq server will
|
||||
# cancel and notify consumers when queue is down.
|
||||
@@ -372,6 +380,8 @@ class nova(
|
||||
$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_queue_manager = $facts['os_service_default'],
|
||||
$rabbit_stream_fanout = $facts['os_service_default'],
|
||||
$rabbit_enable_cancel_on_failover = $facts['os_service_default'],
|
||||
$rabbit_retry_interval = $facts['os_service_default'],
|
||||
$kombu_ssl_ca_certs = $facts['os_service_default'],
|
||||
@@ -545,6 +555,8 @@ class nova(
|
||||
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,
|
||||
use_queue_manager => $rabbit_use_queue_manager,
|
||||
rabbit_stream_fanout => $rabbit_stream_fanout,
|
||||
enable_cancel_on_failover => $rabbit_enable_cancel_on_failover,
|
||||
rabbit_retry_interval => $rabbit_retry_interval,
|
||||
}
|
||||
|
@@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The ``nova`` class now has two new parameters
|
||||
``rabbit_use_queue_manager`` and ``rabbit_stream_fanout``.
|
@@ -58,6 +58,8 @@ describe 'nova' do
|
||||
:rabbit_quorum_delivery_limit => '<SERVICE DEFAULT>',
|
||||
:rabbit_quorum_max_memory_length => '<SERVICE DEFAULT>',
|
||||
:rabbit_quorum_max_memory_bytes => '<SERVICE DEFAULT>',
|
||||
:use_queue_manager => '<SERVICE DEFAULT>',
|
||||
:rabbit_stream_fanout => '<SERVICE DEFAULT>',
|
||||
:enable_cancel_on_failover => '<SERVICE DEFAULT>',
|
||||
:rabbit_retry_interval => '<SERVICE DEFAULT>',
|
||||
)
|
||||
@@ -130,6 +132,8 @@ describe 'nova' do
|
||||
:rabbit_quorum_delivery_limit => 3,
|
||||
:rabbit_quorum_max_memory_length => 5,
|
||||
:rabbit_quorum_max_memory_bytes => 1073741824,
|
||||
:rabbit_use_queue_manager => true,
|
||||
:rabbit_stream_fanout => true,
|
||||
:rabbit_enable_cancel_on_failover => false,
|
||||
:rabbit_retry_interval => '1',
|
||||
:lock_path => '/var/locky/path',
|
||||
@@ -209,6 +213,8 @@ describe 'nova' do
|
||||
:rabbit_quorum_delivery_limit => 3,
|
||||
:rabbit_quorum_max_memory_length => 5,
|
||||
:rabbit_quorum_max_memory_bytes => 1073741824,
|
||||
:use_queue_manager => true,
|
||||
:rabbit_stream_fanout => true,
|
||||
:enable_cancel_on_failover => false,
|
||||
:rabbit_retry_interval => '1',
|
||||
)
|
||||
|
Reference in New Issue
Block a user