What is the role of ports in the target group of the application load balancer?

0

When setting up the load balancer, I understand that it consists of a listener port, a target group port, and an instance port (ip port).

I think that the load balancer goes to the target group through the listener port and traffic is divided according to the instance port in the target group.

Then, the target group port does not seem to affect the load balancing. What is the role of the target group port?

joker
已提问 2 年前2768 查看次数
2 回答
0
已接受的回答

The target group port is the default port if you register the target (e.g. an instance ID) without specifying the port.

A brief description is available here: https://docs.aws.amazon.com/cli/latest/reference/elbv2/register-targets.html

By default, the load balancer routes requests to registered targets using the protocol and port for the target group. Alternatively, you can override the port for a target when you register it. You can register each EC2 instance or IP address with the same target group multiple times using different ports.

AWS
weidi
已回答 2 年前
profile picture
专家
Kallu
已审核 3 个月前
0

The Target group port defines the port on which instances receive traffic from Load Balancer and also the port on which health checks are performed (unless the health check port is overridden)

--Syd

profile picture
Syd
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则