SlideShare a Scribd company logo
1 of 38
Cloud Computing Conference May 2011

     “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 with
Web/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 Groups




Web/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 Layer
Web/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 policy



Web/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 ELB
Web/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 Groups


Web/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 by
Web/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

                                   D


CloudWatch
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 from
SQS                               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 available
EC2 Instances                                  storage system


       Amazon Auto Scaling
High Availability @ DEX Layer
                                          1   BG programs send
            DEX Layer
                                              external emails using SES
SQS                           S3

                                   C      2   SES is a Highly available
                Master EC2 Node    L          email service
                                   O
                                   U
                                   D
EC2 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
                                 D
EC2 Instances                    W
                                 A
                                 T
        Elastic MapReduce        C
                                 H


S3                          S3
What happens if the Entire USA East region is
                  affected ?

Solution : Design High Availability across Regions
High Availability across AWS Regions


Web site is hosted in
AWS USA East




        Web Site is hosted in
        AWS USA West
HA across AWS Regions



 Main Website in
  AWS region 1

                             AWS West/Europe/APAC
                                   Region
AWS 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 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                                                                  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




                                            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                                                                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
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 architecture
on AWS?
Leave it to the experts , we will
handle this



Cloud Architecture Consulting
Cloud Application Development
Cloud Migration & Implementation
Cloud Adoption Strategy


                                   “Let's 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

More Related Content

What's hot

Prepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for ThanksgivingPrepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for ThanksgivingHarish Ganesan
 
AWS Security Best Practices and Design Patterns
AWS Security Best Practices and Design PatternsAWS Security Best Practices and Design Patterns
AWS Security Best Practices and Design PatternsAmazon Web Services
 
High Availability in the Cloud - Architectural Best Practices
High Availability in the Cloud - Architectural Best PracticesHigh Availability in the Cloud - Architectural Best Practices
High Availability in the Cloud - Architectural Best PracticesRightScale
 
Auto scaling using Amazon Web Services ( AWS )
Auto scaling using Amazon Web Services ( AWS )Auto scaling using Amazon Web Services ( AWS )
Auto scaling using Amazon Web Services ( AWS )Harish Ganesan
 
AWS Summit 2011: Designing Fault Tolerant Applicatons
AWS Summit 2011: Designing Fault Tolerant ApplicatonsAWS Summit 2011: Designing Fault Tolerant Applicatons
AWS Summit 2011: Designing Fault Tolerant ApplicatonsAmazon Web Services
 
From One to Many: Evolving VPC Design
From One to Many: Evolving VPC DesignFrom One to Many: Evolving VPC Design
From One to Many: Evolving VPC DesignAmazon Web Services
 
Scale new business peaks with Amazon auto scaling
Scale new business peaks with Amazon auto scalingScale new business peaks with Amazon auto scaling
Scale new business peaks with Amazon auto scalingHarish Ganesan
 
Journey Through the AWS Cloud; Application Services
Journey Through the AWS Cloud; Application ServicesJourney Through the AWS Cloud; Application Services
Journey Through the AWS Cloud; Application ServicesAmazon Web Services
 
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012Amazon Web Services
 
Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013
Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013
Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013Amazon Web Services
 
AWS re:Invent 2016: Simplifying Microsoft Architectures with AWS services (WI...
AWS re:Invent 2016: Simplifying Microsoft Architectures with AWS services (WI...AWS re:Invent 2016: Simplifying Microsoft Architectures with AWS services (WI...
AWS re:Invent 2016: Simplifying Microsoft Architectures with AWS services (WI...Amazon Web Services
 
(SDD423) Elastic Load Balancing Deep Dive and Best Practices | AWS re:Invent ...
(SDD423) Elastic Load Balancing Deep Dive and Best Practices | AWS re:Invent ...(SDD423) Elastic Load Balancing Deep Dive and Best Practices | AWS re:Invent ...
(SDD423) Elastic Load Balancing Deep Dive and Best Practices | AWS re:Invent ...Amazon Web Services
 
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...Amazon Web Services
 
AWS Summit Auckland 2014 | Running your First Application on AWS
AWS Summit Auckland 2014 | Running your First Application on AWSAWS Summit Auckland 2014 | Running your First Application on AWS
AWS Summit Auckland 2014 | Running your First Application on AWSAmazon Web Services
 
Scalable Database Options on AWS
Scalable Database Options on AWSScalable Database Options on AWS
Scalable Database Options on AWSAmazon Web Services
 
VMware and AWS together (June 2017)
VMware and AWS together (June 2017)VMware and AWS together (June 2017)
VMware and AWS together (June 2017)Julien SIMON
 

What's hot (20)

Prepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for ThanksgivingPrepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for Thanksgiving
 
AWS Security Best Practices and Design Patterns
AWS Security Best Practices and Design PatternsAWS Security Best Practices and Design Patterns
AWS Security Best Practices and Design Patterns
 
CMS on AWS Deep Dive
CMS on AWS Deep DiveCMS on AWS Deep Dive
CMS on AWS Deep Dive
 
High Availability in the Cloud - Architectural Best Practices
High Availability in the Cloud - Architectural Best PracticesHigh Availability in the Cloud - Architectural Best Practices
High Availability in the Cloud - Architectural Best Practices
 
Auto scaling using Amazon Web Services ( AWS )
Auto scaling using Amazon Web Services ( AWS )Auto scaling using Amazon Web Services ( AWS )
Auto scaling using Amazon Web Services ( AWS )
 
AWS Summit 2011: Designing Fault Tolerant Applicatons
AWS Summit 2011: Designing Fault Tolerant ApplicatonsAWS Summit 2011: Designing Fault Tolerant Applicatons
AWS Summit 2011: Designing Fault Tolerant Applicatons
 
From One to Many: Evolving VPC Design
From One to Many: Evolving VPC DesignFrom One to Many: Evolving VPC Design
From One to Many: Evolving VPC Design
 
Scale new business peaks with Amazon auto scaling
Scale new business peaks with Amazon auto scalingScale new business peaks with Amazon auto scaling
Scale new business peaks with Amazon auto scaling
 
Journey Through the AWS Cloud; Application Services
Journey Through the AWS Cloud; Application ServicesJourney Through the AWS Cloud; Application Services
Journey Through the AWS Cloud; Application Services
 
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
 
Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013
Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013
Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013
 
AWS re:Invent 2016: Simplifying Microsoft Architectures with AWS services (WI...
AWS re:Invent 2016: Simplifying Microsoft Architectures with AWS services (WI...AWS re:Invent 2016: Simplifying Microsoft Architectures with AWS services (WI...
AWS re:Invent 2016: Simplifying Microsoft Architectures with AWS services (WI...
 
Intro to Amazon ECS
Intro to Amazon ECSIntro to Amazon ECS
Intro to Amazon ECS
 
(SDD423) Elastic Load Balancing Deep Dive and Best Practices | AWS re:Invent ...
(SDD423) Elastic Load Balancing Deep Dive and Best Practices | AWS re:Invent ...(SDD423) Elastic Load Balancing Deep Dive and Best Practices | AWS re:Invent ...
(SDD423) Elastic Load Balancing Deep Dive and Best Practices | AWS re:Invent ...
 
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...
 
AWS Summit Auckland 2014 | Running your First Application on AWS
AWS Summit Auckland 2014 | Running your First Application on AWSAWS Summit Auckland 2014 | Running your First Application on AWS
AWS Summit Auckland 2014 | Running your First Application on AWS
 
Microsoft Best Practices on AWS
Microsoft Best Practices on AWSMicrosoft Best Practices on AWS
Microsoft Best Practices on AWS
 
Scalable Database Options on AWS
Scalable Database Options on AWSScalable Database Options on AWS
Scalable Database Options on AWS
 
VMware and AWS together (June 2017)
VMware and AWS together (June 2017)VMware and AWS together (June 2017)
VMware and AWS together (June 2017)
 
Amazon EC2 Masterclass
Amazon EC2 MasterclassAmazon EC2 Masterclass
Amazon EC2 Masterclass
 

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

An intro to Amazon Web Services (AWS)
An intro to Amazon Web Services (AWS)An intro to Amazon Web Services (AWS)
An intro to Amazon Web Services (AWS)Andreas Chatzakis
 
Scalable Architecture on Amazon AWS Cloud - Indicthreads cloud computing conf...
Scalable Architecture on Amazon AWS Cloud - Indicthreads cloud computing conf...Scalable Architecture on Amazon AWS Cloud - Indicthreads cloud computing conf...
Scalable Architecture on Amazon AWS Cloud - Indicthreads cloud computing conf...IndicThreads
 
13h00 aws 2012-fault_tolerant_applications
13h00   aws 2012-fault_tolerant_applications13h00   aws 2012-fault_tolerant_applications
13h00 aws 2012-fault_tolerant_applicationsinfolive
 
Microsoft Azure fundamentals for AWS practitioners
Microsoft Azure fundamentals for AWS practitionersMicrosoft Azure fundamentals for AWS practitioners
Microsoft Azure fundamentals for AWS practitionersPratik Khasnabis
 
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWSGetting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWSAmazon Web Services
 
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWSGetting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWSAmazon Web Services
 
So There’s This Amazon Thing
So There’s This Amazon ThingSo There’s This Amazon Thing
So There’s This Amazon ThingJared Faris
 
Running High Availability Websites with Acquia and AWS
Running High Availability Websites with Acquia and AWSRunning High Availability Websites with Acquia and AWS
Running High Availability Websites with Acquia and AWSAcquia
 
Aws for Startups Building Cloud Enabled Apps
Aws for Startups Building Cloud Enabled AppsAws for Startups Building Cloud Enabled Apps
Aws for Startups Building Cloud Enabled AppsAmazon Web Services
 
PHP LAMP AWS RightSscale
PHP LAMP AWS RightSscalePHP LAMP AWS RightSscale
PHP LAMP AWS RightSscalemaxgribov
 
Getting Started with Managed Services | AWS Public Sector Summit 2016
Getting Started with Managed Services | AWS Public Sector Summit 2016Getting Started with Managed Services | AWS Public Sector Summit 2016
Getting Started with Managed Services | AWS Public Sector Summit 2016Amazon Web Services
 
Designing Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVDesigning Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVAmazon Web Services
 
Aplicaciones a gran escala: Cómo servir a millones de usuarios
Aplicaciones a gran escala: Cómo servir a millones de usuariosAplicaciones a gran escala: Cómo servir a millones de usuarios
Aplicaciones a gran escala: Cómo servir a millones de usuariosAmazon Web Services
 
Deploy PHP Apps on AWS Beanstalk & Deploy with Git
Deploy PHP Apps on AWS Beanstalk & Deploy with GitDeploy PHP Apps on AWS Beanstalk & Deploy with Git
Deploy PHP Apps on AWS Beanstalk & Deploy with GitAmazon Web Services
 
Accelerating SharePoint for Mobile Solutions on AWS
Accelerating SharePoint for Mobile Solutions on AWSAccelerating SharePoint for Mobile Solutions on AWS
Accelerating SharePoint for Mobile Solutions on AWSAmazon Web Services
 
NWCloud Cloud Track - Best Practices for Architecting in the Cloud
NWCloud Cloud Track - Best Practices for Architecting in the CloudNWCloud Cloud Track - Best Practices for Architecting in the Cloud
NWCloud Cloud Track - Best Practices for Architecting in the Cloudnwcloud
 
Sql azure introduction
Sql azure introductionSql azure introduction
Sql azure introductionSuherman .
 
AWS Webcast - Best Practices in Architecting for the Cloud
AWS Webcast - Best Practices in Architecting for the CloudAWS Webcast - Best Practices in Architecting for the Cloud
AWS Webcast - Best Practices in Architecting for the CloudAmazon Web Services
 

Similar to Cloud Developer Conference May 2011 SiliconIndia : Design for Failure - High Availability using AWS (20)

An intro to Amazon Web Services (AWS)
An intro to Amazon Web Services (AWS)An intro to Amazon Web Services (AWS)
An intro to Amazon Web Services (AWS)
 
Scalable Architecture on Amazon AWS Cloud - Indicthreads cloud computing conf...
Scalable Architecture on Amazon AWS Cloud - Indicthreads cloud computing conf...Scalable Architecture on Amazon AWS Cloud - Indicthreads cloud computing conf...
Scalable Architecture on Amazon AWS Cloud - Indicthreads cloud computing conf...
 
13h00 aws 2012-fault_tolerant_applications
13h00   aws 2012-fault_tolerant_applications13h00   aws 2012-fault_tolerant_applications
13h00 aws 2012-fault_tolerant_applications
 
Fault Tolerant Applications on AWS
Fault Tolerant Applications on AWSFault Tolerant Applications on AWS
Fault Tolerant Applications on AWS
 
Microsoft Azure fundamentals for AWS practitioners
Microsoft Azure fundamentals for AWS practitionersMicrosoft Azure fundamentals for AWS practitioners
Microsoft Azure fundamentals for AWS practitioners
 
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWSGetting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
 
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWSGetting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
 
So There’s This Amazon Thing
So There’s This Amazon ThingSo There’s This Amazon Thing
So There’s This Amazon Thing
 
Running High Availability Websites with Acquia and AWS
Running High Availability Websites with Acquia and AWSRunning High Availability Websites with Acquia and AWS
Running High Availability Websites with Acquia and AWS
 
Aws for Startups Building Cloud Enabled Apps
Aws for Startups Building Cloud Enabled AppsAws for Startups Building Cloud Enabled Apps
Aws for Startups Building Cloud Enabled Apps
 
PHP LAMP AWS RightSscale
PHP LAMP AWS RightSscalePHP LAMP AWS RightSscale
PHP LAMP AWS RightSscale
 
Getting Started with Managed Services | AWS Public Sector Summit 2016
Getting Started with Managed Services | AWS Public Sector Summit 2016Getting Started with Managed Services | AWS Public Sector Summit 2016
Getting Started with Managed Services | AWS Public Sector Summit 2016
 
Designing Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVDesigning Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSV
 
Aws
AwsAws
Aws
 
Aplicaciones a gran escala: Cómo servir a millones de usuarios
Aplicaciones a gran escala: Cómo servir a millones de usuariosAplicaciones a gran escala: Cómo servir a millones de usuarios
Aplicaciones a gran escala: Cómo servir a millones de usuarios
 
Deploy PHP Apps on AWS Beanstalk & Deploy with Git
Deploy PHP Apps on AWS Beanstalk & Deploy with GitDeploy PHP Apps on AWS Beanstalk & Deploy with Git
Deploy PHP Apps on AWS Beanstalk & Deploy with Git
 
Accelerating SharePoint for Mobile Solutions on AWS
Accelerating SharePoint for Mobile Solutions on AWSAccelerating SharePoint for Mobile Solutions on AWS
Accelerating SharePoint for Mobile Solutions on AWS
 
NWCloud Cloud Track - Best Practices for Architecting in the Cloud
NWCloud Cloud Track - Best Practices for Architecting in the CloudNWCloud Cloud Track - Best Practices for Architecting in the Cloud
NWCloud Cloud Track - Best Practices for Architecting in the Cloud
 
Sql azure introduction
Sql azure introductionSql azure introduction
Sql azure introduction
 
AWS Webcast - Best Practices in Architecting for the Cloud
AWS Webcast - Best Practices in Architecting for the CloudAWS Webcast - Best Practices in Architecting for the Cloud
AWS Webcast - Best Practices in Architecting for the Cloud
 

Recently uploaded

Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 

Recently uploaded (20)

Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 

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

  • 1. Cloud Computing Conference May 2011 “Design for Failure” High Availability Architectures using AWS Harish Ganesan Co founder & CTO 8KMiles www.twitter.com/harish11g http://www.linkedin.com/in/harishganesan
  • 2. 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
  • 3. 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 with Web/App Server Data Exchange Server information through HTTP MySQL DB 3 Entire Setup is Monitored and Secured using AWS CloudWatch
  • 4. A simple LAM(X) Architecture Single Point of Failure at US-EAST-1a many layers AWS Security Groups Web/App Server Data Exchange Server MySQL DB CloudWatch Not a Highly Available Architecture
  • 5. High Availability in Web / App / DEX layer
  • 6. 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 Layer Web/App Server Data Exchange Server MySQL DB CloudWatch
  • 7. Load balancing Layer 1 Add Elastic Load Balancer AWS Elastic Load balancer US-EAST-1a AWS Security Groups 2 Round Robin with Session Sticky policy Web/App Server Data Exchange 3 ELB is a Highly Available Server Service with No SPOF MySQL DB CloudWatch
  • 8. 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
  • 9. 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 ELB Web/App Server Data Exchange Server Auto Scaling Auto Scaling MySQL DB CloudWatch
  • 10. 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
  • 11. What happens when an AWS AZ in US-East itself fails ?
  • 12. High Availability @ Web/App/DEX layer AWS Elastic Load balancer US-EAST-1a US-EAST-1b AWS Security Groups AWS Security Groups Web/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
  • 13. 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
  • 15. 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 by Web/App Server Data Exchange Server Auto Scaling Auto Scaling Read Read Replica Replica RDS Master RDS Standby CloudWatch
  • 16. 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 D CloudWatch
  • 17. 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
  • 18. 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
  • 19. High Availability in DEX layer
  • 20. 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
  • 21. 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 from SQS 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 available EC2 Instances storage system Amazon Auto Scaling
  • 22. High Availability @ DEX Layer 1 BG programs send DEX Layer external emails using SES SQS S3 C 2 SES is a Highly available Master EC2 Node L email service O U D EC2 Instances W 3 DEX layer input end A point URL’s are T configured with AWS Amazon Auto Scaling C Route 53 H SES
  • 23. High Availability @ DEX Layer 1 Elastic MapReduce jobs of DEX layer process the S3 S3 files present in S3 C L EMR O U D EC2 Instances W A T Elastic MapReduce C H S3 S3
  • 24. What happens if the Entire USA East region is affected ? Solution : Design High Availability across Regions
  • 25. High Availability across AWS Regions Web site is hosted in AWS USA East Web Site is hosted in AWS USA West
  • 26. HA across AWS Regions Main Website in AWS region 1 AWS West/Europe/APAC Region AWS USA East Region Main Website in AWS region 2
  • 27. 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 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 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 MySQL M-M Replication
  • 28. 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 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
  • 29. 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
  • 30. 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
  • 31. 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
  • 32. 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
  • 33. 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 !!!
  • 34. 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
  • 35. 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 ?
  • 36. How do I leverage High Availability architecture on AWS?
  • 37. Leave it to the experts , we will handle this Cloud Architecture Consulting Cloud Application Development Cloud Migration & Implementation Cloud Adoption Strategy “Let's get the job done”
  • 38. 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