Unused Queues Deletion #11127
-
Hi Team, We have a 100's hosts sending messages to our RabbitMQ cluster with 3 nodes, we have multiple consumers consuming those messages and reply/acknowledge to hosts. Some of our hosts logout when they are idle for sometime, our users will reconnect hosts by login which will create a new queue and old queue is left and unused in the RabbitMQ. Can you please best suggest us a way to clean up the unused queues in RabbitMQ which should be on-going process which keeps on cleaning unused queues? Note:
It's really helpful please let us know if any suggestions or solutions Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for using RabbitMQ. If you haven't yet noticed, RabbitMQ's documentation usually can answer what you are looking for - https://www.rabbitmq.com/docs/queues#temporary-queues
In your case, you will have to write your own process to enumerate the queues in your system (via the HTTP API), and delete those that meet your deletion criteria. |
Beta Was this translation helpful? Give feedback.
Thanks for using RabbitMQ.
If you haven't yet noticed, RabbitMQ's documentation usually can answer what you are looking for -
https://www.rabbitmq.com/docs/queues#temporary-queues
https://www.rabbitmq.com/docs/ttl#queue-ttl
In your case, you will have to write your own process to enumerate the queues in your system (via the HTTP API), and delete those that meet your deletion criteria.