By using AWS re:Post, you agree to the AWS re:Post Terms of Use

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?

asked 2 years ago3.7K views
2 Answers
0
Accepted Answer

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
answered 2 years ago
profile picture
EXPERT
reviewed 10 months ago
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions