SlideShare a Scribd company logo
High Availability in the Cloud –
     Architecting Best Practices

        Watch the video of this webinar

                   May 6, 2011




1
Your Panel Today
Presenting:
• Michael Crandell, CEO Twitter: @michaelcrandell
• Josep Blanquer, Sr. Systems Architect
• Brian Adler, Professional Services Architect

Q&A:
• Jason Altobelli, Account Manager



 Please use the questions window to ask questions anytime!



 2
Agenda
• Design for Failure
• What happened in the AWS Outage
• RightScale’s experience
• Infrastructure abstraction and automation as building blocks
  for highly available applications
• Architectural options to protect against cloud failures
• Conclusions / Q&A




    Please use the questions window to ask questions anytime!

    3
Terminology
• Fault Tolerance
     • Fault tolerance leverages redundancy and replication to enable systems to
       continue operating properly if one or more components fails
• High Availability
     • Fault Tolerant systems are measured by their Availability in terms of
       planned and unplanned service outages for end users
         •   99% Availability = 3.65 days of downtime per year
         •   99.5% Availability = 1.83 days of downtime per year
         •   99.9% Availability = 8.76 hours of downtime per year
         •   99.99% Availability = 53 minutes of downtime per year
         •   99.999% Availability = 5.26 minutes of downtime per year

• Disaster Recovery
     • The process, policies and procedures related to restoring critical systems
       after a catastrophic event


 4
Design for Failure
• Large scale failures in the cloud are rare but happen
• Application owners are ultimately responsible for
  availability and recoverability
• Balance cost and complexity of HA efforts against
  risk you’re willing to bear
• Fortunately, cloud infrastructure has made DR and HA
  remarkably affordable versus past options
     •   Multi-server
     •   Multi-AZ
     •   Multi-region
     •   Multi-cloud




 5
Assessing Risk vs Cost in Aviation
 Fatalities per
1M Hours Flown


      20 Fatalities                          General
                                             Aviation

   10 Fatalities                  Commuter
                                   Airline

                      Large Air
      4 Fatalities
                       Carrier



                        $           $$         $$$      Cost of
                                                        Service


  6
What Happened in the April 21 AWS Outage?
•       Triggered by operator error during a router upgrade which funneled high-
        volume network traffic into a low-bandwidth control network used by EBS
•       Flooding of the control network caused a large number of EBS servers to
        be effectively isolated from one another, which broke volume replication,
        and caused these servers to start re-replicating the data to fresh servers
•       This large-scale re-replication storm in turn had two effects:
         • It failed in many cases causing the volumes to go offline for manual intervention
         • It flooded the EBS control plane with re-replication events that affected its operation
           across the entire us-east region
•       Steps taken by AWS:
         • Stopping the re-replication attempts to quiesce the system and prevent new
           volumes from being drawn into the outage
         • Isolated the affected availability zone from the EBS control plane to restore normal
           operation in other zones
         • AWS started to recover volumes


    7
RightScale’s Experience
•       ~2am – Monitoring server disks started to die like flies
         •   Tried replacing them with fresh EBS drives – Failed
         •   Tried re-launching them with fresh EBS drives in different Zones - Failed
•       ~3am – Realized EBS wasn’t going to be fixed anytime soon: Plan B time!
         •   Revamped our monitoring ServerTemplate to use ephemeral volumes instead of EBS
         •   Our architecture for monitoring data continually backs up and pulls data on demand from S3
•       ~3:20am – Started re-launching affected monitoring servers
         •   Over the next several hours, ~15% of monitoring servers failed and were easily re-launched
•       ~7am – Amazon announces EBS volume creation is fixed in other zones
•       ~11am – EBS disk failures hit our master database
         •   Chose one of our slaves (from our zone 1d) to be promoted
         •   In a few minutes we had the new master up and running
         •   It took a while to achieve needed performance due to its cold working set




    8
Agenda
• Design for Failure
• What happened in the AWS Outage
• RightScale’s experience
• Infrastructure abstraction and automation as building
  blocks for highly available applications
• Architectural options to protect against cloud failures
• Conclusions / Q&A




    Please use the questions window to ask questions anytime!

    9
What do we mean by Cloud?
• A cloud is a physical data center entity behind an API endpoint

• What do you mean by that?
      •   Amazon Web Services is not a cloud
      •   EC2 is not a cloud
      •   Eucalyptus, Cloud.com are not clouds
      •   EC2 East, EC2 AsiaPacific, my private cloud… are clouds
      •   An availability zone is not a cloud, it’s part of one
      •   Think of a cloud as a “resource pool” accessed via API




 10
Overcoming Multi-Cloud Pain Points
• APIs differ
      • Different sets of resources
      • Different formats, encodings and versions
• Abstractions and features differ
      • Network architectures differ: VLANs, security groups, NAT, IPs, ACLs, …
      • Storage architectures differ: local/attachable disks, backup, snapshots, …
      • Hypervisors, machine images…cost models, billing, reporting…etc.
• They are truly different beasts, with different semantics

• So make sure you:
      • Design using generic concepts yet deploy using cloud specifics
      • Have tools that translate your concepts to cloud-specific ones
      • Think of how to share resources across clouds (i.e. data sharing)

 11
How does RightScale help with Abstraction?
• Unified Multi-Cloud UI and new API (in progress)
      •   Multi-Cloud Servers/Arrays
      •   Multi-Cloud ServerTemplates
      •   Multi-Cloud Images
      •   Others in the pipeline


                                                                             I
                                                 1:N                             I
                        1:1   ServerTemplate                                         I
          Server                                          Image
                                                                             I
                                                                                 I

 runnable abstraction          software config         runtime config   cloud resources




 12
Infrastructure Abstraction & Automation
as Building Blocks of Highly Available Applications

•    Multi-Cloud Dashboard, Architecture & Application Portability
         •   Single pane of glass through UI and API
         •   Allows simplified deployments across multiple regions/clouds
•    Automated Deployments (Provisioning and Configuration Mgmt)
         •   Reproducible Configurations with Change Control - Avoids manual configuration errors
         •   Cost effective – Pay as you go for backup. It’s easy and inexpensive to test fault tolerance.
•    Advanced Server and Deployment Monitoring
         •   Custom monitoring dashboard, custom graphing, cluster graphing
•    Automated Scaling and Operations
         •   Easy to scale up/down, replace failed/unhealthy instances,
             backup data, replicate data, etc
•    Library of Cloud Optimized Solution Stacks
         •   RightImages, RightScripts, and ServerTemplates



    13
Agenda
• Design for Failure
• What happened in the AWS Outage
• RightScale’s experience
• Infrastructure abstraction and automation as building blocks
  for highly available applications
• Architectural options to protect against cloud failures
• Conclusions / Q&A




    Please use the questions window to ask questions anytime!

    14
HA/DR Checklist for Risk Mitigation

 Determine who owns the architecture, DR process and testing.
 Develop expertise in house and / or get outside help.
 Conduct a risk assessment for each application.
 Specify your target Recovery Time Objective
  and Recovery Point Objective.
 Design for failure starting with application architecture.
 Implement HA best practices balancing cost, complexity and risk.
          Automate infrastructure for consistency and reliability.
          Abstract applications for flexibility and portability.
 Document operational processes and automations.
 Test the failover... then test it again.
 Release the Chaos Monkey.


    15
Application Architecture Deployment Options
• Storage Options
      • Local storage, EBS, S3, CloudFiles, Gluster, etc.
• DNS Configuration Options
      • DNS APIs for dynamic configuration (Route53, DynDNS, DNS Made Easy)
• Load Balancing Options
      • HA Proxy or AWS ELB to distribute traffic across multiple instances / AZs
• Server Array Options
      • Create scalable tiers for web and application servers
• Database Options
      • MySQL (EBS with snapshots to S3 or Local Disk with LVM snapshots)
          • Database Manager Features (Automated snapshots, replication, slave promotion, striping)
      • AWS RDS
      • Database Sharding
      • NoSQL Databases
 16
General HA Best Practices
 Avoid single points of failure
 Always place one of each component (load balancers,
  app servers, databases) in at least two AZs
 Maintain sufficient capacity to absorb AZ / cloud failures
 Replicate data across AZs and backup or replicate across
  clouds/regions for failover
 Setup monitoring, alerts and operations to identify and
  automate problem resolution or failover process
 Design stateless applications for resilience to reboot / relaunch




 17
Multi-AZ Example




                                                                                Consider local storage for
                                                                               additional slave database to
                                                                              remove dependency on EBS
                                                                            (Use LVM to snapshot backups)




                                                                    Consider distributed NoSQL databases
      Snapshot EBS volume for                                      with the same distribution considerations.
     backups so the database can    Place Slave databases in one   Spread primary and replica nodes across
      be readily recovered within      or more AZs for failover.   multiple AZs. Place as many as you need
              the region.                                                    for required resiliency.


18
Multi-Cloud Cold / Warm / Hot DR Options

No Downtime                                          Hot HA
                                               (Live/Live Config)
 > 5 Minutes                            Hot DR
                                    (Least Common)
 > 1 Hour                  Warm DR
                        (Recommended)

 > Few Hours      Cold DR
               (Most Common)


                    $          $$        $$$         $$$$



19
Multi-Cloud Cold DR Example
Staged Server Configuration and generally no staged data




  20
Multi-Cloud Warm DR Example
Staged Server Configuration, pre-staged data and running Slave Database Server




 21
Multi-Cloud Hot DR Example
Parallel Deployment with all servers running but all traffic going to primary




  22
Multi-Cloud Hot HA Example
Live/Live configuration. May use Geo-target IP services to direct traffic to regional
load balancers.




  23
Multi-Cloud Hot HA Example
Multi-Cloud looks similar to Multi-AZ… but there are additional problems to solve as
                                                 some resources are not shared
              You need DNS management                                 across clouds
                       or a global load balancer




Images for cloud servers are
 specific to the cloud/region.


                                                      You need to copy or replicate data
                                                   yourself as EBS snapshots are specific
                                                    to the source AZ. Getting the data out
                                                     requires a slave sync or taking LVM
  24                                                 snapshots and transferring the data.
So What’s Best?
• Design for failure
• No one size fits all solution
      • Every application/components has its own architecture
      • Tradeoffs between levels of resiliency and cost
• The options available in the cloud today are unprecedented
      • Capabilities for global redundancy
      • Time to access
      • Investment required
• Follow our High Availability Checklist!




 25
Special Offer –
 High Availability Assessment &
 Design Recommendations
 Become a RightScale customer in May and receive:
          Free High Availability Assessment
          Free Design/Architecture Recommendations
          Half Off Onboarding Fee
 Ready to get started?
 Contact us at sales@rightscale.com or (866) 720-0208


 Learn More –
 RightScale Free Edition       White Paper Library            Webinar Library
  RightScale.com/free       Rightscale.com/whitepapers     RightScale.com/webinars

 RightScale User Conference – June 8 in NYC! Register here: www.rightscale.com/conference
26
Thank You!




27

More Related Content

PPTX
Zero Downtime with OSGi - Chicago Coder Conference 05-15-2015
Mariano Gonzalez
 
PDF
Aws Architecture Fundamentals
2nd Watch
 
PPTX
AWS Re:Invent - High Availability Architecture at Netflix
Adrian Cockcroft
 
PDF
AWS VPC best practices 2016 by Bogdan Naydenov
Bogdan Naydenov
 
PPTX
Cloud Architecture: Patterns and Best Practices
Sascha Möllering
 
PDF
Cloud Developer Conference May 2011 SiliconIndia : Design for Failure - High ...
Harish Ganesan
 
PPTX
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
Robert Wilson
 
PDF
Criando o seu datacenter virtual vpc e conectividade
Amazon Web Services LATAM
 
Zero Downtime with OSGi - Chicago Coder Conference 05-15-2015
Mariano Gonzalez
 
Aws Architecture Fundamentals
2nd Watch
 
AWS Re:Invent - High Availability Architecture at Netflix
Adrian Cockcroft
 
AWS VPC best practices 2016 by Bogdan Naydenov
Bogdan Naydenov
 
Cloud Architecture: Patterns and Best Practices
Sascha Möllering
 
Cloud Developer Conference May 2011 SiliconIndia : Design for Failure - High ...
Harish Ganesan
 
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
Robert Wilson
 
Criando o seu datacenter virtual vpc e conectividade
Amazon Web Services LATAM
 

Viewers also liked (19)

PPTX
Aws multi-region High Availability
Adam Book
 
PDF
High Availability Infrastructure for Cloud Computing
Bob Rhubart
 
PDF
Multi-master, multi-region MySQL deployment in Amazon AWS
Continuent
 
PDF
How to Design for High Availability & Scale with AWS
Blazeclan Technologies Private Limited
 
PPTX
Using MySQL Fabric for High Availability and Scaling Out
OSSCube
 
PDF
Architecture Patterns - Open Discussion
Nguyen Tung
 
PDF
Webinar: snom UC edition Phones and Native Lync Server Provisioning
snom technology
 
PPTX
Choosing a Polycom - Microsoft Lync Phone
Graham Walsh
 
PDF
20120426 high availability MySQL
Jui-Nan Lin
 
PDF
MySQL Fabric
Mark Swarbrick
 
PDF
MySQL HA
Mark Swarbrick
 
PDF
MySQL Security Best Practises
Mark Swarbrick
 
PDF
MySQL Group Replication
Bogdan Kecman
 
PPTX
Designing and Building Multi-Region Swift Deployment
Siheon Kim
 
PDF
MySQL 5.6 Replication Webinar
Mark Swarbrick
 
PPTX
Hhm 3479 mq clustering and shared queues for high availability
Pete Siddall
 
PDF
Deploying Moodle With High Availability and auto-scale on Microsoft Azure pla...
Somaroy Gabbita
 
PDF
MySQL for Oracle DBA -- Rocky Mountain Oracle User Group Training Days '15
Dave Stokes
 
PDF
Amazon Reshift as your Data Warehouse Solution
Blazeclan Technologies Private Limited
 
Aws multi-region High Availability
Adam Book
 
High Availability Infrastructure for Cloud Computing
Bob Rhubart
 
Multi-master, multi-region MySQL deployment in Amazon AWS
Continuent
 
How to Design for High Availability & Scale with AWS
Blazeclan Technologies Private Limited
 
Using MySQL Fabric for High Availability and Scaling Out
OSSCube
 
Architecture Patterns - Open Discussion
Nguyen Tung
 
Webinar: snom UC edition Phones and Native Lync Server Provisioning
snom technology
 
Choosing a Polycom - Microsoft Lync Phone
Graham Walsh
 
20120426 high availability MySQL
Jui-Nan Lin
 
MySQL Fabric
Mark Swarbrick
 
MySQL HA
Mark Swarbrick
 
MySQL Security Best Practises
Mark Swarbrick
 
MySQL Group Replication
Bogdan Kecman
 
Designing and Building Multi-Region Swift Deployment
Siheon Kim
 
MySQL 5.6 Replication Webinar
Mark Swarbrick
 
Hhm 3479 mq clustering and shared queues for high availability
Pete Siddall
 
Deploying Moodle With High Availability and auto-scale on Microsoft Azure pla...
Somaroy Gabbita
 
MySQL for Oracle DBA -- Rocky Mountain Oracle User Group Training Days '15
Dave Stokes
 
Amazon Reshift as your Data Warehouse Solution
Blazeclan Technologies Private Limited
 
Ad

Similar to High Availability in the Cloud - Architectural Best Practices (20)

PPTX
Cloud Immortality - Architecting for High Availability & Disaster Recovery
RightScale
 
PDF
Aws cloud best_practices
saifam
 
PPTX
Aws best practices
Abed Abo Waddee'a
 
PPTX
How to Architect AWS for Mission-Critical Applications
LogicworksNYC
 
PDF
Aws cloud best_practices
Suruli Kannan
 
PDF
Architecting for Scale: How to Maintain High Availability and Manage Risk in ...
wfmjpcnl0160
 
PDF
Architecting for failures in the Cloud - Barcamp Bangalore 2013
P3 InfoTech Solutions Pvt. Ltd.
 
PPTX
AWS Session.pptx
SanketSaxena18
 
PDF
DPC 2016 - 53 Minutes or Less - Architecting For Failure
benwaine
 
PPTX
Deployment Checkup: How to Regularly Tune Your Cloud Environment - RightScale...
RightScale
 
PPTX
Running High Availability Websites with Acquia and AWS
Acquia
 
PPTX
Stacking up with OpenStack: Building for High Availability
OpenStack Foundation
 
PPTX
Stacking up with OpenStack: building for High Availability
OpenStack Foundation
 
PPTX
Cloud Services Powered by IBM SoftLayer and NetflixOSS
aspyker
 
PPTX
Embracing Failure - AzureDay Rome
Alberto Acerbis
 
PDF
Migrate and Govern Applications on Cloud Infrastructure
Manuj Bawa
 
PPTX
Nuvalo Nephophobia Seattle 2011
wlambert_2001
 
PPTX
Building Blocks for Private and Hybrid Clouds
RightScale
 
PPTX
Resilience and Security @ Scale: Lessons Learned
Jason Chan
 
PPTX
5 Quick Wins for the Cloud
RightScale
 
Cloud Immortality - Architecting for High Availability & Disaster Recovery
RightScale
 
Aws cloud best_practices
saifam
 
Aws best practices
Abed Abo Waddee'a
 
How to Architect AWS for Mission-Critical Applications
LogicworksNYC
 
Aws cloud best_practices
Suruli Kannan
 
Architecting for Scale: How to Maintain High Availability and Manage Risk in ...
wfmjpcnl0160
 
Architecting for failures in the Cloud - Barcamp Bangalore 2013
P3 InfoTech Solutions Pvt. Ltd.
 
AWS Session.pptx
SanketSaxena18
 
DPC 2016 - 53 Minutes or Less - Architecting For Failure
benwaine
 
Deployment Checkup: How to Regularly Tune Your Cloud Environment - RightScale...
RightScale
 
Running High Availability Websites with Acquia and AWS
Acquia
 
Stacking up with OpenStack: Building for High Availability
OpenStack Foundation
 
Stacking up with OpenStack: building for High Availability
OpenStack Foundation
 
Cloud Services Powered by IBM SoftLayer and NetflixOSS
aspyker
 
Embracing Failure - AzureDay Rome
Alberto Acerbis
 
Migrate and Govern Applications on Cloud Infrastructure
Manuj Bawa
 
Nuvalo Nephophobia Seattle 2011
wlambert_2001
 
Building Blocks for Private and Hybrid Clouds
RightScale
 
Resilience and Security @ Scale: Lessons Learned
Jason Chan
 
5 Quick Wins for the Cloud
RightScale
 
Ad

More from RightScale (20)

PDF
10 Must-Have Automated Cloud Policies for IT Governance
RightScale
 
PDF
Kubernetes and Terraform in the Cloud: How RightScale Does DevOps
RightScale
 
PDF
Optimize Software, SaaS, and Cloud with Flexera and RightScale
RightScale
 
PDF
Prepare Your Enterprise Cloud Strategy for 2019: 7 Things to Think About Now
RightScale
 
PDF
How to Set Up a Cloud Cost Optimization Process for your Enterprise
RightScale
 
PDF
Multi-Cloud Management with RightScale CMP (Demo)
RightScale
 
PDF
Comparing Cloud VM Types and Prices: AWS vs Azure vs Google vs IBM
RightScale
 
PDF
How to Allocate and Report Cloud Costs with RightScale Optima
RightScale
 
PDF
Should You Move Between AWS, Azure, or Google Clouds? Considerations, Pros an...
RightScale
 
PDF
Using RightScale CMP with Cloud Provider Tools
RightScale
 
PDF
Best Practices for Multi-Cloud Security and Compliance
RightScale
 
PDF
Automating Multi-Cloud Policies for AWS, Azure, Google, and More
RightScale
 
PDF
The 5 Stages of Cloud Management for Enterprises
RightScale
 
PDF
9 Ways to Reduce Cloud Storage Costs
RightScale
 
PDF
Serverless Comparison: AWS vs Azure vs Google vs IBM
RightScale
 
PDF
Best Practices for Cloud Managed Services Providers: The Path to CMP Success
RightScale
 
PDF
Cloud Storage Comparison: AWS vs Azure vs Google vs IBM
RightScale
 
PDF
2018 Cloud Trends: RightScale State of the Cloud Report
RightScale
 
PDF
Got a Multi-Cloud Strategy? How RightScale CMP Helps
RightScale
 
PDF
How to Manage Cloud Costs with RightScale Optima
RightScale
 
10 Must-Have Automated Cloud Policies for IT Governance
RightScale
 
Kubernetes and Terraform in the Cloud: How RightScale Does DevOps
RightScale
 
Optimize Software, SaaS, and Cloud with Flexera and RightScale
RightScale
 
Prepare Your Enterprise Cloud Strategy for 2019: 7 Things to Think About Now
RightScale
 
How to Set Up a Cloud Cost Optimization Process for your Enterprise
RightScale
 
Multi-Cloud Management with RightScale CMP (Demo)
RightScale
 
Comparing Cloud VM Types and Prices: AWS vs Azure vs Google vs IBM
RightScale
 
How to Allocate and Report Cloud Costs with RightScale Optima
RightScale
 
Should You Move Between AWS, Azure, or Google Clouds? Considerations, Pros an...
RightScale
 
Using RightScale CMP with Cloud Provider Tools
RightScale
 
Best Practices for Multi-Cloud Security and Compliance
RightScale
 
Automating Multi-Cloud Policies for AWS, Azure, Google, and More
RightScale
 
The 5 Stages of Cloud Management for Enterprises
RightScale
 
9 Ways to Reduce Cloud Storage Costs
RightScale
 
Serverless Comparison: AWS vs Azure vs Google vs IBM
RightScale
 
Best Practices for Cloud Managed Services Providers: The Path to CMP Success
RightScale
 
Cloud Storage Comparison: AWS vs Azure vs Google vs IBM
RightScale
 
2018 Cloud Trends: RightScale State of the Cloud Report
RightScale
 
Got a Multi-Cloud Strategy? How RightScale CMP Helps
RightScale
 
How to Manage Cloud Costs with RightScale Optima
RightScale
 

Recently uploaded (20)

PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Doc9.....................................
SofiaCollazos
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Doc9.....................................
SofiaCollazos
 

High Availability in the Cloud - Architectural Best Practices

  • 1. High Availability in the Cloud – Architecting Best Practices Watch the video of this webinar May 6, 2011 1
  • 2. Your Panel Today Presenting: • Michael Crandell, CEO Twitter: @michaelcrandell • Josep Blanquer, Sr. Systems Architect • Brian Adler, Professional Services Architect Q&A: • Jason Altobelli, Account Manager Please use the questions window to ask questions anytime! 2
  • 3. Agenda • Design for Failure • What happened in the AWS Outage • RightScale’s experience • Infrastructure abstraction and automation as building blocks for highly available applications • Architectural options to protect against cloud failures • Conclusions / Q&A Please use the questions window to ask questions anytime! 3
  • 4. Terminology • Fault Tolerance • Fault tolerance leverages redundancy and replication to enable systems to continue operating properly if one or more components fails • High Availability • Fault Tolerant systems are measured by their Availability in terms of planned and unplanned service outages for end users • 99% Availability = 3.65 days of downtime per year • 99.5% Availability = 1.83 days of downtime per year • 99.9% Availability = 8.76 hours of downtime per year • 99.99% Availability = 53 minutes of downtime per year • 99.999% Availability = 5.26 minutes of downtime per year • Disaster Recovery • The process, policies and procedures related to restoring critical systems after a catastrophic event 4
  • 5. Design for Failure • Large scale failures in the cloud are rare but happen • Application owners are ultimately responsible for availability and recoverability • Balance cost and complexity of HA efforts against risk you’re willing to bear • Fortunately, cloud infrastructure has made DR and HA remarkably affordable versus past options • Multi-server • Multi-AZ • Multi-region • Multi-cloud 5
  • 6. Assessing Risk vs Cost in Aviation Fatalities per 1M Hours Flown 20 Fatalities General Aviation 10 Fatalities Commuter Airline Large Air 4 Fatalities Carrier $ $$ $$$ Cost of Service 6
  • 7. What Happened in the April 21 AWS Outage? • Triggered by operator error during a router upgrade which funneled high- volume network traffic into a low-bandwidth control network used by EBS • Flooding of the control network caused a large number of EBS servers to be effectively isolated from one another, which broke volume replication, and caused these servers to start re-replicating the data to fresh servers • This large-scale re-replication storm in turn had two effects: • It failed in many cases causing the volumes to go offline for manual intervention • It flooded the EBS control plane with re-replication events that affected its operation across the entire us-east region • Steps taken by AWS: • Stopping the re-replication attempts to quiesce the system and prevent new volumes from being drawn into the outage • Isolated the affected availability zone from the EBS control plane to restore normal operation in other zones • AWS started to recover volumes 7
  • 8. RightScale’s Experience • ~2am – Monitoring server disks started to die like flies • Tried replacing them with fresh EBS drives – Failed • Tried re-launching them with fresh EBS drives in different Zones - Failed • ~3am – Realized EBS wasn’t going to be fixed anytime soon: Plan B time! • Revamped our monitoring ServerTemplate to use ephemeral volumes instead of EBS • Our architecture for monitoring data continually backs up and pulls data on demand from S3 • ~3:20am – Started re-launching affected monitoring servers • Over the next several hours, ~15% of monitoring servers failed and were easily re-launched • ~7am – Amazon announces EBS volume creation is fixed in other zones • ~11am – EBS disk failures hit our master database • Chose one of our slaves (from our zone 1d) to be promoted • In a few minutes we had the new master up and running • It took a while to achieve needed performance due to its cold working set 8
  • 9. Agenda • Design for Failure • What happened in the AWS Outage • RightScale’s experience • Infrastructure abstraction and automation as building blocks for highly available applications • Architectural options to protect against cloud failures • Conclusions / Q&A Please use the questions window to ask questions anytime! 9
  • 10. What do we mean by Cloud? • A cloud is a physical data center entity behind an API endpoint • What do you mean by that? • Amazon Web Services is not a cloud • EC2 is not a cloud • Eucalyptus, Cloud.com are not clouds • EC2 East, EC2 AsiaPacific, my private cloud… are clouds • An availability zone is not a cloud, it’s part of one • Think of a cloud as a “resource pool” accessed via API 10
  • 11. Overcoming Multi-Cloud Pain Points • APIs differ • Different sets of resources • Different formats, encodings and versions • Abstractions and features differ • Network architectures differ: VLANs, security groups, NAT, IPs, ACLs, … • Storage architectures differ: local/attachable disks, backup, snapshots, … • Hypervisors, machine images…cost models, billing, reporting…etc. • They are truly different beasts, with different semantics • So make sure you: • Design using generic concepts yet deploy using cloud specifics • Have tools that translate your concepts to cloud-specific ones • Think of how to share resources across clouds (i.e. data sharing) 11
  • 12. How does RightScale help with Abstraction? • Unified Multi-Cloud UI and new API (in progress) • Multi-Cloud Servers/Arrays • Multi-Cloud ServerTemplates • Multi-Cloud Images • Others in the pipeline I 1:N I 1:1 ServerTemplate I Server Image I I runnable abstraction software config runtime config cloud resources 12
  • 13. Infrastructure Abstraction & Automation as Building Blocks of Highly Available Applications • Multi-Cloud Dashboard, Architecture & Application Portability • Single pane of glass through UI and API • Allows simplified deployments across multiple regions/clouds • Automated Deployments (Provisioning and Configuration Mgmt) • Reproducible Configurations with Change Control - Avoids manual configuration errors • Cost effective – Pay as you go for backup. It’s easy and inexpensive to test fault tolerance. • Advanced Server and Deployment Monitoring • Custom monitoring dashboard, custom graphing, cluster graphing • Automated Scaling and Operations • Easy to scale up/down, replace failed/unhealthy instances, backup data, replicate data, etc • Library of Cloud Optimized Solution Stacks • RightImages, RightScripts, and ServerTemplates 13
  • 14. Agenda • Design for Failure • What happened in the AWS Outage • RightScale’s experience • Infrastructure abstraction and automation as building blocks for highly available applications • Architectural options to protect against cloud failures • Conclusions / Q&A Please use the questions window to ask questions anytime! 14
  • 15. HA/DR Checklist for Risk Mitigation  Determine who owns the architecture, DR process and testing.  Develop expertise in house and / or get outside help.  Conduct a risk assessment for each application.  Specify your target Recovery Time Objective and Recovery Point Objective.  Design for failure starting with application architecture.  Implement HA best practices balancing cost, complexity and risk.  Automate infrastructure for consistency and reliability.  Abstract applications for flexibility and portability.  Document operational processes and automations.  Test the failover... then test it again.  Release the Chaos Monkey. 15
  • 16. Application Architecture Deployment Options • Storage Options • Local storage, EBS, S3, CloudFiles, Gluster, etc. • DNS Configuration Options • DNS APIs for dynamic configuration (Route53, DynDNS, DNS Made Easy) • Load Balancing Options • HA Proxy or AWS ELB to distribute traffic across multiple instances / AZs • Server Array Options • Create scalable tiers for web and application servers • Database Options • MySQL (EBS with snapshots to S3 or Local Disk with LVM snapshots) • Database Manager Features (Automated snapshots, replication, slave promotion, striping) • AWS RDS • Database Sharding • NoSQL Databases 16
  • 17. General HA Best Practices  Avoid single points of failure  Always place one of each component (load balancers, app servers, databases) in at least two AZs  Maintain sufficient capacity to absorb AZ / cloud failures  Replicate data across AZs and backup or replicate across clouds/regions for failover  Setup monitoring, alerts and operations to identify and automate problem resolution or failover process  Design stateless applications for resilience to reboot / relaunch 17
  • 18. Multi-AZ Example Consider local storage for additional slave database to remove dependency on EBS (Use LVM to snapshot backups) Consider distributed NoSQL databases Snapshot EBS volume for with the same distribution considerations. backups so the database can Place Slave databases in one Spread primary and replica nodes across be readily recovered within or more AZs for failover. multiple AZs. Place as many as you need the region. for required resiliency. 18
  • 19. Multi-Cloud Cold / Warm / Hot DR Options No Downtime Hot HA (Live/Live Config) > 5 Minutes Hot DR (Least Common) > 1 Hour Warm DR (Recommended) > Few Hours Cold DR (Most Common) $ $$ $$$ $$$$ 19
  • 20. Multi-Cloud Cold DR Example Staged Server Configuration and generally no staged data 20
  • 21. Multi-Cloud Warm DR Example Staged Server Configuration, pre-staged data and running Slave Database Server 21
  • 22. Multi-Cloud Hot DR Example Parallel Deployment with all servers running but all traffic going to primary 22
  • 23. Multi-Cloud Hot HA Example Live/Live configuration. May use Geo-target IP services to direct traffic to regional load balancers. 23
  • 24. Multi-Cloud Hot HA Example Multi-Cloud looks similar to Multi-AZ… but there are additional problems to solve as some resources are not shared You need DNS management across clouds or a global load balancer Images for cloud servers are specific to the cloud/region. You need to copy or replicate data yourself as EBS snapshots are specific to the source AZ. Getting the data out requires a slave sync or taking LVM 24 snapshots and transferring the data.
  • 25. So What’s Best? • Design for failure • No one size fits all solution • Every application/components has its own architecture • Tradeoffs between levels of resiliency and cost • The options available in the cloud today are unprecedented • Capabilities for global redundancy • Time to access • Investment required • Follow our High Availability Checklist! 25
  • 26. Special Offer – High Availability Assessment & Design Recommendations Become a RightScale customer in May and receive: Free High Availability Assessment Free Design/Architecture Recommendations Half Off Onboarding Fee Ready to get started? Contact us at [email protected] or (866) 720-0208 Learn More – RightScale Free Edition White Paper Library Webinar Library RightScale.com/free Rightscale.com/whitepapers RightScale.com/webinars RightScale User Conference – June 8 in NYC! Register here: www.rightscale.com/conference 26

Editor's Notes

  • #13: RightScale already provides several abstractions that are cloud-agnostic. In fact you’re already using probably all of them (despite you might only be deployed in 1 cloud)..We have the concept of a server (something that can be launched/running on any cloud)The concept of a ServerTemplate, which specifies the configuration we want on a serverAnd the concept of an MCI which specifies which image configuration we want (lower-level stuff)And all these things are RS concepts…the cloud is not really involved in all this…
  • #20: Cold DR(Most common... hours) Staged Server Configuration and generally no staged data. Bring up the servers and load the data to failover. Cold DR failover is typically manual.Warm DR(Recommended... >hour) Staged Server Configuration, pre-staged data and running Database Slave Server. Warm DR failover is typically manual but can be automated.Hot DR(Least common... but needed if <5 min) Parallel Deployment with all servers running but all traffic going to primary. Hot DR failover is normally automated.Hot HALive/Live configuration. May use Geo-target IP services to direct traffic to regional load balancers. Failover to other region if one has problems. Hot HA is normally seamlessly automated.
  • #25: Differences to clarify from Multi-AZ…Don’t be fooled by similarity of appearance…Some resources are not shared across clouds (images, Elastic IPs and Snapshots)…These are problems you have to solve… Images we have made easyElastic IPsyou need a global load balancer somewhere… or use DNSHave to copy the data yourself for snapshots. You can have a replicating slave in the cloud…Or backups to a common place like S3 (constraint is that EBS snapshots are only good in the same AZ)To get a snapshot multi- cloud portable you 1) slave sync or 2) take LVM snapshots and upload the data somewhere