kk.
kk.

Reputation: 3945

How does scale in and scale out works on AWS Fargate?

I have set up an ECS cluster backed up by AWS Fargate. Assigned minimal CPU (256) and Memory (512) in order to test scale in and scale of for this cluster. This cluster scales and scales out successfully depending on the load. However, the scale out operation triggers approximately 10 minutes after the load reaches more than 50% (which is AutoScalingTargetValue for CPU usage). Similarly, it takes approximately 20 minutes in order to scale in after load drops to 15% CPU usage.

I am not understanding how should I configure the Autoscaling group in order for the policy to respond within a minute to changing load.

Upvotes: 6

Views: 4834

Answers (1)

nathanpeck
nathanpeck

Reputation: 5531

It sounds like you need to configure your autoscaling rules to be a bit faster. Note that autoscaling rules are triggered by CloudWatch alarms, and they will only take effect when the alarm goes off. Check to make sure that the alarm doesn't have a long alarm period or cooldown period, as this would cause the alarm to wait a while before going off, or go on cooldown for a while before adjusting again.

Upvotes: 4

Related Questions