Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC

6,037 views

Published on

Published in: Technology
  • Be the first to comment

Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC

  1. 1. Building Fault-TolerantApplications in the CloudAdvanced Solutions ArchitectureMiles Ward
  2. 2. Faults?FacilitiesHardwareNetworkingCodePeople
  3. 3. What is “Fault-Tolerant”?Degrees of risk mitigation - not binaryAutomatedTested!
  4. 4. AgendaThe AWS ApproachBuilding BlocksSuccess Example:Design Patterns
  5. 5. Old School Fault-Tolerance: Build Two
  6. 6. Cloud Computing Benefits No Up-Front Low Cost Pay Only for Capital Expense What You Use Self-Service Easily Scale Improve Agility & Infrastructure Up and Down Time-to-Market Deploy
  7. 7. Cloud Computing Fault-Tolerance Benefits No Up-Front HA Low Cost Pay for DR Only Capital Expense Backups When You Use it Self-Service Easily Deliver Fault- Improve Agility & DR Infrastructure Tolerant Applications Time-to-Recovery Deploy
  8. 8. AWS Cloud allows Overcast Redundancy Have the shadow duplicate of your infrastructure ready to go when you need it……but only pay for whatyou actually use
  9. 9. Old Barriers to HAare now SurmountableCostComplexityExpertise
  10. 10. AWS Building Blocks: Two Strategies Inherently fault- Services that are fault-toleranttolerant services with the right architecture S3 Amazon EC2 SimpleDb VPC DynamoDB Cloudfront EBSSWF, SQS, SNS, SES RDS Route53Elastic Load Balancer Elastic Beanstalk ElastiCache Elastic MapReduce IAM
  11. 11. Resources DeploymentThe Stack: Management Configuration Networking Facilities Geographies
  12. 12. EC2 Instances Amazon Machine ImagesThe Stack: CW Alarms - AutoScaling Cloudformation - Beanstalk Route53 – ElasticIP – ELB Availability Zones Regions
  13. 13. Regional DiversityUse Regions for: Latency • Customers • Data Vendors • Staff Compliance Disaster Recovery … and Fault Tolerance!
  14. 14. Proper Use of Multiple Availability Zones
  15. 15. Network Fault-Tolerance Tools107.22.18.45 isn’t fault-tolerant but 50.17.200.146 is: EIPElastic Load BalancingAutomated DNS: Route53New! Latency-Based Routing
  16. 16. Cloudformation – Elastic Beanstalk Q: Is your stack unique?
  17. 17. Cloudwatch – Alarms – AutoScaling
  18. 18. AMI’sMaintenance is criticalAlternatives: Chef, Puppet, cfn-init, etc.New! When in doubt: 64-bitReplicate for DR
  19. 19. EC2 InstancesConsistent, reliable building block100% API controlledReserved InstancesEBSImmense Fleet Scale
  20. 20. New EC2 VPC feature:Elastic Network Interface Up to 2 Addresses Span Subnets Attach/Detach Public or Private
  21. 21. Example:a “fork-lifted” app
  22. 22. Example:Fault-Tolerant
  23. 23. Why mess with all of that?
  24. 24. Design For FailureSPOF
  25. 25. Copyright © 2011 Amazon Build Loosely Coupled Systems Web ServicesTightCouplingLoose Couplingusing Queues
  26. 26. Use the right approach for each tier
  27. 27. Fault-Tolerant Front-end SystemsAddressing: Route53, EIP Auto Scaling Amazon CloudFrontDistribution: Multi-AZ, ELB, CloudfrontRedundancy: Auto-Scaling Amazon CloudWatch Amazon Route 53 Elastic LoadMonitoring: Cloudwatch Balancer Elastic IP AWS ElasticPlatform: Elastic Beanstalk Beanstalk
  28. 28. Fault-Tolerant Data-Tier SystemsTunedPatchedCachedShardedReplicatedBacked UpArchivedMonitored
  29. 29. Fault-Tolerant Data-Tier SystemsTunedPatchedCached LOTSShardedReplicated OFBacked Up WORKArchivedMonitored
  30. 30. AWS Fault-Tolerant Data-Tier ServicesS3SimpleDB Amazon Relational Database Service Amazon Elastic (RDS) MapReduce Amazon Simple Storage ServiceEMR (S3)New! DynamoDB Amazon SimpleDB Amazon DynamoDBRDS Amazon ElastiCache
  31. 31. RDS Fault-Tolerant FeaturesMulti-AZ DeploymentsRead Replicas RDS DB Instance RDS DB Instance Multi-AZ StandbyAutomated BackupsSnapshots
  32. 32. New! Storage Gateway Your Datacenter Amazon Elastic Compute Cloud (EC2) AWS Storage Gateway VM SSL Clients Internet On-premises Host or Direct AWS Storage Amazon Simple Connect Gateway Service Storage Service (S3)Application Servers Amazon Elastic Block Storage (EBS) Direct Attached or Storage Area Network Disks
  33. 33. Test! Use a Chaos Monkey! Prudent Conservative Professional …and all the cool kids are doing ithttp://techblog.netflix.com/2010/12/5-lessons-weve-learned-using-aws.html
  34. 34. Thank You! @milesward

×