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
回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ