NLB doesn't send traffic to new healthy Fargate tasks

0

I have ECS with Fargate. Traffic is routed with NLB. When service is just started NLB routes traffic equally to all tasks with no problem. However, when service is automatically sales up (or if I manually increase tasks count) NLB is not routing traffic to a newly created tasks. Despite the fact that new task are marked as healthy in a Target group. I can see it clearly form new tasks log and from "about zero" minimum CPU on the Service.

  • I presume they are all registering with IP, not instance ID in the target group. This is the default in Fargate. Are they in an AZ that the NLB is not configured to support?

  • Yes, NLB is available in the same 3 AZ as tasks. And yes, they are registered with IP.

  • Do you have sticky sessions enabled? How are you testing the routing?

  • Hello Smotrov, has your issue been resolved? If not, can you reply to Ben's questions? Thank you for your participation in AWS re:Post community.

2개 답변
0

Hi Smotrov, I understand that you have ECS Fargate tasks which are being load balanced using an NLB with a Target Group configured for IP Registration. However, connections are not being routed to the new healthy tasks as they are registered with the target group. In the NLB overview section of AWS Docs you will find that each individual TCP connection is routed to a single target for the life of the connection. With ALB you can specify the load balancing algorithm of either round robin or least outstanding requests.

AWS
답변함 2년 전
profile pictureAWS
전문가
Rob_H
검토됨 2년 전
0

This question was answered live in great detail at twitch https://www.twitch.tv/aws/video/1420471067.

profile picture
지원 엔지니어
답변함 2년 전
profile pictureAWS
전문가
Rob_H
검토됨 2년 전

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

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

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

관련 콘텐츠