Skip to content
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

Blacklisted queues should not send general metrics #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jayzes
Copy link

@jayzes jayzes commented Sep 21, 2015

We ran into an issue where some of our queues tend to spin up a large number of small/fast jobs, and the overhead associated with the metrics middleware was causing a substantial slowdown in clearing those queues, even when the queue in question was blacklisted. Digging in, I noticed that blacklisting a queue doesn't completely prevent metrics from being reported - it just short-circuits the detailed reporting, but still triggers the general stats. This PR changes that behavior so that nothing will get reported when the middleware is processing a blacklisted queue.

When the middleware is called and a blacklisted queue is referenced,
we should short-circuit processing altogether and not even query/report 
the general set of metrics.
@jayzes jayzes force-pushed the jz-blacklisted-queues-should-send-no-metrics branch from 28857b4 to 1cb6994 Compare September 21, 2015 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant