SlideShare a Scribd company logo
2
Most read
3
Most read
15
Most read
Mahesh TR
Elastic Load Balancer (ELB)
Mahesh TR
Elastic Load Balancer – ELB
• Elastic Load Balancing allows the incoming traffic to be distributed automatically across
multiple healthy EC2 instances.
• ELB serves as a single point of contact to the client.
• ELB helps to being transparent and increases the application availability by allowing addition
or removal of multiple EC2 instances across one or more availability zones, without disrupting
the overall flow of information.
Mahesh TR
ELB Benefits
• is itself a distributed system that is fault tolerant and actively monitored
• abstracts out the complexity of managing, maintaining, and scaling load balancers
• can also serve as the first line of defence against attacks on network.
• can offload the work of encryption and decryption (SSL termination) so that the EC2 instances can
focus on their main work
• offers integration with Auto Scaling, which ensures enough back-end capacity available to meet
varying traffic levels
• are engineered to not be a single point of failure
Mahesh TR
Elastic Load Balancer
• Elastic Load Balancer, by default, routes each request independently to the registered
instance with the smallest load.
• If an EC2 instance fails, ELB automatically reroutes the traffic to the remaining running
healthy EC2 instances. If a failed EC2 instance is restored, Elastic Load Balancing restores the
traffic to that instance.
• Load Balancers only work across AZs within a region
Mahesh TR
Elastic Load Balancer
Mahesh TR
Pre-Warming ELB
• ELB works best with gradual increase in traffic.
• AWS is able to scale automatically and handle a vast majority of use cases.
• However, in certain scenarios, if there is a flash traffic spike expected or a load test cannot be
configured to gradually increase traffic, recommended to contact AWS support to have the load
balancer “pre-warmed”
• AWS will help Pre-warming the ELB, by configuring the load balancer to have the appropriate level of
capacity based on expected traffic.
Mahesh TR
Classic Load Balancer Types
• Internet Load Balancer
• An Internet-facing load balancer takes requests from clients over the Internet and distributes
them across the EC2 instances that are registered with the load balancer
• Internal Load Balancer
• Internal load balancer routes traffic to EC2 instances in private subnets
Mahesh TR
Application Load Balancer
An Application Load Balancer functions at the application layer, the seventh layer of the Open Systems
Interconnection (OSI) model. After the load balancer receives a request, it evaluates the listener rules in priority
order to determine which rule to apply, and then selects a target from the target group for the rule action using
the round robin routing algorithm. Note that you can configure listener rules to route requests to different
target groups based on the content of the application traffic. Routing is performed independently for each
target group, even when a target is registered with multiple target groups.
Mahesh TR
Benefits of Migrating from a Classic Load
Balancer
✓ Support for path-based routing. You can configure rules for your listener that forward requests based on the
URL in the request. This enables you to structure your application as smaller services, and route requests to
the correct service based on the content of the URL.
✓ Support for host-based routing. You can configure rules for your listener that forward requests based on the
host field in the HTTP header. This enables you to route requests to multiple domains using a single load
balancer.
✓ Support for routing requests to multiple applications on a single EC2 instance. You can register each instance
or IP address with the same target group using multiple ports.
✓ Support for registering targets by IP address, including targets outside the VPC for the load balancer.
✓ Support for monitoring the health of each service independently, as health checks are defined at the target
group level and many CloudWatch metrics are reported at the target group level. Attaching a target group to
an Auto Scaling group enables you to scale each service dynamically based on demand.
✓ Access logs contain additional information and are stored in compressed format.
✓ Improved load balancer performance.
Mahesh TR
Health Checks
• Load balancer performs health checks on all registered instances, whether the instance is in a
healthy state or an unhealthy state.
• Load balancer performs health checks to discover the availability of the EC2 instances, the load
balancer periodically sends pings, attempts connections, or sends request to health check the EC2
instances.
• Health check is InService for status of healthy instances and OutOfService for unhealthy ones
• Load balancer only sends requests to the healthy EC2 instances and stops routing requests to the
unhealthy instances
Mahesh TR
Listeners
• Listeners is the process which checks for connection requests from client
• Listeners are 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.
• Listeners support HTTP, HTTPS, SSL, TCP protocols
Mahesh TR
Cross-Zone
• By default, the load balancer distributes incoming requests evenly across its enabled Availability
Zones for e.g. If AZ-a has 5 instances and AZ-b has 2 instances, the load will still be distributed 50%
across each of the AZs
• Enabling Cross-Zone load balancing allows the ELB to distribute incoming requests evenly across all
the back-end instances, regardless of the AZ
• Cross-zone load balancer reduces the need to maintain equivalent numbers of back-end instances
in each Availability Zone, and improves application’s ability to handle the loss of one or more back-
end instances.
• It is still recommended to maintain approximately equivalent numbers of instances in
each Availability Zone for higher fault tolerance.
Mahesh TR
Mahesh TR
High Availability & Redundancy
• It is recommended to take advantage of the safety and reliability of geographic redundancy by
using Auto Scaling & ELB by spanning Auto Scaling groups across multiple AZs within a region
and then setting up ELB to distribute incoming traffic across those AZs.
• Incoming traffic is load balanced equally across all the AZs enabled for ELB
Mahesh TR
Access logs for Elastic Load Balancers
Mahesh TR
THANK YOU!

More Related Content

PPTX
AWS Simple Storage Service (s3)
PDF
AWS EBS
PPTX
PPTX
AWS Cloud Watch
PPT
Auto Scaling on AWS
PPTX
AWS Storage - S3 Fundamentals
PPTX
PDF
AWS RDS
AWS Simple Storage Service (s3)
AWS EBS
AWS Cloud Watch
Auto Scaling on AWS
AWS Storage - S3 Fundamentals
AWS RDS

What's hot (20)

PPTX
AWS ELB - Fundamentals
PPSX
AWS Elastic Load Balancing for AWS Architect & SysOps Certification
PPT
What is load balancer in aws and types of load balancers
PPTX
Introduction to EC2
PDF
Aws Elastic Block Storage
PPTX
Introduction to AWS VPC, Guidelines, and Best Practices
PDF
AWS EC2
PPTX
AWS SQS SNS
PPTX
AWS EC2 Fundametals
PDF
Cloudwatch: Monitoring your Services with Metrics and Alarms
PDF
Amazon EC2 notes.pdf
PDF
Aws cloud watch
PDF
AWS S3 Tutorial For Beginners | Edureka
PPTX
AWS basics
PDF
Cloudwatch: Monitoring your AWS services with Metrics and Alarms
PDF
AWS
PDF
AWS AutoScaling
PDF
Autoscaling Kubernetes
PPTX
Introduction of AWS KMS
AWS ELB - Fundamentals
AWS Elastic Load Balancing for AWS Architect & SysOps Certification
What is load balancer in aws and types of load balancers
Introduction to EC2
Aws Elastic Block Storage
Introduction to AWS VPC, Guidelines, and Best Practices
AWS EC2
AWS SQS SNS
AWS EC2 Fundametals
Cloudwatch: Monitoring your Services with Metrics and Alarms
Amazon EC2 notes.pdf
Aws cloud watch
AWS S3 Tutorial For Beginners | Edureka
AWS basics
Cloudwatch: Monitoring your AWS services with Metrics and Alarms
AWS
AWS AutoScaling
Autoscaling Kubernetes
Introduction of AWS KMS
Ad

Similar to AWS ELB (20)

PPTX
AWS_ELB_ppt.pptx
DOCX
AWS- Elastic load balancing
PPTX
Amazon Elastic Load Balancing
PDF
AWS Study Group - Chapter 10 - Matching Supply and Demand [Solution Architect...
PPTX
AWS fault tolerant architecture
PPTX
Elastic Load Balancer by Techserverglobal.pptx
PPTX
load_balancing_cloud_computing_inCLoud.pptx
PPT
clustering and load balancing
PPTX
U18ISE0006 -UNIT IV - Load Balancer - AWS.pptx
PDF
Meetup #4: AWS ELB Deep dive & Best practices
PDF
ACE - Comcore
PPTX
AWS Atlanta meetup load-balancing
PDF
Amazon Elastic Block Storage and Balancer
PDF
Clustering - october 2006
PPTX
Azure Web App services
PPTX
My Dissertation 2016
PPTX
Transforming Legacy Applications Into Dynamically Scalable Web Services
PDF
Cosmos DB at VLDB 2019
PDF
IRJET- An Improved Weighted Least Connection Scheduling Algorithm for Loa...
PPTX
Building Scalable Websites for the Cloud
AWS_ELB_ppt.pptx
AWS- Elastic load balancing
Amazon Elastic Load Balancing
AWS Study Group - Chapter 10 - Matching Supply and Demand [Solution Architect...
AWS fault tolerant architecture
Elastic Load Balancer by Techserverglobal.pptx
load_balancing_cloud_computing_inCLoud.pptx
clustering and load balancing
U18ISE0006 -UNIT IV - Load Balancer - AWS.pptx
Meetup #4: AWS ELB Deep dive & Best practices
ACE - Comcore
AWS Atlanta meetup load-balancing
Amazon Elastic Block Storage and Balancer
Clustering - october 2006
Azure Web App services
My Dissertation 2016
Transforming Legacy Applications Into Dynamically Scalable Web Services
Cosmos DB at VLDB 2019
IRJET- An Improved Weighted Least Connection Scheduling Algorithm for Loa...
Building Scalable Websites for the Cloud
Ad

More from Mahesh Raj (6)

PDF
SNS SQS SWF and Kinesis
PDF
AWS Cloud Front and Cloud Formation
PDF
AWS S3 and GLACIER
PDF
AWS Virtual Private Cloud
PDF
AWS Identity and access Managment
PDF
AWS Cloud Formation
SNS SQS SWF and Kinesis
AWS Cloud Front and Cloud Formation
AWS S3 and GLACIER
AWS Virtual Private Cloud
AWS Identity and access Managment
AWS Cloud Formation

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
A Presentation on Artificial Intelligence
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Tartificialntelligence_presentation.pptx
PDF
Mushroom cultivation and it's methods.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Getting Started with Data Integration: FME Form 101
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Network Security Unit 5.pdf for BCA BBA.
A Presentation on Artificial Intelligence
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Tartificialntelligence_presentation.pptx
Mushroom cultivation and it's methods.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Getting Started with Data Integration: FME Form 101
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
A comparative analysis of optical character recognition models for extracting...
Spectroscopy.pptx food analysis technology
Machine learning based COVID-19 study performance prediction
A comparative study of natural language inference in Swahili using monolingua...
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Unlocking AI with Model Context Protocol (MCP)
SOPHOS-XG Firewall Administrator PPT.pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...

AWS ELB

  • 1. Mahesh TR Elastic Load Balancer (ELB)
  • 2. Mahesh TR Elastic Load Balancer – ELB • Elastic Load Balancing allows the incoming traffic to be distributed automatically across multiple healthy EC2 instances. • ELB serves as a single point of contact to the client. • ELB helps to being transparent and increases the application availability by allowing addition or removal of multiple EC2 instances across one or more availability zones, without disrupting the overall flow of information.
  • 3. Mahesh TR ELB Benefits • is itself a distributed system that is fault tolerant and actively monitored • abstracts out the complexity of managing, maintaining, and scaling load balancers • can also serve as the first line of defence against attacks on network. • can offload the work of encryption and decryption (SSL termination) so that the EC2 instances can focus on their main work • offers integration with Auto Scaling, which ensures enough back-end capacity available to meet varying traffic levels • are engineered to not be a single point of failure
  • 4. Mahesh TR Elastic Load Balancer • Elastic Load Balancer, by default, routes each request independently to the registered instance with the smallest load. • If an EC2 instance fails, ELB automatically reroutes the traffic to the remaining running healthy EC2 instances. If a failed EC2 instance is restored, Elastic Load Balancing restores the traffic to that instance. • Load Balancers only work across AZs within a region
  • 6. Mahesh TR Pre-Warming ELB • ELB works best with gradual increase in traffic. • AWS is able to scale automatically and handle a vast majority of use cases. • However, in certain scenarios, if there is a flash traffic spike expected or a load test cannot be configured to gradually increase traffic, recommended to contact AWS support to have the load balancer “pre-warmed” • AWS will help Pre-warming the ELB, by configuring the load balancer to have the appropriate level of capacity based on expected traffic.
  • 7. Mahesh TR Classic Load Balancer Types • Internet Load Balancer • An Internet-facing load balancer takes requests from clients over the Internet and distributes them across the EC2 instances that are registered with the load balancer • Internal Load Balancer • Internal load balancer routes traffic to EC2 instances in private subnets
  • 8. Mahesh TR Application Load Balancer An Application Load Balancer functions at the application layer, the seventh layer of the Open Systems Interconnection (OSI) model. After the load balancer receives a request, it evaluates the listener rules in priority order to determine which rule to apply, and then selects a target from the target group for the rule action using the round robin routing algorithm. Note that you can configure listener rules to route requests to different target groups based on the content of the application traffic. Routing is performed independently for each target group, even when a target is registered with multiple target groups.
  • 9. Mahesh TR Benefits of Migrating from a Classic Load Balancer ✓ Support for path-based routing. You can configure rules for your listener that forward requests based on the URL in the request. This enables you to structure your application as smaller services, and route requests to the correct service based on the content of the URL. ✓ Support for host-based routing. You can configure rules for your listener that forward requests based on the host field in the HTTP header. This enables you to route requests to multiple domains using a single load balancer. ✓ Support for routing requests to multiple applications on a single EC2 instance. You can register each instance or IP address with the same target group using multiple ports. ✓ Support for registering targets by IP address, including targets outside the VPC for the load balancer. ✓ Support for monitoring the health of each service independently, as health checks are defined at the target group level and many CloudWatch metrics are reported at the target group level. Attaching a target group to an Auto Scaling group enables you to scale each service dynamically based on demand. ✓ Access logs contain additional information and are stored in compressed format. ✓ Improved load balancer performance.
  • 10. Mahesh TR Health Checks • Load balancer performs health checks on all registered instances, whether the instance is in a healthy state or an unhealthy state. • Load balancer performs health checks to discover the availability of the EC2 instances, the load balancer periodically sends pings, attempts connections, or sends request to health check the EC2 instances. • Health check is InService for status of healthy instances and OutOfService for unhealthy ones • Load balancer only sends requests to the healthy EC2 instances and stops routing requests to the unhealthy instances
  • 11. Mahesh TR Listeners • Listeners is the process which checks for connection requests from client • Listeners are 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. • Listeners support HTTP, HTTPS, SSL, TCP protocols
  • 12. Mahesh TR Cross-Zone • By default, the load balancer distributes incoming requests evenly across its enabled Availability Zones for e.g. If AZ-a has 5 instances and AZ-b has 2 instances, the load will still be distributed 50% across each of the AZs • Enabling Cross-Zone load balancing allows the ELB to distribute incoming requests evenly across all the back-end instances, regardless of the AZ • Cross-zone load balancer reduces the need to maintain equivalent numbers of back-end instances in each Availability Zone, and improves application’s ability to handle the loss of one or more back- end instances. • It is still recommended to maintain approximately equivalent numbers of instances in each Availability Zone for higher fault tolerance.
  • 14. Mahesh TR High Availability & Redundancy • It is recommended to take advantage of the safety and reliability of geographic redundancy by using Auto Scaling & ELB by spanning Auto Scaling groups across multiple AZs within a region and then setting up ELB to distribute incoming traffic across those AZs. • Incoming traffic is load balanced equally across all the AZs enabled for ELB
  • 15. Mahesh TR Access logs for Elastic Load Balancers