Lab 11:Load Balancer
What is Load Balancer ? Why we use it?
It Automatically distribute incoming traffic across mutiple targets such as EC2 instances containers,IP addresses,and lambda functions.It can handle have varying load of your applications traffic in a single availability zone or Cross multiple availability zones.
There are Three types of load Balancers are there:
1.Classic load balancer--------------->It provides basic loading balancing across multiple EC2 instances and operates at both the request level and connection level.It is intended for applications that were built within the EC2 -classic network.
2.Application Load Balancer----------------->it provides advanced request routing targeted at delivery of modern application architecture,including ,microservices and container-based applications.
3.Networking load Balancer ------------------>It is capable of hadling millions of request per second while
maintaining ultra-low latencies.It is optimized to handle sudden and volatile traffic patterns while using a single static ip address per availability Zone.
Some key words:
High availability
Target groups
Health check
Lab :Creating a classic load balancer
Go to EC2 dashboard select load balancer
Click on load balancer
Select classic load balancer
Give a name to load balancer
Leave as default rest
And click on security group give load balancer security group
Click configure security settings
click on Next
Leave as default and click on EC2 instances
Select two webservers and click on add tags
Click on review and create
click on create
Load balancer is created
Lab: Creating an application load balancer
Go to the Ec2 dashboard,select load balancer
Create alb load balancer
Select alb load balancer
Give a name to load balancer
Leave as Default
Come to availability zone select all availability zone
Then click on security settings
Leave as a default click on configure setting group
Select an existing security group
Select alb security group
click on Next
Next click on routing settings
Give a name to target group
In health check give index.hmtl
Click on next register targets
Click on review
click on create
Comments
Post a Comment