Upload
santoshe
View
35
Download
2
Embed Size (px)
DESCRIPTION
AWS
Citation preview
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-aws/ 1/12
HOW TO DEPLOY HIGH AVAILABILITY AND LOAD BALANCING IN AMAZON AWS
Blog How to deploy high availability and load balancing in Amazon AWS
Jun 27 2014
How to deploy high availability and load balancing in Amazon AWS
This article will be about the high availability and load balancing options in Amazon AWS.
Let’s suppose that you have a website that you are hosting on a physical server.
Time goes by and you have more and more visitors, each of them using little from the serverresources (memory, CPU). Due to this, the website will be slower and the content will not beprovided.
What do you do? You either replace that server with one more powerful or buy another oneand use it in parallel with the older one.
In case you go with the first option, you will have single point of failure. The service will stop ifthe server will fail.
In case you go with the second option, you will not have the single point of failure. If you loseone server, you will see a degradation of the service, but it will still work.
To go with the second option, you need to configure the two servers in such a way that bothcould serve the users and in the eventuality of a failure, one could take all the load.
This implies that you need to configure some sort of load balancing on the servers. Perhapsadd another server that will act as a proxy for the two servers.
This means you need to have the technical skills to configure this. And more important is tohave the skills to troubleshoot this solution.
The scope of the article is not to show you how you can deploy such configuration on Linux orWindows servers, but to show you how you can achieve something like this on Amazon AWS.
The assumption is that you have a server with Linux on it. It can be any kind of server,physical or a virtual one.
For the purpose of this article, I will assume that you just finished practicing what you’velearned in this article, Translating your Windows/Linux server skills for the cloud: How todeploy a server in Amazon AWS.
Other articles by Paris Arau
GNS3 Labs for CCNA: Quality of ServiceConfiguration and Verification
Amazon Web Services: Understanding IAM –Users, Groups and Signin Credentials
Amazon AWS – Understanding EC2 Pricing
Amazon AWS – Understanding EC2 Key Pairsand How they are Used for Windows and LinuxInstances
Book Review: “Cisco Companion Guide –Switched Networks”
Popular Post
Categories
Android
Business Skills
Cisco
Cisco Exam Prep Exercises and Labs
Cloud Computing
Developer Training
IT Training
Leadership
Microsoft
Project Management
Software Development
Uncategorized
Virtualization
VMware
IT TRAINING SOFTWARE DEVELOPMENT BUSINESS SKILLS FREE TRAINING SCHEDULE ABOUT
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-aws/ 2/12
Right now I have two Linux servers on AWS which run WordPress. The content that I put onthe two servers is almost identical. The WordPress was manually installed on both serversand an identical post was created on both of them.
This is a screenshot of the WordPress instance from the first server:
And this is from the second server:
At the very first sight, everything seems to be identical.
But if you would look better you would see that the tag line for the first server says“WordPress Blog – Server 1″ and for the second server is “WordPress Blog – Server 2″. Thissmall difference will be used later to demonstrate the load balancing.
Of course in production, you will need to have identical content on all the servers serving thecontent. It will be embarrassing that two users get different information, based on whichserver their requests are landing.
Amazon AWS allows you to configure an Elastic Load Balancer (ELB). In a short description,you will create a frontend resource that will be accessed by the users. This will act like aproxy. That frontend resource will access one of the servers and provide the information from
16 Comments. By : Nitin Vashisht
GNS3 Lab: Troubleshoot and Resolve RoutingIssues —- OSPF
15 Comments. By : Nitin Vashisht
GNS3 Lab: Troubleshoot andResolve Routing Issues—BGP
9 Comments. By : Peterson Amar
GNS3 Lab: Introduction toMPLS Layer 3 VPN Part 1
Tabs
ACL Amazon Web Service ASA
Book Review CCNACCNA PrepCCNA Routing & Switching prep
CCNA Security
CCNA Security PrepCCNA Voice Prep CCP Prep
Follow @IntenseSchool
Tag Cloud
July 2014 (26)June 2014 (26)May 2014 (24)April 2014 (26)March 2014 (27)February 2014 (19)January 2014 (22)December 2013 (25)November 2013 (20)October 2013 (25)September 2013 (22)August 2013 (21)July 2013 (26)June 2013 (32)May 2013 (24)April 2013 (15)March 2013 (12)
Intense School Resources: CCNA,MCSE, VMware, PMP Articles andTutorials
473Like
Archives Comments Learn More
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-aws/ 3/12
there to the user. The next user will be served by the proxy from the next server and so on.You can add multiple servers for which you can configure an ELB. You are not limited to onlytwo like in this article.
From the AWS console, choose EC2:
From the left column, choose Instances under INSTANCES section:
You can see the two servers that will provide the content:
cisco Cisco ASA
Cloud Computing
Demystifying Certification
Demystifying Certifications EIGRP
GNS3 GNS3 lab GNS3 labs
IPv6 lab LAN Linux
MCSE prep microsoft NAT
Network Engineer Network Reliability
Network Security OSPF
Packet Tracer PMP Prep
project management Quiz
security Server 2012
Server 2012 R2 SharePoint SQL
Tips and Tricks Troubleshooting
Virtualization VPN WAN
Testimonials
“AWESOME! My instructors wide range ofexperience (PMP, MSCE, Security+, CISSP,etc.) really adds to the class. She had awonderful sense of humor and related tothe audience well. Wonderful resource.”
– Bob Hillhouse, The University ofTennessee, Knoxville
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-aws/ 4/12
From the same left column, choose ‘Load Balancers’ under NETWORK & SECURITY sectionto begin the process of ELB creation:
Configure a name of your choice for the ELB and continue:
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-aws/ 5/12
Configure the health check options and continue. In this specific case, I configured the ELB tomonitor the presence and reachability of /wp-blog/. I also altered some default timers tospeed up the failure detection or ability to be able to serve again. The drawback for havingfaster failure detection is that you add computation burden on the system.
Assign the security group and continue:
Add the instances that you want to be part of this ELB and continue:
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-aws/ 6/12
Review what you did and create the ELB. You will be present with the list of available ELBs:
Right now, the ELB is not functional. This is seen on Status where I have “0 of 2 instances inservice.” A little bit later the status will change to “2 of 2 instances in service.” If you click onthat, you will be directed to Instances tab:
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-aws/ 7/12
Now both instances are in InService state and one can access the ELB by using the valuefrom “DNS Name” column. As a matter of fact, the WordPress blog can be accessed using:http://servers-lb-860192626.us-east-1.elb.amazonaws.com/wp-blog/
There is some monitoring done automatically which can be accessed by using the Monitoringtab. As you can see, we have two healthy hosts in the ELB:
Let’s access this link twice and confirm that we will get to two different servers:
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-aws/ 8/12
We landed on Server 2 and the next time when we access the same link, we land on Server1:
As you can see the HTTP requests are balanced between the two instances that are part ofthe ELB.
Using ELB saves you from having headaches on how to configure load balancers. You can doit very quickly using the AWS feature.
As a side note, AWS has a template for a high availability WordPress deployment. It’s almostidentical to the one that you can use to deploy a single instance of WordPress.
This can be deployed by choosing CloudFormation from the AWS console:
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-aws/ 9/12
Create a new stack and choose the WordPress High Available template:
Continue through the steps, review what you did and then create the stack. You will seesomething telling you that the deployment is still in progress:
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-a… 10/12
After quite some time (in this my case, around 25 minutes), the process is finished and toaccess the WordPress from a browser, I have to go to Outputs tab to get the URL:
When I’m accessing the URL (http://WP-Multi-ElasticL-LRNL47QRTP85-515513009.us-east-1.elb.amazonaws.com/wordpress), I’m redirected to the WordPress initial installation process:
From this point on, everything is the same as with the manual installation of WordPress.
When you choose this template, AWS automatically deploy the EC2 instances, the ELB andthe RDS database.
This is easier than you having to deploy the EC2 instances, then ELB and so on. But theproblem is that the templates are available for specific Web applications.
If you have your in-house built application, then you will have to do this manually as we did inthe first part of the article.
As you can see, using AWS ELB is a fast method to improve the service provided to the usersby adding high availability and load balancing.
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-a… 11/12
Bio Latest Posts
Paris Arau
Paris Arau is a network engineer with extensive knowledge of Cisco andJuniper routing and switching platforms. He is CCIE R&S #25649 andJNCIE-M #774 and also CCIP certified. He has a bachelor’s degree incomputer networking and a master degree in quality and reliabilityengineering. With a strong service provider background in his currentrole, he is supporting the largest service providers and enterprises inEMEA region. His blog can be found at http://parisarau.ro.
SUBMIT COMMENT
Leave a Reply
Name
(required)
(will not be published) (required)
Website
371Like
© 19972010 Intense School and
InfoSec Institute. All Rights Reserved.
Terms & Conditions.
PMP is a registered mark of the Project
Management Institute, Inc.
For further information about Intense
Address
7310 North Ave.Suite 4D Elmwood Park, IL 60707
Phone : 1.877.290.9507
Email :[email protected]
Company
About Intense School
Press & Media
Privacy Policy
On the web
InfoSec Institute
Intense School @ ISI
Boot Camp Locations:
Atlanta, GA
Washington DC Metro
San Francisco, CA Bay Area
San Diego, CA
Orlando, FL
New York, NY
Seattle, WA
Cleveland, OH
7/24/2014 How to deploy high availability and load balancing in Amazon AWS | Intense School
http://resources.intenseschool.com/translating-your-windows-linux-server-skills-for-the-cloud-how-to-deploy-high-availability-and-load-balancing-in-amazon-a… 12/12
School, click here or contact us at 877
2909507.
InfoSec Institute.net & InfoSecInstitute.org
InfoSec Institute on LinkedIn
InfoSec Institute on YouTube
InfoSecInstitute on Facebook
InfoSecInstitute on SlideShare
Dallas, TX
Las Vegas, NV
Colorado Springs, CO
Chicago, IL