-
Notifications
You must be signed in to change notification settings - Fork 2
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
Announcing same jobs every 10 seconds #3
Comments
Original comment by Brent Tubbs (Bitbucket: btubbs, GitHub: btubbs): Rather than having the timer and dispatcher try to determine whether there's a worker available to receive a message, I think we should put a TTL on the messages that the timer sends. If the timer is going to re-announce an unclaimed job every 60 seconds, then we can give those announcement messages a 60 second TTL so they're automatically dropped when they're no longer needed. |
Originally reported by: Darwin Monroy (Bitbucket: dmonroy, GitHub: dmonroy)
When pipeline workers are down and there are jobs ready to be taken mettle start announcing those jobs in a loop, so the rabbitmq job queue starts to grow.
Here is the chart of messages after 1 hour of pipeline workers being down (dev env)
And the mettle logs shows this every 10 seconds:
26000 messages isn't a big number, but for a development environment with just a pipeline (50 jobs) is huge. Few weeks ago the production's mq server had become slow because of millions of messages in the queues, some mettle process lost the connectivity to the mq server and then died.
The text was updated successfully, but these errors were encountered: