10

What's the best way to autoscale workers in Heroku using Rails 3?

donald
  • 23,587
  • 42
  • 142
  • 223
  • Check out * https://github.com/meskyanichi/hirefire - open source * http://hirefireapp.com/ - service in public beta now – wik Jul 01 '11 at 23:12

6 Answers6

2

This branch of delayed_job works pretty well. It's really easy to implement if you're already using delayed_job in your app.

Edit: This gem should work in Rails 3 according to this S.O thread.

Community
  • 1
  • 1
JackCA
  • 4,885
  • 4
  • 27
  • 26
  • Personally, I am not sure but I updated the answer with one that should work in Rails 3. – JackCA Jan 13 '11 at 00:24
  • Note that Workless works on Cedar, while I don't believe the HireFire gem does. – Becca Royal-Gordon May 20 '12 at 04:04
  • I've tried [Workless](https://github.com/lostboy/workless). So far, so good. Works out of the box, with about zero config, and it's free. Very pleased, thanks for the recommendation. – mjnissim Feb 22 '13 at 14:56
1

You could adapt this gem to detect when there's a lot of jobs and then scale it up.

Ryan Bigg
  • 106,965
  • 23
  • 235
  • 261
0

There is also guv which is open source. If you don't want to run it yourself, you can also use it as an add-on

bergie
  • 930
  • 7
  • 8
0

I am using workless gem, and it seems reliable for my dev purpose (scale between 0 and 1 worker) I tried to use heroscale.com but the service is down for 2 month and I am not that confident with leaving my heroku credentials on such a young service

Chris
  • 2,744
  • 3
  • 24
  • 39
0

There are a few options. Heroku exposes the Platform API which you can use to scale up and down. Alternatively, there are a few Heroku Addons that can solve this problem for you. I use this heroku autoscaling addon for my projects.

eabraham
  • 4,094
  • 1
  • 23
  • 29
0

HireFire is a great gem for 'scaling' workers- allows you to only pay for the exact amount (to the second) of work that needs to be done. Works with delayed job and rescue.

automagic
  • 1,067
  • 8
  • 10