How to configure ELB(Elastic Load Balancer) and add web-servers in AWS

To Configure ELB (ELASTIC LOAD BALANCER) on AWS

Introduction:

Load balancing involves efficiency in allocating incoming network traffic across a group of backend servers, also known as a server farm or server pool. In this manner, a load balancer performs the following functions including Distributes client requests or network load efficiently across multiple servers that also distributes a set of tasks over a set of resources, with the aim of making the process more efficient.

Steps to Configure ELB

Login to your AWS management console and run your any EC2 Instance as that is shown here Now connect this instance to the terminal using the following way And now in back end of instance I have installed the apache web server and created two html files index.html and healthcheck.html

Now came back to your instance here you have been provided with public and private ip, by using public ip you can access your instance from outside bound. Now move downside in amazon management console in left pane you will find load balancer go over there Now create new load balancer From here select load balancer type Configure and define load balancer Assign the security group for your load balancer you need to make aware here that what the security group you are going to select here that must be allow all the http traffic from itself This is the little SSL warning message because of this is the demo setup so leave it Now configure health check will the credential here

Now I am going to add EC2 instance to our configured load balancer These all the description for the Load Balancer

Here in instance section you will see that service is out and not configured, because of it will take some time to check the health status There is another one thing important to remember is that everytime there is only DNS name is set up with the Load balancer. By this DNS load balancer will load the web server I have checked the DNS on Browser it is loaded with the web server at AWS and also service is now active Now with that DNS I am accessing the health check file. With this Load Balancer configuration comes to an end

FAQ
Q
Which protocols does an Application Load Balancer support?
A
An Application Load Balancer supports load balancing of applications using HTTP and HTTPS (Secure HTTP) protocols.
Q
Which operating systems does an Application Load Balancer support?
A
An Application Load Balancer supports targets with any operating system currently supported by the Amazon EC2 service.
Q
Is there an SLA for load balancers?
A
Yes, Elastic Load Balancing guarantees a monthly availability of at least 99.99% for your load balancers (Classic, Application or Network).
Q
Can we privately access Elastic Load Balancing APIs from my Amazon Virtual Private Cloud (VPC) without using public IPs?
A
Yes, you can privately access Elastic Load Balancing APIs from your Amazon Virtual Private Cloud (VPC) by creating VPC endpoints.
Q
How do we decide which load balancer to select for my application?
A
Elastic Load Balancing supports three types of load balancers. You can select the appropriate load balancer based on your application needs.