Tuesday 8 August 2017

thumbnail

How to configure Classic Load Balancer in AWS

How to configure Classic Load Balancer in AWS


Introduction 

Load Balancer is used to distributes the traffic and provide fault tolerance avaibility to your server.

  • ELB can be public or private ( Depends on subnet you choose to launch it.
  • It is highly recommended that you choose 2 subnets of different AZ to launch ELB.
  • You can move Web-server to Private and keep only ELB in Public Subnet. Within a VPC all instance can talk to each other (Irrespective of Subnet).
  • Traffic get distributed between 2 AZs in round-robin fashion.
  • Within AZ, the instance with least number of open connection will get the next request.
  • ELB should always be accessed using DNS and not IP.
  • Define health check with care and look at the status of the instance (In service or not).
 
AWS has divided the Load Balancer into two type :-
1) Application Load Balancer
2) Classic Load Balancer. 
 
Today we will cover the Classic Load Balancer in this tutorial

Note :- This tutorial assumes that you have two instance running on 2 different AZ with web server installed for this tutorial to complete.

1. Login to AWS console launch an instance in 2 different AZ :-

 
2. Configure the Load Balancer from here :-

 
  Now Select Classic Load Balancer 


Give name to your Load Balancer and VPC will remain default untouched for this tutorial. Also we have configured the Listener on which Load Balancer will listen the request for health check.


Healthy warning will appear which say that use HTTPS instead of HTTP for safety and security.



Select the security group if you have created before or you can go with default and configure it later.


Configure the health check as per your requirement and set threshold time etc according to your need.


Add your instance for Traffic distribution and Load Balancing.


Add Tag and give name for easy searching.


In the last Review your setting and Launch the Load Balancer.


 So we have successfully created the Load Balancer 


We have got the unique link for public access for that we have to create a CNAME record in Domain DNS on registrar site.


Like below add the CNAME record 


Now we will browse with CNAME I have created like below :-
http://server.techs2resolve.in/


That's it 
Enjoy using it.
Please do Comment Like and Sharing.
Tags :

Subscribe by Email

Follow Updates Articles from This Blog via Email

1 Comments

avatar

Each site gets a piece of the all out space of many destinations that can have. This is the most well known alternative and generally utilized for building little venture sites like blogsArticle Search, or portfolios. https://onohosting.com/

Reply Delete