Implement variables to address oslo.messaging improvements

During last release cycle oslo.messaging has landed [1] series of extremely
useful changes that are designed to implement modern messaging
techniques for rabbitmq quorum queues.

Since these changes are breaking and require queues being re-created,
it makes total sense to align these with migration to quorum queues by default.

[1] https://review.opendev.org/q/topic:%22bug-2031497%22

Change-Id: I02db2ad91ad036ff24c35882e1746b3d6a8f3cc0
This commit is contained in:
Dmitriy Rabotyagov 2024-03-25 18:51:48 +01:00 committed by Dmitriy Rabotyagov
parent 21f8ede972
commit 62f3ce0efc
2 changed files with 8 additions and 0 deletions

View File

@ -126,6 +126,10 @@ cinder_oslomsg_notify_policies: []
## RabbitMQ integration
cinder_oslomsg_rabbit_quorum_queues: "{{ oslomsg_rabbit_quorum_queues | default(True) }}"
cinder_oslomsg_rabbit_stream_fanout: "{{ oslomsg_rabbit_stream_fanout | default(cinder_oslomsg_rabbit_quorum_queues) }}"
cinder_oslomsg_rabbit_transient_quorum_queues: "{{ oslomsg_rabbit_transient_quorum_queues | default(cinder_oslomsg_rabbit_stream_fanout) }}"
cinder_oslomsg_rabbit_qos_prefetch_count: "{{ oslomsg_rabbit_qos_prefetch_count | default(cinder_oslomsg_rabbit_stream_fanout | ternary(10, 0)) }}"
cinder_oslomsg_rabbit_queue_manager: "{{ oslomsg_rabbit_queue_manager | default(cinder_oslomsg_rabbit_quorum_queues) }}"
cinder_oslomsg_rabbit_quorum_delivery_limit: "{{ oslomsg_rabbit_quorum_delivery_limit | default(0) }}"
cinder_oslomsg_rabbit_quorum_max_memory_bytes: "{{ oslomsg_rabbit_quorum_max_memory_bytes | default(0) }}"

View File

@ -129,6 +129,10 @@ connection_recycle_time = {{ cinder_db_connection_recycle_time }}
[oslo_messaging_rabbit]
heartbeat_in_pthread = {{ cinder_oslomsg_heartbeat_in_pthread }}
rabbit_quorum_queue = {{ cinder_oslomsg_rabbit_quorum_queues }}
rabbit_transient_quorum_queue = {{ cinder_oslomsg_rabbit_transient_quorum_queues }}
rabbit_qos_prefetch_count = {{ cinder_oslomsg_rabbit_qos_prefetch_count }}
use_queue_manager = {{ cinder_oslomsg_rabbit_queue_manager }}
rabbit_stream_fanout = {{ cinder_oslomsg_rabbit_stream_fanout }}
rabbit_quorum_delivery_limit = {{ cinder_oslomsg_rabbit_quorum_delivery_limit }}
rabbit_quorum_max_memory_bytes = {{ cinder_oslomsg_rabbit_quorum_max_memory_bytes }}