-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restart RabbitMQ consumers when vital queue got no consumers #1358
Comments
Deleted Message Vault may be disabled. However the list of queues is static. We need to make sure queue consumption still runs if (write explicit tests for it, passing |
+1
We can make the list configurable. |
Likely we need a |
No my feeling is that by handling the missing queue leniently we could keep this sttatic, just monitor the queue that exist and keep the configuration burdown low. |
I'm against conf for this: it will get forgotten. The alternative would be to link it with the module chooser but it looks complex... |
|
Why
Today, there were no consumers on
deleted-message-vault-work-queue
of MU, so we needed to restart TMail ourselves.We should have a mechanism to automatically spot the no consumers issues and restart them.
Originally it seems @chibenwa thought about writing a healthcheck for RabbitMQ consumers on the queues + auto restart TMail.
However, I checked the code and got another simple idea.
How
deleted-message-vault-work-queue
(could be other queues as well) toScheduledReconnectionHandler
monitoring listDoD
ScheduledReconnectionHandler
more to ensure it can correctly restart the consumers if a queue in the list has no consumer.The text was updated successfully, but these errors were encountered: