Skip to content

Conflict Between Auto-Scaling Policies in the new ECS Service Console

0

I have an ECS service with auto-scaling policies deployed using AWS CDK. One of my scaling policies is configured to scale down the service based on a metric that tracks idle tasks. Recently, I noticed that when there is only one task running, which is idle, the policy does not trigger.

Upon investigation, I observed that the ECS service console now has a new tab called "Service auto scaling," where the policy information conflicts with the old one found in the "Configuration and networking" tab. It appears that the new tab contains the policies currently in effect. However, I have not changed the policy configuration recently, and it is supposed to use the old one.

In the "Configuration and networking" tab, the policy appears as: Enter image description here

In the "Service auto scaling" tab, the policy appears as: Enter image description here

As you can see in the images, there is a difference in the first policy rule for the same policy:

  • In the "Configuration and networking" tab: "Remove 1 task when 1 <= metric < 2"
  • In the "Service auto scaling" tab: "When 1 < CeleryIdleWorkersAboveMinimum <= 2 | Remove 1 capacity unit(s)."

Appreciate any help with this.

asked 2 years ago470 views

1 Answer
0

Hello,

This "Min Tasks" value is set to 1, as seen in the first image. AutoScaling cannot scale the Desired lower than the Min value. If you want to scale to 0, make sure to set the Min to 0 https://docs.aws.amazon.com/autoscaling/application/userguide/getting-started.html

The <= vs < does look to be inconsistent with the service behavior, however, I believe this is just a console UI issues vs an actual issue with the scaling policy. I've reported this to the Console team. Thank you for reporting this issue!

In the future, also feel free to click the 'feedback' button on any console, which will send feedback directly to the team who owns a given console for them to review.

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.