DevOps

    Scaling ECS: Auto Scaling and Capacity Providers


    Service Auto Scaling

    Console: Service > Update > Scaling > Set min/max/desired.

    Policy: Target tracking on CPU (e.g., 70%).

    CLI example:

    aws application-autoscaling register-scalable-target --service-namespace ecs --resource-id service/my-cluster/my-service --scalable-dimension ecs:service:DesiredCount --min-capacity 1 --max-capacity 10

     

    aws application-autoscaling put-scaling-policy --policy-name cpu70 --service-namespace ecs --resource-id service/my-cluster/my-service --scalable-dimension ecs:service:DesiredCount --policy-type TargetTrackingScaling --target-tracking-scaling-policy-configuration '{ "TargetValue": 70, "PredefinedMetricSpecification": { "PredefinedMetricType": "ECSServiceAverageCPUUtilization" } }'

    Capacity Providers (EC2)

    For EC2 launch type: Create ASG, then capacity provider.

    For Fargate, auto-handled.

    Test: Use tools like Apache Bench to load test.

    Ready to transform your business with our technology solutions? Contact Us  today to Leverage Our DevOps Expertise. 

    Contact Us

    Comment

    Share

    facebook
    LinkedIn
    Twitter
    Mail
    Devops

    Related Center Of Excellence