Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 nimble_nodes.gemspec
README.rdoc

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.

Something went wrong with that request. Please try again.