Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between a load balancer, listener target, target group in AWS?

Hi I am new to AWS and trying to understanding the difference between a load balance, target, target group and security group . I have 2 instances running. Now i want to balance the load coming to these servers. Will load balance be created on a new instance ? what are listeners and how are they different from load balancers?

like image 667
Neha Avatar asked Jul 19 '18 17:07

Neha


People also ask

Which load balancer uses listeners targets and target groups?

To support new functionalities added inside the ALB, a few new resource types were added, including target groups, targets, and rules. ALB and Classic Load Balancer have listeners that define the protocol and port, where the load balancer listens for incoming connections.

What is a load balancer listener AWS?

A listener is a process that checks for connection requests. It is configured with a protocol and a port for front-end (client to load balancer) connections, and a protocol and a port for back-end (load balancer to back-end instance) connections. Elastic Load Balancing supports the following protocols: HTTP.

What does the load balancer do if all the targets in one of the target groups are marked unhealthy?

If a target group contains only unhealthy registered targets, the load balancer routes requests to all those targets, regardless of their health status. This means that if all targets fail health checks at the same time in all enabled Availability Zones, the load balancer fails open.

How many target groups can be attached to a load balancer?

You can specify up to 10 target groups. To get the ARN of a target group, use the Elastic Load Balancing DescribeTargetGroups API operation. --cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided.


1 Answers

Yes, the load balancer is an EC2 instance to provide the networking and compute services needed for load balancing. This also means that there is a per hour charge for the load balancer EC2 instance.

A Target Group is used to route requests to one or more registered targets (your backed EC2 instances).

A listener is a process that "TCP Listens" for requests from clients. Common listeners are for receiving requests on port 80 (HTTP) and port 443 (HTTPS). The listeners then forward requests to your Target Group.

A Security Group is a firewall that allows or denies network traffic. A security group sits in front (our around) your load balancer protecting it from traffic that you do not allow (want).

There is a lot of information on the Internet. Here is a link to help you get started.

What Is an Application Load Balancer?

like image 50
John Hanley Avatar answered Sep 18 '22 12:09

John Hanley