Scale your Heroku app’s dynos according to demand.
Rack middleware sits on top of all requests and watches the number of Dynos in use and the number of pending requests. Depending on the settings entered at nimblenodes.com/my/dynos JSON reports are posted over to the server. The server then calculates the needed adjustments and handles all communications with Heroku.
See nimblenodes.com for more information.
sudo gem install nimble_nodes
In config/enviroment.rb
config.gem ‘nimble_nodes’
In config/initializers/nimble_nodes.rb
ActionController::Dispatcher.middleware.use(NimbleNodes::Middleware)
In app/controllers/application_controller.rb
before_filter :monitor_heroku_app
All other Rack based apps should work using the NimbleNodes::Middleware. Please let us know if you need help getting it to work w/ a specific framework.
Copyright © 2010 Cotillion, LLC. See LICENSE for details.