beanstalkd.conf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # get the number of buried jobs in all queues
  2. template: beanstalk_server_buried_jobs
  3. on: beanstalk.current_jobs
  4. class: Workload
  5. type: Messaging
  6. component: Beanstalk
  7. calc: $buried
  8. units: jobs
  9. every: 10s
  10. warn: $this > 3
  11. delay: up 0 down 5m multiplier 1.2 max 1h
  12. info: number of buried jobs across all tubes. \
  13. You need to manually kick them so they can be processed. \
  14. Presence of buried jobs in a tube does not affect new jobs.
  15. to: sysadmin
  16. # get the number of buried jobs per queue
  17. #template: beanstalk_tube_buried_jobs
  18. # on: beanstalk.jobs
  19. # calc: $buried
  20. # units: jobs
  21. # every: 10s
  22. # warn: $this > 0
  23. # crit: $this > 10
  24. # delay: up 0 down 5m multiplier 1.2 max 1h
  25. # info: the number of jobs buried per tube
  26. # to: sysadmin
  27. # get the current number of tubes
  28. #template: beanstalk_number_of_tubes
  29. # on: beanstalk.current_tubes
  30. # calc: $tubes
  31. # every: 10s
  32. # warn: $this < 5
  33. # delay: up 0 down 5m multiplier 1.2 max 1h
  34. # info: the current number of tubes on the server
  35. # to: sysadmin