From 285c8a04ad807cfee77475a040a16de6f43bf18b Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Tue, 19 Sep 2023 13:17:06 +0200 Subject: [PATCH] Switch classic queues to version 2 Usage of version 2 of classic queues is highly advised, since RabbitMQ 3.13 is going to remove support of version 1 [1] [1] https://blog.rabbitmq.com/posts/2023/05/rabbitmq-3.12-performance-improvements/#classic-queues-massively-improved-classic-queues-v2-cqv2 Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-rabbitmq_server/+/895804 Change-Id: I83cd385e3ec50d6bf66a34609be147a398a7940e --- inventory/group_vars/all/infra.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inventory/group_vars/all/infra.yml b/inventory/group_vars/all/infra.yml index a25b6a9773..86391fce4f 100644 --- a/inventory/group_vars/all/infra.yml +++ b/inventory/group_vars/all/infra.yml @@ -30,6 +30,11 @@ rabbitmq_policies: priority: 0 tags: "ha-mode=all" state: "{{ (oslomsg_rabbit_quorum_queues | default(True)) | ternary('absent', 'present') }}" + - name: CQv2 + pattern: '.*' + priority: 0 + tags: "x-queue-version=2" + state: "{{ (oslomsg_rabbit_quorum_queues | default(True)) | ternary('absent', 'present') }}" ## Galera options galera_client_package_state: "{{ package_state }}"