Skip to content

glasner/nimble_nodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client Gem for NimbleNodes.com Subscribers

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.

Installation

Install gem

sudo gem install nimble_nodes

Rails installation

In config/enviroment.rb

config.gem ‘nimble_nodes’

Rails >= 2.3

In config/initializers/nimble_nodes.rb

ActionController::Dispatcher.middleware.use(NimbleNodes::Middleware)

Rails < 2.3

In app/controllers/application_controller.rb

before_filter :monitor_heroku_app

Other Rack Apps

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

Copyright © 2010 Cotillion, LLC. See LICENSE for details.

Releases

No releases published

Packages

No packages published

Languages