Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Prioritize and monitor queues in Resque pool

$
0
0

My application has multiple queues and I'm trying to prioritize specific queues.

resque-pool.yml

development:"high_priority, med_priority, low_priority": 1

According to the resque-pool documentation (https://github.com/nevans/resque-pool) example:

resque-pool.yml

foo: 1bar: 2"foo,bar,baz": 1production:"foo,bar,baz": 4

"This will start up seven worker processes, one exclusively for the foo queue, two exclusively for the bar queue, and four workers looking at all queues in priority. With the config above, this is similar to if you ran the following:"

rake resque:work RAILS_ENV=production QUEUES=foo &rake resque:work RAILS_ENV=production QUEUES=bar &rake resque:work RAILS_ENV=production QUEUES=bar &rake resque:work RAILS_ENV=production QUEUES=foo,bar,baz &rake resque:work RAILS_ENV=production QUEUES=foo,bar,baz &rake resque:work RAILS_ENV=production QUEUES=foo,bar,baz &rake resque:work RAILS_ENV=production QUEUES=foo,bar,baz &

My understanding is I think queues are prioritized by the order they are in within the yaml files.

How would I manually verify that the jobs within the highest_priority queue are being prioritized over jobs in the med_priority and low priority queue?

Is there a quick example I can use to monitor what jobs are being executed and in what order?


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>