SlideShare a Scribd company logo
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Dynamic Website with Load Balancing
AWS Meetup Team
Ahmedabad Amazon AWS Cloud Meetup
Ahmedabad
28 March 2015
1 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Overview
1 Speaker’s Note
2 Architecture Diagram
3 EC2
4 Deploy Your App
5 Commands
6 ELB
7 Route 53
8 Clean up
2 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Speaker’s Note
Sham Arsiwala
• Red Hat Certified Architect
• 14+ years of exp. with Linux, Virtulization and Cloud
• mailid: sham.arsiwala@electromech.info
• Ph. No: 9099099855
Jhalak Modi
• Cloudian
• mailid: jhalak.modi@electromech.info
• Ph. No: 9099099853
3 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Architecture Diagram
4 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Elastic Compute Cloud
Elastic Compute Cloud
5 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Elastic Compute Cloud (EC2) is...
• Hardware As A Service
• A Web service that provides resizable compute capacity in
the cloud.
• Designed to make Web-scale computing easier for
developers.
• A simple Web service interface that provides complete
control of your computing resources
• create/destroy from the command line
6 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Concepts
• Amazon Machine Image (AMI):
• Bootable root disk
• Pre-defined or user-built
• Catalog of user-built AMIs
• OS: Fedora, Centos, Gentoo, Debian, Ubuntu, Windows
Server
• Instance:
• Running copy of an AMI
• Launch in less than 2 minutes
• Start or stop programmatically
• Network Security Model:
• Explicit access control
• Security groups
• Inter-service bandwidth is free
7 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Using EC2
• Create an Amazon Machine Image (AMI).
• Configure security and network access.
• Choose the type(s) of instance you want to run.
• Start, terminate, and monitor as many instances of your
AMI as needed, using the web service APIs.
• Pay for the instance-hours and bandwidth that you
actually consume.
8 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Tasks to be Performed
• create and configure your security group
• Launch Your EC2 Instance
• Select EBS
• Choose Key Pair
• Configure Apache, php and MySQL
• Create AMI
9 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Concusion
• Reduces the time required to obtain and boot new server
instances to minutes
• Quickly scales capacity, both up and down, as your
computing requirements change
• Changes the economics of computing
• Pay only for capacity that you actually use
10 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Deploy Your App
• Connect to Your Linux Instance
• ssh -i my-key-pair.pem
ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com
• Configure the EC2 Instance
• Start the Web Server
• Install the App
• Test the Website
• Update Permissions
• Create a Custom AMI
11 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Commands
# chmod 600 yourkey.pem
# ssh -i yourkey.pem centos@1.2.3.4
# sudo -i
# yum update
# yum install httpd mariadb-server mariadb php php-mysql
php-gd php-pear php-mbstring php-pgsql vim
# systemctl status httpd.service
# systemctl start httpd.service
# systemctl enable httpd.service
# systemctl start mariadb.service
# systemctl enable mariadb.service
# mysql secure installation
12 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Commands (Continued..)
# mysql -u root -predhat@123
mysql>CREATE USER ’admin’@’localhost’ IDENTIFIED
BY ’redhat@123’;
mysql>CREATE DATABASE ‘wordpress-db‘;
mysql>GRANT ALL PRIVILEGES ON ‘wordpress-db‘.*
TO ”admin”@”localhost”;
mysql>FLUSH PRIVILEGES;
mysql>exit
# cd /var/www/html/
# vim info.php
<?php phpinfo(); ?>
13 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Commands (Continued..)
# yum install wget unzip net-tools
# wget http://wordpress.org/latest.zip
# unzip -q latest.zip -d /var/www/html/
# sudo rsync -avP /var/www/html/wordpress/
/var/www/html/
# cp wp-config-sample.php wp-config.php
#vim wp-config.php
define(’DB NAME’, ’wordpress-db’);
define(’DB USER’, ’admin’);
define(’DB PASSWORD’, ’your strong password’);
define(‘DB HOST’, ‘localhost’);
14 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Commands (Continued..)
Enter public IP of EC2 Instance in the web browser (either the
public DNS address for your instance, or that address followed
by the blog folder)
Enter the remaining installation information into the
WordPress installation wizard.
• Site Title: Enter a name for your WordPress site.
• Username: Enter a name for your WordPress
administrator. For security purposes you should choose a
unique name for this user, since this will be more difficult
to exploit than the default user name, admin.
• Password: Enter a strong password, and then enter it
again to confirm. Do not reuse an existing password, and
make sure to store this password in a safe place.
• Your E-mail: Enter the email address you want to use for
notifications.
• Click Install WordPress to complete the installation. 15 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Elastic Load Balancing
Elastic Load Balancing(ELB)
16 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Overview
Elastic Load Balancing automatically distributes incoming
application traffic across multiple Amazon EC2 instances in the
cloud. It enables you to achieve greater levels of fault tolerance
in your applications, seamlessly providing the required amount
of load balancing capacity needed to distribute application
traffic.
17 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Benefits and Use Cases
Benefits
• Available: Achieve higher levels of fault tolerance for your
applications
• Elastic: automatically scales its request handling capacity
to meet the demands of application traffic
• Secure: provide robust networking and security features
18 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Benefits and Use Cases
Use Cases
• Achieving Even Better Fault Tolerance for Your
Applications
• DNS Failover for Elastic Load Balancing
• Auto Scaling with Elastic Load Balancing
• Easy to create an internet-facing entry point into your
VPC or to balance load between tiers of your application
within your VPC
19 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Tasks to be Performed
• Configure Load Balancing
• Assign Security Groups
• Test Your Load Balancer
20 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Tasks to be Performed
• Register a Domain Name
• Allocate Name Servers to Route Traffic for Your Domain
• Create Record Sets for Your Domain and Subdomain
• Set Up a DNS Provider
21 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Clean up
• Delete the Amazon Route 53 Hosted Zone
• Delete the Amazon Route 53 Hosted Zone
• Delete the Auto Scaling Group
• Delete the Load Balance
• Delete Your Custom AMI
• Terminate the DB Instance
22 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Queries...?
23 / 24
Dynamic
Website with
Load
Balancing
AWS Meetup
Team
Speaker’s
Note
Architecture
Diagram
EC2
Deploy Your
App
Commands
ELB
Route 53
Clean up
Thank You...
24 / 24

More Related Content

What's hot (11)

PDF
Running Docker clusters on AWS (June 2016)
Julien SIMON
 
PDF
AWS CloudFormation (February 2016)
Julien SIMON
 
PDF
Using Amazon CloudWatch Events, AWS Lambda and Spark Streaming to Process EC...
Julien SIMON
 
PPTX
Container Management with Amazon ECS
AWS Germany
 
PPTX
AWS ELB Tips & Best Practices
ChinaNetCloud
 
PPTX
Sitecore on AWS
Robert Senktas
 
PDF
Serverless Architectures on AWS Lambda
Serhat Can
 
PDF
AWS Code{Commit,Deploy,Pipeline} (June 2016)
Julien SIMON
 
PDF
An introduction to serverless architectures (February 2017)
Julien SIMON
 
PDF
What is AWS lambda?
Whizlabs
 
PPTX
Let's Talk About Serverless - Focusing on AWS Lambda
Okis Chuang
 
Running Docker clusters on AWS (June 2016)
Julien SIMON
 
AWS CloudFormation (February 2016)
Julien SIMON
 
Using Amazon CloudWatch Events, AWS Lambda and Spark Streaming to Process EC...
Julien SIMON
 
Container Management with Amazon ECS
AWS Germany
 
AWS ELB Tips & Best Practices
ChinaNetCloud
 
Sitecore on AWS
Robert Senktas
 
Serverless Architectures on AWS Lambda
Serhat Can
 
AWS Code{Commit,Deploy,Pipeline} (June 2016)
Julien SIMON
 
An introduction to serverless architectures (February 2017)
Julien SIMON
 
What is AWS lambda?
Whizlabs
 
Let's Talk About Serverless - Focusing on AWS Lambda
Okis Chuang
 

Viewers also liked (6)

KEY
AWSを使ったトラッキングログ収集
Ryu Kobayashi
 
PPTX
AWS Basics
OptimalBI Limited
 
PPTX
Buffer overflow attacks
Joe McCarthy
 
PPTX
Flowchart Diagram Templates by Creately
Creately
 
PDF
Mobile-First SEO - The Marketers Edition #3XEDigital
Aleyda Solís
 
PDF
Build Features, Not Apps
Natasha Murashev
 
AWSを使ったトラッキングログ収集
Ryu Kobayashi
 
AWS Basics
OptimalBI Limited
 
Buffer overflow attacks
Joe McCarthy
 
Flowchart Diagram Templates by Creately
Creately
 
Mobile-First SEO - The Marketers Edition #3XEDigital
Aleyda Solís
 
Build Features, Not Apps
Natasha Murashev
 
Ad

Similar to Meeyup aws-loadbalancing-28032015 (20)

PDF
Building A Dynamic Website - 31st Jan 2015
Jhalak Modi
 
PPTX
Modernizing DevOps
CloudHesive
 
PDF
A 60-minute tour of AWS Compute (November 2016)
Julien SIMON
 
PDF
A 60-mn tour of AWS compute (March 2016)
Julien SIMON
 
PDF
[Jun AWS 201] Technical Workshop
Amazon Web Services Korea
 
PDF
AWS Training.pdf
SpiritsoftsTraining
 
PDF
AWS Training.pdf
SpiritsoftsTraining
 
PPTX
AWS 101 - Amazon Web Services
Enmanuel Sosa G.
 
PDF
Overview of AWS Building Blocks
Satish Raghavan
 
PDF
Devnexus slides - Amazon Web Services
Tom Elrod
 
PDF
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Emerson Eduardo Rodrigues Von Staffen
 
PDF
Refactoring Web Services on AWS cloud (PaaS & SaaS)
IRJET Journal
 
ODP
Bostonrb Amazon Talk
Brian Kaney
 
PDF
AWS architect certification course
wiTTyMinds1
 
PPTX
Architecting for AWS Cloud - let's do it right!
Misha Hanin
 
PPTX
DevOps on AWS
CloudHesive
 
PPTX
AWS Cloud Computing Training.pptxjfjerhfgergfejrfh
AirdropCrypto
 
PPTX
Delivering High-Availability Web Services with NGINX Plus on AWS
NGINX, Inc.
 
PPTX
AWS re:Invent 2017 re:Cap
Christian Melendez
 
PDF
Barcamp Macau 2014 - Introduction to AWS
Wong Hoi Sing Edison
 
Building A Dynamic Website - 31st Jan 2015
Jhalak Modi
 
Modernizing DevOps
CloudHesive
 
A 60-minute tour of AWS Compute (November 2016)
Julien SIMON
 
A 60-mn tour of AWS compute (March 2016)
Julien SIMON
 
[Jun AWS 201] Technical Workshop
Amazon Web Services Korea
 
AWS Training.pdf
SpiritsoftsTraining
 
AWS Training.pdf
SpiritsoftsTraining
 
AWS 101 - Amazon Web Services
Enmanuel Sosa G.
 
Overview of AWS Building Blocks
Satish Raghavan
 
Devnexus slides - Amazon Web Services
Tom Elrod
 
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Emerson Eduardo Rodrigues Von Staffen
 
Refactoring Web Services on AWS cloud (PaaS & SaaS)
IRJET Journal
 
Bostonrb Amazon Talk
Brian Kaney
 
AWS architect certification course
wiTTyMinds1
 
Architecting for AWS Cloud - let's do it right!
Misha Hanin
 
DevOps on AWS
CloudHesive
 
AWS Cloud Computing Training.pptxjfjerhfgergfejrfh
AirdropCrypto
 
Delivering High-Availability Web Services with NGINX Plus on AWS
NGINX, Inc.
 
AWS re:Invent 2017 re:Cap
Christian Melendez
 
Barcamp Macau 2014 - Introduction to AWS
Wong Hoi Sing Edison
 
Ad

Recently uploaded (20)

PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
The Future of Artificial Intelligence (AI)
Mukul
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 

Meeyup aws-loadbalancing-28032015