Skip to content

Add "prioritystatus" to report status broken down by priority #53

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

Closed
njam opened this issue Nov 30, 2016 · 1 comment
Closed

Add "prioritystatus" to report status broken down by priority #53

njam opened this issue Nov 30, 2016 · 1 comment

Comments

@njam
Copy link

njam commented Nov 30, 2016

For monitoring our gearman server we would like to know how many jobs are currently queued, broken down by priority. Then we can alert quickly if high prio jobs are piling up.

Usage could look like this:

$ gearadmin --priority-status
HIGH	12	7
NORMAL	14	3
LOW	0	0

With these columns:

  • Priority name
  • Number in queue
  • Number of jobs running

@SpamapS wrote on the mailing list:

we'd love to see a patch for that as an addition to the admin protocol. The information is definitely readily available in the data structure, since each priority is in fact its own linked list.

Any patch would need to include updates to gearmand/PROTOCOL to explain the difference in the Administrative protocol.

cc @ppp0 @kris-lab @fvovan maybe something for the next Research Day (December 14th)?

@SpamapS
Copy link
Member

SpamapS commented Dec 3, 2016

Thanks for the submission. I actually think it needs to be broken down by function name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants