Giter Club home page Giter Club logo

autoscaling-lambda's Introduction

Lambda python based over autoscaling lambda

To use this function, activate by triggering a CloudWatch event. The function will check by pairs SQS queue that you want an autoscale group to scale up.

pairs = [{'queue_name': 'sqs_q1', 'autoscale_group': 'autoscale_group1'},
         {'queue_name': 'sqs_q2', 'autoscale_group': 'autoscale_group2'}]

When new SQS count >= Auto scale desired Count it will set a new desired count for the autoscale group

It will consider the MaxSize of the auto scale group as the max size regardless the amount of messages in the queue

Make sure to have aws cli installed

brew update
brew install awscli
aws configure (enter your aws credentials)

To start using the project run Install pip on your mac and virtualenv

sudo easy_install pip
sudo pip install virtualenv

Create virtual env in your project

virtualenv venv

Activate virtualenv folder that just was created

. ./venv/bin/activate

To build a packed lambda zip file run

make install
make build

To deploy the lambda zip file to AWS run

make deploy

To update github

make git_update

Logging

Default logging is DEBUG. To modify it, add to lambda LOG_LEVEL environment variable with the level needed.

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.