How to Speed Up CPU Target Tracking Scaling for ECS Fargate?

0
6
Asked By CuriousCoder42 On

I'm trying to find a way to make Target Tracking scaling for CPU on ECS Fargate more responsive. Currently, the CloudWatch alarms are set to trigger scale-outs based on three metrics over a period of 60 seconds, but the scale-in period is much longer, which is causing downtime for my application when CPU usage spikes. Is there any way to make these alarms trigger faster? Also, does anyone know how AWS determines scaling actions? I've attempted to use various CLI commands to uncover their scaling logic but haven't had much luck. I want to understand how to adjust scaling more effectively, especially to handle high CPU situations. My setup involves Fargate with a PHP application behind both internal and external load balancers.

1 Answer

Answered By ScalingNinja99 On

You might want to reconsider if CPU % is the best metric to track. If your requests have consistent loads, scaling based on the request count per second from your load balancer could help you react quicker before the workers get overwhelmed. It’s worth a try!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.