New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aws-ecs-alb-service-autoscaler

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-ecs-alb-service-autoscaler

AWS ECS service for autoscaling ECS services

  • 0.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

AWS ECS ALB Service Autoscaler

The AWS ECS ALB Service Autoscaler runs as it's own service on your ECS cluster, and automatically scales a given service based on the average number of requests hitting the alb for a service per desired task.

Usage

In a cloudformation template, on the ECS cluster:

  ServiceAutoscaler:
    Properties:
      Cluster: my-cluster-name
      DesiredCount: 1
      TaskDefinition: !Ref ServiceAutoscalerTaskDef
    Type: AWS::ECS::Service

  ServiceAutoscalerTaskDef:
    Properties:
      ContainerDefinitions:
      - Environment:
        - Name: CLUSTER_NAME
          Value: MY_CLUSTER_NAME
        - Name: SERVICE_NAME
          Value: MY_SERVICE_TO_SCALE_NAME
        - Name: MIN_TASKS
          Value: 2
        - Name: MAX_TASKS
          Value: 4
        - Name: MAX_REQUESTS
          Value: 60
        - Name: MIN_REQUESTS
          Value: 30
        Essential: true
        Image: !Sub trinitymirror/aws-ecs-alb-service-autoscaler:${Version}
        Memory: 200
        Cpu: 100
        Name: Autoscaler
    Type: AWS::ECS::TaskDefinition

Optional environment variables:

DRY_RUN=true - Causes the container to not actually run any changes, just print to stdout what it would do. MAX_LOOPS=20 - Maximum number of intervals to run before exiting, to avoid a memory leak in the AWS SDK. Default is 20.

FAQs

Package last updated on 24 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc