Git Product home page Git Product logo

heroku-dyno-scaler's Introduction

Simple AWS lambda function to help scale heroku dynos. The function receives SNS published events that contain a json message specifying the dyno type and desired quantity.

{type: 'worker', quantity: 1}

This can be published from the rails app, or anywhere else that knows a worker will be needed.

To develop:

npm install
node-lamba run

node-lambda run will use the event.json as sample input to the lambda function and run it locally.

To deploy, copy the deploy.env.example file to deploy.env and update its contents to match your needs and then

`node-lambda deploy`

This will zip up the directory, including node_modules, upload the zip to AWS and make the deploy.env variables available on process.env

heroku-dyno-scaler's People

Contributors

fairchild avatar

Stargazers

Lukas Nagl avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.