ALBRequestCountPerTarget auto-scaling metric not available on an ECS Service

0

Hi, I'm trying to set my ECS service to scale up and down based on the ALBRequestCountPerTarget metric, but it's always greyed out. I can set the the average CPU or Memory metric just fine. I've been going over the documentation and the only information I can find on this metric is that it's only applies to spot fleets and ECS Services, which is where I'm trying to use it. There's no other indication I can see as to why it's not available for selection. The service in question is using the EC2 launch type in bridge network mode. It's associated to two target groups currently. Any help would be appreciated. Thanks!

질문됨 2년 전2065회 조회
1개 답변
0

Hi

The reason the "ALBRequestCountPerTarget" option was greyed out was due to not having an application load balancer configured for the ECS cluster service.

When configuring the service for the ECS cluster, you will need to specify the Application Load Balancer that will be used to distribute incoming traffic across the tasks running in your service [1].

Once the Load balancer has be configured, you will be able to Configure Service Auto Scaling to adjust your service’s desired count [2], then be able to select the “ALBRequestCountPerTarget” as the ‘ECS service metric’ on the target tracking scaling policy [2]. [1] https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-create-loadbalancer-rolling.html

[2] https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-configure-auto-scaling.html

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠