From 52ad552129afc715dc978c61edf881090fcf48c0 Mon Sep 17 00:00:00 2001 From: Gabriele Date: Tue, 26 Feb 2019 11:40:43 +0100 Subject: [PATCH] Improve the Highly Available (Mirrored) Queues policy Without this policy, the queues reply_*, *_fanout_* are mirrored, across all the RabbitMQ nodes. It is not necessary to mirror the queues above, because they are usually bound to one specific consumer, so the mirroring is not essential. The new policy reduces the number of mirror queues and increases, in general, the performances because it reduces the number of copies across the cluster. More info about RabbitMQ HA [1] [1]: https://www.rabbitmq.com/ha.html ref: http://eavesdrop.openstack.org/meetings/oslo/2019/oslo.2019-02-25-15.22.txt Change-Id: I783d314aaa68b09abb4fed90818165b9e61e9758 --- defaults/main.yml | 2 +- .../notes/rabbitmq-server-ha-policy-d4e9b46cb5922032.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/rabbitmq-server-ha-policy-d4e9b46cb5922032.yaml diff --git a/defaults/main.yml b/defaults/main.yml index 7d364157..80f6cb58 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -153,5 +153,5 @@ rabbitmq_disable_non_tls_listeners: False # rabbitmq_policies: - name: "HA" - pattern: '^(?!amq\.).*' + pattern: '^(?!(amq\.)|(.*_fanout_)|(reply_)).*' tags: "ha-mode=all" diff --git a/releasenotes/notes/rabbitmq-server-ha-policy-d4e9b46cb5922032.yaml b/releasenotes/notes/rabbitmq-server-ha-policy-d4e9b46cb5922032.yaml new file mode 100644 index 00000000..fe4daa7d --- /dev/null +++ b/releasenotes/notes/rabbitmq-server-ha-policy-d4e9b46cb5922032.yaml @@ -0,0 +1,8 @@ +--- +upgrade: + - | + The default queue policy has changed to ``^(?!(amq\.)|(.*_fanout_)|(reply_)).*`` + instead of ``^(?!amq\.).*`` for efficiency. + The new HA policy excludes reply queues (these queues have a single consumer and TTL policy), + fanout queues (they have the TTL policy) and + amq queues (they are auto-delete queues, with a single consumer). \ No newline at end of file