Professional Documents
Culture Documents
Harish Ganesan
Co founder & CTO
8KMiles
www.twitter.com/harish11g
http://www.linkedin.com/in/harishganesan
Design for Failure – recent AWS outage
Main Website in
AWS region 1
AWS West/Europe/APAC
Region
AWS USA East Region
Main Website in
AWS region 2
Blue print 1: HA across AWS regions
• Leverages AWS Inter Region application hosting
• Website is hosted on multiple Regions on AWS (
example USA east – west , USA –EUR etc)
• GEO traffic distribution and HA across continents is
possible in this Architecture blueprint
• Suitable for companies which demand high level of
Scalability, load balancing and Availability across the
globe
• This blueprint can be applied currently to all 5 AWS
regions ( USA East ,USA West, EU , APAC –Singapore
and APAC-Tokyo)
Blue Print 1 : Website in Multiple AWS regions (using MySQL)
Directional DNS Servers directs the user requests to Main site
in AWS USA east region. In case of outage in USA East region ,
1 the web requests are directed to same website hosted in USA
West region
Main Site - AWS USA East Main Site- AWS USA West
Region Region
AWS Elastic Load Balancer AWS Elastic Load Balancer
AWS ELB balances the requests
2 between the Auto scaled EC2 launched
C C
in multiple AZ’s inside the EAST region L L
USA-East-1A USA-East-1C O USA-WEST-1A USA-WEST-1B O
U U
S3 D S3 D
W W
Auto Scaling Auto Scaling A Auto Scaling Auto Scaling A
T T
MySQL MySQL C MySQL MySQL C
Master Master Master Master
H H
MySQL is launched in Multiple AZ’s MySQL Master replication
D
3 inside the EAST region with M-M 4 between USA EAST and WEST
replication mode regions are setup
D
Main Site - AWS USA East Main Site- AWS USA West
Region Region
AWS Elastic Load Balancer AWS Elastic Load Balancer
AWS ELB balances the requests
2 between the Auto scaled EC2 launched
C C
in multiple AZ’s inside the EAST region L L
USA-East-1A USA-East-1C O USA-WEST-1A USA-WEST-1B O
U U
S3 D S3 D
W W
Auto Scaling Auto Scaling A Auto Scaling Auto Scaling A
T T
RDS Master
RDS C RDS
RDS Master
C
Standby Standby
H H
MySQL is launched in Multiple AZ’s RDS Master replication
D
3 inside the EAST region with HA 4 between USA EAST and WEST
replication mode regions is done
D
programmatically
Programmatic Replication
Blue print 1: Information flow
Main Website in
USA-EAST-1B
Blue Print 2: HA across AWS AZ’s
• Leverages AWS Inter AZ application hosting
• Main site is spread across multiple AZ’s ( 1A and 1B)
inside a single AWS East region
• Suitable for companies which demands Scalability,
load balancing and High Availability
Blue Print 2 : HA inside a AWS Region
1 1 Web requests are sent to the
Amazon ELB
AWS Elastic Load Balancer
USA- EAST -1A USA- EAST -1B 2 AWS ELB transfers the requests to
Amazon EC2 instances launched in
AWS Security groups Multiple AZ’s using Round Robin
with Session Sticky
2
3 Web/APP hosted on Amazon EC2
will transact with RDS master and
read from Read replica’s
RDS RDS
5 AWS CloudWatch will monitor this
Master Standby entire Multi AZ infrastructure
deployed on AWS cloud
D
CloudWatch 5
Information flow
“All you need is an idea and the cloud will execute it for you.” (Structure 2010 event)
- Dr Werner Vogels , CTO of Amazon on 8KMiles
cloud@8kmiles.com
http://cloud.8kmiles.com
http://cloudblog.8kmiles.com
http://www.8kmiles.com