'Rails 3: Autoscaling workers in Heroku

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



Solution 1:[1]

Check out

Solution 2:[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.

Solution 3:[3]

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

Solution 4:[4]

Solution 5:[5]

You should take a look at this website

Solution 6:[6]

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

Solution 7:[7]

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.

Solution 8:[8]

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

Solution 9:[9]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 wik
Solution 2 Community
Solution 3 Ryan Bigg
Solution 4 Thiago Diniz
Solution 5 Mosty Mostacho
Solution 6 Chris
Solution 7 automagic
Solution 8 bergie
Solution 9 eabraham