Skip to content

Heroku dyno scaler on the cheap. For use with Heroku Scheduler addon or cron. A quick hack.

Notifications You must be signed in to change notification settings

arvida/thief-in-the-night

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thief-in-the-night

Heroku dyno auto scaler on the cheap. For use with the Heroku Scheduler addon or something cron like.

Setup

First create a new Heroku app.

Add the following add-ons to your new app:

Add your Heroku API key as a config variable:

$ heroku config:add HEROKU_API_KEY=xxx

Add a e-mail to send error reports to if the scaling fails:

$ heroku config:add ERROR_REPORT_EMAIL=hello@example.com

Go to the Heroku Sceduler config page and set up jobs to scale your dynos:

ruby heroku-scaler.rb -a dat-app -t web -d 3 # scale web dynos to 3 for the app dat-app
ruby heroku-scaler.rb -a dat-app -t worker -d 1 # scale worker dynos to 1  for the app dat-app

About

Heroku dyno scaler on the cheap. For use with Heroku Scheduler addon or cron. A quick hack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages