开发者

Rails 3: Autoscaling workers in Heroku

What's the bes开发者_StackOverflow中文版t way to autoscale workers in Heroku using Rails 3?


Check out

  • https://github.com/meskyanichi/hirefire - open source
  • http://hirefireapp.com/ - service in public beta now


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.


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


This article show a homegrow example http://verboselogging.com/2010/07/30/auto-scale-your-resque-workers-on-heroku


You should take a look at this website


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


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.


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜