• Save
Cloud Developer Conference May 2011 SiliconIndia : Design for Failure - High Availability using AWS
Upcoming SlideShare
Loading in...5
×
 

Cloud Developer Conference May 2011 SiliconIndia : Design for Failure - High Availability using AWS

on

  • 7,957 views

These slides were presented on SiliconIndia Cloud Developer conference May 2011. The presentation concentrates on architecting High Availability solutions using AWS

These slides were presented on SiliconIndia Cloud Developer conference May 2011. The presentation concentrates on architecting High Availability solutions using AWS

Statistics

Views

Total Views
7,957
Views on SlideShare
2,776
Embed Views
5,181

Actions

Likes
2
Downloads
0
Comments
0

50 Embeds 5,181

http://cloud.8kmiles.com 1862
http://harish11g.blogspot.in 1304
http://harish11g.blogspot.com 946
http://www.scoop.it 161
http://www.cloud.8kmiles.com 105
http://dev01.sumtwo.com 99
http://harish11g.blogspot.fr 73
http://harish11g.blogspot.co.uk 62
http://192.168.0.202 53
http://harish11g.blogspot.de 52
http://harish11g.blogspot.ca 51
http://harish11g.blogspot.sg 36
http://harish11g.blogspot.com.es 36
http://harish11g.blogspot.com.au 36
http://harish11g.blogspot.kr 30
http://harish11g.blogspot.tw 24
http://harish11g.blogspot.it 23
http://54.245.97.154 20
http://harish11g.blogspot.hk 18
http://www.8kmiles.com 16
http://harish11g.blogspot.se 16
http://harish11g.blogspot.com.br 15
http://harish11g.blogspot.jp 14
http://ec2-184-72-177-141.compute-1.amazonaws.com 13
http://harish11g.blogspot.ie 12
http://localhost 10
http://harish11g.blogspot.co.il 10
http://www.linkedin.com 9
http://harish11g.blogspot.co.nz 9
http://harish11g.blogspot.ch 7
http://harish11g.blogspot.ru 6
http://harish11g.blogspot.com.ar 6
http://harish11g.blogspot.ro 5
http://harish11g.blogspot.fi 5
http://harish11g.blogspot.nl 4
http://harish11g.blogspot.co.at 4
http://harish11g.blogspot.ae 4
http://harish11g.blogspot.gr 4
http://harish11g.blogspot.mx 4
http://harish11g.blogspot.no 4
http://harish11g.blogspot.dk 2
http://www.harish11g.blogspot.in 2
http://harish11g.blogspot.cz 2
http://ec2-50-17-121-162.compute-1.amazonaws.com 1
http://harish11g.blogspot.be 1
http://harish11g.blogspot.sk 1
url_unknown 1
http://www.harish11g.blogspot.com 1
http://harish11g.blogspot.pt 1
https://www.linkedin.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Cloud Developer Conference May 2011 SiliconIndia : Design for Failure - High Availability using AWS Cloud Developer Conference May 2011 SiliconIndia : Design for Failure - High Availability using AWS Presentation Transcript

  • “Design for Failure”High Availability Architectures using AWS Harish Ganesan Co founder & CTO 8KMiles www.twitter.com/harish11g http://www.linkedin.com/in/harishganesan
  • Sample Use Case• Multi tiered LAMP/LAMJ Web site on AWS• Data base tier using MySQL• Data Exchange (DEX) layer containing HTTP pull , Queues , Storage , BG programs and Alerts
  • A simple LAM(X) Architecture 1 Web/App Server interacts US-EAST-1a with MySQL for Queries AWS Security Groups and Transactions 2 Data Exchange Web Services are pushed withWeb/App Server Data Exchange Server information through HTTP MySQL DB 3 Entire Setup is Monitored and Secured using AWS CloudWatch
  • A simple LAM(X) Architecture Single Point of Failure at US-EAST-1a many layers AWS Security GroupsWeb/App Server Data Exchange Server MySQL DB CloudWatch Not a Highly Available Architecture
  • High Availability in Web / App / DEX layer
  • Web / App / DEX Layer 1 Add Multiple EC2 US-EAST-1a instances in Web/App AWS Security Groups layer 2 Add Multiple EC2 instances in DEX LayerWeb/App Server Data Exchange Server MySQL DB CloudWatch
  • Load balancing Layer 1 Add Elastic Load Balancer AWS Elastic Load balancer US-EAST-1a AWS Security Groups 2 Round Robin with Session Sticky policyWeb/App Server Data Exchange 3 ELB is a Highly Available Server Service with No SPOF MySQL DB CloudWatch
  • High Availability @ Load Balancing Layer• ELB vs HAProxy• AWS ELB provides load balancing service with thousands of EC2 servers behind them• AWS ELB will automatically Scale up /down the load balancing servers in backend• The theoretical maximum response rate of AWS ELB is limitless• It can handle 20000+ concurrent requests easily
  • High Availability @ Web/App/DEX layer 1 Add AWS Auto Scaling to Web and DEX layer AWS Elastic Load balancer US-EAST-1a AWS Security Groups 2 Tie AWS Auto Scaling with AWS ELBWeb/App Server Data Exchange Server Auto Scaling Auto Scaling MySQL DB CloudWatch
  • High Availability @ Web/App/DEX layer• AWS Auto Scaling will manage un Healthy EC2 instances• AWS Auto Scaling will ensure minimum number Web/App /DEX EC2 instances are always running• In event of failure , new instances will be launched between 30-120 seconds automatically• ELB traffic is seamlessly attached to the Auto Scaled EC2 instances
  • What happens when an AWS AZ in US-East itself fails ?
  • High Availability @ Web/App/DEX layer AWS Elastic Load balancer US-EAST-1a US-EAST-1b AWS Security Groups AWS Security GroupsWeb/App Server Data Exchange Server Web/App Server Data Exchange Server Auto Scaling Auto Scaling Auto Scaling Auto Scaling MySQL DB MySQL DB CloudWatch CloudWatch
  • High Availability @ Web/App/DEX layer• AZ’s are connected by Low Latency network• AZ’s are insulated from failures in other Availability Zones *• AWS Auto Scaling can manage EC2 instances across AZ’s• AWS ELB can direct load to EC2 instances across AZ’s• AWS CloudWatch can monitor the EC2 instance availability across AZ
  • High Availability in DB layer
  • High Availability @ DB layer 1 Add Read Replica’s to the AWS Elastic Load balancer Master DB US-EAST-1a AWS Security Groups 2 Add RDS Stand byWeb/App Server Data Exchange Server Auto Scaling Auto Scaling Read Read Replica Replica RDS Master RDS Standby CloudWatch
  • High Availability @ DB Layer 1 Read Replica’s launched in Multiple AZ’s for HA AWS Elastic Load Balancer USA- EAST -1A USA- EAST -1B AWS Security groups 2 RDS Standby will be launched on different AZ from the RDS master for HA Auto Scaling Auto Scaling 3 Web/APP hosted on Amazon EC2 will transact S3 Read Read with RDS master and Replica Replica read from Read replica’s RDS RDS Master Standby DCloudWatch
  • High Availability @ DB Layer• RDS Master and RDS Standby in Multiple AZ for HA• Read Replica’s in Multiple AZ for HA• Offers No SPOF on AZ level• Read Replica’s can be launched/terminated without affecting the RDS Master availability• In event of RDS master failure, RDS Standby will be automatically promoted• Promotion <180 seconds and no changes in the application
  • High Availability @ DB Layer• DB snapshots and MySQL Dumps facility available• Automatic full backups at configured maintenance windows• Point in time recovery till last minute• Recovery might require App layer configuration changes
  • High Availability in DEX layer
  • High Availability @ DEX Layer• DEX layer is designed with AWS building blocks like • S3 , SQS, SES , EMR , CloudWatch• AWS blocks are in built with fault tolerance and HA
  • High Availability @ DEX Layer 1 DEX layer puts the DEX Layer request messages in SQS and XML in S3 C 2 Auto Scaled BG programs L process the same fromSQS S3 O the respective systems U D 3 SQS is a Highly available W A messaging system with in Master EC2 Node T built fault tolerance C H 4 S3 is a Highly availableEC2 Instances storage system Amazon Auto Scaling
  • High Availability @ DEX Layer 1 BG programs send DEX Layer external emails using SESSQS S3 C 2 SES is a Highly available Master EC2 Node L email service O U DEC2 Instances W 3 DEX layer input end A point URL’s are T configured with AWS Amazon Auto Scaling C Route 53 H SES
  • High Availability @ DEX Layer 1 Elastic MapReduce jobs of DEX layer process the S3 S3 files present in S3 C L EMR O U DEC2 Instances W A T Elastic MapReduce C HS3 S3
  • What happens if the Entire USA East region is affected ?Solution : Design High Availability across Regions
  • High Availability across AWS RegionsWeb site is hosted inAWS USA East Web Site is hosted in AWS USA West
  • HA across AWS Regions Main Website in AWS region 1 AWS West/Europe/APAC RegionAWS USA East Region Main Website in AWS region 2
  • 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 Dynamic/Managed/ Directional DNS ServersMain 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 LUSA-East-1A USA-East-1C O USA-WEST-1A USA-WEST-1B O U U S3 D S3 D W WAuto Scaling Auto Scaling A Auto Scaling Auto Scaling A T TMySQL MySQL C MySQL MySQL CMaster 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 MySQL M-M Replication
  • Website in Multiple AWS regions(using RDS) 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 Dynamic/Managed/ Directional DNS Servers 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 TRDS 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
  • 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• Directional DNS combined with Route 53• Suitable for companies which demand high level of Scalability, load balancing and Availability across the globe
  • High Availability @ DNS Layer• Managed DNS server will provide automatic failover at DNS level in case of a outage at the primary website location• Transparent switch between websites hosted in AWS East and AWS West/Europe within <60 seconds during outage• Automatic Traffic diversion to nearest site location• Managed/Directional DNS servers are globally distributed and Highly Available Service
  • High Availability @ Database Layer (RDS)• Both AWS regions have RDS Master/Stand by Setup• Programmatic replication of data between RDS Masters/Read in different AWS regions is needed• HA inside a Region and across the Regions
  • High Availability @ Database (Non RDS)• Master - Master MySQL is configured in two different AZ’s ( offering HA inside Region)• Configure Asynchronous Read slaves in Multiple AZ’s• Master – Master replication is configured between MySQL of different regions ( HA across regions)• Elastic IP & health check based elevation within 60 seconds during failure• Asynchronous data replication
  • Positives• Scalable and Highly available Architecture• Inter Regional High Availability in AWS• In event of failure at USA east region , the traffic can be directed to USA west/Europe in seconds• Website deployed in both regions can scale and shrink according to load• Cost effective for large server farm deployments• Low latency achieved through traffic direction• No customers are lost because of load or availability problems . Ops are happy !!!
  • Negatives• Complete Dependency on AWS cloud• Technically complex and intricate setup• Costlier to build and operate (Sophistication comes at a cost)• No Unified Infra Management currently for this architecture – Example : Directional DNS and AWS are two separate management consoles
  • Summary• Understood some AWS Building blocks for HA and fault tolerance• Applied AWS HA techniques for sample use case• How to achieve High Availability across AWS Availability Zones (AZ’s) ?• How to achieve High Availability across AWS regions ?
  • How do I leverage High Availability architectureon AWS?
  • Leave it to the experts , we willhandle thisCloud Architecture ConsultingCloud Application DevelopmentCloud Migration & ImplementationCloud Adoption Strategy “Lets get the job done”
  • Q&A“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 Contact : http://cloud.8Kmiles.com cloud@8Kmiles.com harish@8Kmiles.com