AWS Elastic Load Balancing Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 41: Line 41:
{{External|[https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html Network Load Balancers]}}
{{External|[https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html Network Load Balancers]}}


A Network Load Balancer functions at the fourth layer of the Open Systems Interconnection (OSI) model. After the load balancer receives a request, it selects a target from the [[#Target_Group|target group]] for the default rule using a flow hash routing algorithm, and then attempts to open a TCP connection to the selected target. It can handle millions of requests per second.
A Network Load Balancer functions at the fourth layer of the Open Systems Interconnection (OSI) model. After the load balancer receives a request, it selects a target from the [[#Target_Group|target group]] for the default rule using a flow hash routing algorithm,  based on the protocol, source IP address, source port, destination IP address, destination port, and TCP sequence number, and then attempts to open a TCP connection to the selected target. It can handle millions of requests per second.


==Classic Load Balancer==
==Classic Load Balancer==

Revision as of 23:26, 8 February 2019

External

Internal

Overview

Load Balancer

Load Balancers

A load balancer serves as the single point of contact for clients. The load balancer distributes incoming traffic across multiple targets, which actually know how to handle requests and provide responses. This increases the availability of the application. A load balancer can have one or more listeners.

Listener

Listeners

A listener checks for connection requests from clients, over a pre-configured protocol and port, and forwards requests to a target group.

Target Group

Target Group

A target group routes requests to one or more registered targets, which can be EC2 instances, using a pre-configured TCP protocol and the port. A target can be registered with multiple target groups. A target group supports health checks: health checks are performed on all target registered to a target group that is specified on a listener rule for the load balancer.

Target

Load Balancer Types

Used by Amazon ECS.

Application Load Balancer

Allows containers to use dynamic host port mapping (multiple tasks allowed per container instance). Multiple services can use the same listener port on a single load balancer with rule-based routing and paths.

Network Load Balancer

Network Load Balancers

A Network Load Balancer functions at the fourth layer of the Open Systems Interconnection (OSI) model. After the load balancer receives a request, it selects a target from the target group for the default rule using a flow hash routing algorithm, based on the protocol, source IP address, source port, destination IP address, destination port, and TCP sequence number, and then attempts to open a TCP connection to the selected target. It can handle millions of requests per second.

Classic Load Balancer