Claus-Theodor Riegg
8 years
Andreas Vöst
1 year
Andreas Vöst
1 year
Moritz Kraus
1 year

Delete unresponsive rabbitmq queue

Posted Almost 2 years ago. Visible to the public.

In our monitoring, RabbitMQ queues like aliveness-test may show up as unresponsive, with a ping timeout after 10 seconds. The logfile will generally read like this:

operation queue.delete caused a channel exception not_found: failed to perform operation on queue 'example' in vhost '/' due to timeout

For the aliveness-test queue, you can can use this command to delete it:

rabbitmqctl eval 'rabbit_amqqueue:internal_delete({resource,<<"/">>,queue,<<"aliveness-test">>}).'

This queue is only used for monitoring if RabbitMQ is alive and processing things. It does not contain customer data and will automatically be re-created after deletion.

Last edit
Over 1 year ago
Florian Heinle
License
Source code in this card is licensed under the MIT License.