Sha256: fedd67130a2dcb97c3d08f44bc73fcf0f524a46da0d2fe81c5bb1bc9440a3d15
Contents?: true
Size: 842 Bytes
Versions: 1
Compression:
Stored size: 842 Bytes
Contents
Autoscale QueueClassic workers on Heroku ================== Add to a Rails 3.x project to auto scale QueueClassic workers on heroku. **WARNING: USE AT OWN RISK! THIS GEM IS CONSIDERED EXTREME ALPHA!** Usage ----- Install as gem gem install heroku-qc-autoscale Add to Gemfile gem "heroku-qc-autoscale" Create config/initializers/qc_autoscale.rb Heroku::QC::Autoscale.config do |c| c.api_key = ENV['HEROKU_API_KEY'] c.app = ENV['HEROKU_APP'] c.scale = [1, 15, 30, 40, 50] c.active = Rails.env.production? end Queue jobs as normal with QueueClassic. Based on your scale table, it will recalculate the workers required after each QC#enqueue, and QC#delete. QC.enqueue("Time.now") Meta ---- Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heroku-qc-autoscale-0.0.2 | README.md |