Day41 ----> 90DaysOfDevOps Challenge @TWS

Day41 ----> 90DaysOfDevOps Challenge @TWS

Day 41: Setting up an Application Load Balancer with AWS EC2 πŸš€ ☁

LB2

What is Load Balancing?

Load balancing is the distribution of workloads across multiple servers to ensure consistent and optimal resource utilization. It is an essential aspect of any large-scale and scalable computing system, as it helps you to improve the reliability and performance of your applications.

Elastic Load Balancing:

Elastic Load Balancing (ELB) is a service provided by Amazon Web Services (AWS) that automatically distributes incoming traffic across multiple EC2 instances. ELB provides three types of load balancers:

Read more here

  1. Application Load Balancer (ALB) - operates at layer 7 of the OSI model and is ideal for applications that require advanced routing and microservices.

    Read more here

  2. Network Load Balancer (NLB) - operates at layer 4 of the OSI model and is ideal for applications that require high throughput and low latency.

    Read more here

  3. Gateway Load Balancer (GLB) - A Gateway Load Balancer operates at layer 3 of the OSI model. Gateway Load Balancers use Gateway Load Balancer endpoints to securely exchange traffic across VPC boundaries. Use Gateway Load Balancers to deploy, scale, and manage virtual appliances, such as firewalls.

    Read more here

Task 1:

  • Launch 2 EC2 instances with an Ubuntu AMI and use User Data to install the Apache Web Server.

image

image

image

image

  • Modify the index.html file to include your name so that when your Apache server is hosted, it will display your name also do it for 2nd instance which includes " TrainWithShubham Community is Super Awesome :) ".

image

  • Open your web browser and access HostIP:80 for both ec2 instances

image

image

Task 2:

  • Create an Application Load Balancer (ALB) in EC2 using the AWS Management Console.

image

image

image

image

image

image

image

image

  • Add EC2 instances that you launched in task-1 to the ALB as target groups.

image

  • Verify that the ALB is working properly by checking the health status of the target instances and testing the load-balancing capabilities.

image

image

image

LoadBalancer

Happy Learning! πŸ˜ƒ

Day 41 task is complete!

90DaysOfDevOps TasksπŸ‘‡

github.com/Chaitannyaa/90DaysOfDevOps.git

Chaitannyaa Gaikwad | LinkedIn

Β