Registering multiple target groups for ECS service

0

Hello

Is registering multiple target groups to an ECS service a good practice?

One can think that if I attach multiple target groups where each target group is used in a separate load balancer, where one load balancer handles internal traffic and another load balancer handles external traffic from internet, does that introduce load imbalances between instances of the target groups? If so can these imbalances become so severe that I might need to have separate ECS service altogether to handle external traffic and another ECS service to handle internal traffic?

Thanks

1개 답변
0

Hi,

The use of multiple target groups could be useful if you are trying to implement patterns such as the ones mentioned here.

Since you are using ECS [it is designed with a focus on scaling], you don't need to create another service [manually] for internal and external needs, instead you can automatically scale your Amazon ECS service based on a metric/alarm/shedule.

As with any solution, it could be necessary to load test it to verify your configurations (Task, Service, ALB, Auto-scaling) can serve real-world loads. I suggest you go through this guide Distributed Load Testing on AWS.

Hope this helps!

Thanks, Rama

profile pictureAWS
Rama
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

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

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

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

관련 콘텐츠