1
votes

This morning I found that my rabbitmq instances does not have several queues that are usually there.

What I noticed is a pattern, that the remaining queues are the ones that had consumers attached to those.

The queues that are gone are mostly retry and DLQs. How does one investigate what happened? What do I look for and where?

Update:

This is my queue details :

enter image description here

2

2 Answers

2
votes

The expires is your problem there, if the queue has not been used for some time, it will get dropped.

Also I would get rid of the message-ttl unless you want your messages to be dropped after certain amount of time.

More info here: http://www.rabbitmq.com/ttl.html

These are rabbitmq configuration settings you must change, here some more info https://www.rabbitmq.com/parameters.html

1
votes

This is due to a feature of TTL or Time to Live for a queue .

As shown in this example below

enter image description here

The value against expires correspond to 28 days. So If a queue hasn't had any consumer for 28 days it gets deleted.

It could also be possible that the auto-delete property is set to true in which case the queue will automatically get deleted the moment the last consumer gets disconnected.

You should be able to get both these parameters in the rabbitmq console where you check the queue properties .