RabbitMQ policy to delete queues with ha-two

200 views
Skip to first unread message

lobo...@gmail.com

unread,
Dec 27, 2023, 5:44:26 AM12/27/23
to rabbitmq-users
Hi, I created a policy with expires=1 and pattern=.events.configurationChanged- to delete queues without consumers but it does not delete my queues.
In a local environment without high availability configured it works, but in production environment with high availability configured it does not work.
I thing the queue high availability in production is the point. How can I create a policy to delete queues in a high environment?
Thanks.
Márcio.

Michal Kuratczyk

unread,
Dec 27, 2023, 7:24:32 AM12/27/23
to rabbitm...@googlegroups.com
Did you add this to the policy which enables mirroring or as a separate policy?
Only one policy is active at the time:

Also, classic queue mirroring (HA policies) will be removed in RabbitMQ 4.0 next year. Use quorum queues if you need replication.


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/187ffa45-b27c-481c-8b24-9fc4bd92591bn%40googlegroups.com.


--
Michal
RabbitMQ Team

This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.

lobo...@gmail.com

unread,
Dec 27, 2023, 8:57:31 AM12/27/23
to rabbitmq-users
Thanks for reply.
I created a separate policy for exparies, now It works, because my ha-two policy has priority "0" and my new policy to delete queues without consumers a set priority "999", then it worked. But my cluster was down and it was hard to delete the exparies policy. After a few tries the exparies policy was deleted and the ha-two policy was aplied again by RabbitMQ and after 30 minutes the 3 cluster nodes was up again and all works.
But how is the best way to do this, without down the cluster?

Michal Kuratczyk

unread,
Dec 27, 2023, 9:05:08 AM12/27/23
to rabbitm...@googlegroups.com
I don't understand why your cluster was down. Either way, the best way is not to use queue mirroring.

Reply all
Reply to author
Forward
0 new messages