Skip to content

levraipixel/heroku-autoscaler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Autoscaler

Runs autoscale requests every minute to the Heroku app of your choice. See Heroku autoscale gem to setup your app for autoscaling.

Setup

1. Create a new Heroku app

heroku create --stack cedar

2. Configure this app with your settings

heroku config:add AUTOSCALE_URL=<your autoscale URL (e.g.: http://www.example.com/autoscale/123456789)>
heroku config:add GMAIL_DOMAIN=<your domain (e.g.: example.com)>
heroku config:add GMAIL_USERNAME=<your email (e.g.: [email protected])>
heroku config:add GMAIL_PASSWORD=<your password (e.g.: foo1234)>
heroku config:add EXC_RECIPIENTS=<recipients for exceptions notification (e.g.: [email protected])>

3. Push this app on Heroku

git push heroku master

4. Don't forget to scale down your web app

heroku scale web=0

5. Then scale up your worker

heroku scale worker=1

About

Clockworker requests to autoscale Heroku app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published