Lab 8 Using ELB to Scale Applications

Lab 8 Using ELB to Scale Applications

By using Elastic Load Balancer in Amazon use to distributes incoming application traffic across multiple Amazon EC2 Instance. It is really useful to reduce chances about fault tolerance in your applications. In Amazon Elastic Load Balancer there are two different option while creating this one is Classic and second is Application Load Balancer. In Classic Load Balancer routes traffic base on application or on base on network level information but in Application Load Balancer traffic based on advanced application level information that includes the content of the request.

This lab Will cover following steps which is as bellow,

  1. Create Elastic Load Balancer
  2. Add Instance in ELB
  3. check the status of the Instance for this ELB
  4. Run the application using ELB DNS address and check the IP’s

 

 

Step 1. To create ELB just click on the services on the AWS main console and click on EC2 which is in compute option,

 

After open a main dashboard of the EC2 just click on the Load Balancers to create load balancer,

 

After that click on Create Load Balancer,

 

In this page there are two option but I would like to go with classic load balancer,

 

After that select the type of the ELB enter the name of the Load Balancer, and use HTTP with port number 80,

 

Then Select a same security group which is selected in the EC2 Instance and click on next,

 

After that select TCP protocol with port number 80 for the ping, just because of this action this ELB able to attach a Instance and make it in service if you take something else then you are not able to pint that EC2 Instance and that instance will never come in service status,

 

After gave a TCP fr ping select for which Instance you want to select and add in to this ELB,

 

At this point just tag a name and also a value for better use to know for which meaning of this ELB would created,

 

After creating a ELB just select the created ELB and see in to the description and copy the DNS name for further use,

 

After that DNS name just click on the Instance tab and see the status of that selected Instance, It must be in service.

 

After that just past the DNS name on the Browser followed by the application name and hit enter, you would able to see a server IP and the URL over there,

 

Just refresh the page or open it in to the new tab using same URL you would see the server IP will be change for every refresh,

 

Conclusion
Elastic Load Balancer use to divide a load of the Instance in to the different different instance so it is helps us to increase fault tolerance of the application. You can add many instance in one single ELB and divide a incoming traffic in all of them so the response time is also fast and make process fast.

Budget Plan
With Elastic Load Balancing, you only pay for what you use. You are charged for each hour or partial hour your load balancer is running and for each GB of data transferred through your load balancer. You will be charged at the end of each month for your Elastic Load Balancing resources actually consumed.

It depend on which region you are going to assign Instance like one Instance from US East and second is from Asia Pacific so the cost will be also different like for Asia Pacific they will charge you $0.028 per Elastic Load Balancer per hour and also $0.008 per GB data processed by Elastic Load Balancer.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s