News for hackers. Stuff that matters.
Re:Rescuing Resque: Let's do this by robotmay on Sunday September 23, 2012 @03:36AM (#4560325)
Wow, someone else using Beanstalkd; my hero! Beanstalkd may be one of my favourite but most neglected pieces of software.
Re:Rescuing Resque: Let's do this by pimeys on Sunday September 23, 2012 @03:55AM (#4560357)
It is a blast. Although we had our concerns because you can't see what's inside a Beanstalkd queue (duh, because it's a queue), but building a system for monitoring the failures was not a big deal.

And of course the tubes rock. Now I can build a separate tube for each retry, I can set different priorities for the tubes (so the more fail prone tubes won't block all workers), I can set a deadline for a job to finish and if the worker dies in the middle the job will be returned for the other workers. And best of all, I can monitor all tubes nicely with Graphite.

Re:Rescuing Resque: Let's do this by fullmoon on Sunday September 23, 2012 @04:57AM (#4560431)
Why do you feel that a queue is inherently unpeekable?
Re:Rescuing Resque: Let's do this by pimeys on Sunday September 23, 2012 @09:29AM (#4560871)
You can peek, but it's not built for looking through all the items in it. It is doable, but not very efficient.
Re:Rescuing Resque: Let's do this by ozataman on Sunday September 23, 2012 @06:06PM (#4562249)
Do you have a custom solution for monitoring via Graphite? If so, is it something you can share?
Re:Rescuing Resque: Let's do this by pimeys on Monday September 24, 2012 @02:19AM (#4563446)
It's pretty straightforward. Mostly we have custom data not related to Beanstalkd to monitor, but basically there's two scenarios:

1. When doing something, increment a counter in Statsd, which will aggregate the values to Graphite. Works well for custom stuff.

2. Write a rake task to poll Beanstalkd with `stats` command, reduce the data and send it straight to Graphite.

I'm really planning to open source the queuing system we're using because it's so simple. It might need a prettier admin view and some nice way of plugging in more monitoring systems before I put it to public.

Re:Rescuing Resque: Let's do this by forsaken on Sunday September 23, 2012 @10:18AM (#4560985)
We also use beanstalk a ton where I work. We have put multiple billions of jobs through it over the past few years. It's rock solid and one of my favorite pieces of software.