使用亚马逊Web服务(AWS)构建高可用架构

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

HIGHLYAVAILABLEARCHITECTURESWITHAMAZONWEBSERVICESLET’SBUILDAWEBSITELET’SBUILDAHIGHLYAVAILABLEWEBSITELET’SBUILDAHIGHLYAVAILABLEANDDURABLEWEBSITELET’SBUILDAHIGHLYAVAILABLE,SCALABLEANDDURABLEWEBSITELET’SBUILDAHIGHLYAVAILABLE,SCALABLEANDDURABLEWEBSITETHATREQUIRESLOWMAINTENANCE+SERVICESON-DEMANDPAYASYOUGOELASTICAWSBUILDINGBLOCKSInherentlyFault-TolerantServicesFault-TolerantwiththerightarchitectureAmazonS3AmazonSimpleDBAmazonDynamoDBAmazonCloudFrontAmazonSWFAmazonSQSAmazonSNSAmazonSESAmazonRoute53ElasticLoadBalancingAmazonEC2AmazonEBSAmazonRDSAmazonVPCAWSIAMAWSElasticBeanstalkAmazonElastiCacheAmazonEMRAmazonCloudSearchAmazonRedshiftAmazonKinesisAmazonCognitoAmazonAppStreamAmazonCloudSearch#DESIGNFORFAILURE«Everythingfailsallthetime»WernerVogelsCTOofAmazonYOURGOAL:ApplicationsshouldcontinuetofunctioneveniftheunderlyingphysicalhardwarefailsorisremovedorreplacedAVOIDSINGLEPOINTSOFFAILURE.ASSUMEEVERYTHINGFAILS,ANDDESIGNBACKWARDS.AVOIDSINGLEPOINTSOFFAILURE.ASSUMEEVERYTHINGFAILS,ANDDESIGNBACKWARDS.HEALTHCHECKS#USEMULTIPLEAVAILABILITYZONESUS-WEST(Oregon)EU-WEST(Ireland)ASIAPAC(Tokyo)US-WEST(N.California)SOUTHAMERICA(SaoPaulo)US-EAST(Virginia)AWSGovCloud(US)ASIAPAC(Sydney)ASIAPAC(Singapore)CHINA(Beijing)US-WEST(Oregon)EU-WEST(Ireland)ASIAPAC(Tokyo)US-WEST(N.California)SOUTHAMERICA(SaoPaulo)US-EAST(Virginia)AWSGovCloud(US)ASIAPAC(Sydney)ASIAPAC(Singapore)CHINA(Beijing)AMAZONRDSMULTI-AZANYGIVENNIGHT,150,000PEOPLEAREHOSTED1000sOFSERVERS,TBsOFSTORAGE5PERS.OPERATIONSTEAM#BUILDFORSCALEHEALTHCHECKS+AUTOSCALINGHEALTHCHECKS+AUTOSCALING=SELF-HEALING#LOOSECOUPLINGPUBLISH&NOTIFYRECEIVETRANSCODEPUBLISH&NOTIFYRECEIVETRANSCODEPUBLISH&NOTIFYRECEIVEPUBLISH&NOTIFYRECEIVETRANSCODEVISIBILITYTIMEOUTBUFFERINGCLOUDWATCHMETRICSFORAMAZONSQS+AUTOSCALINGBUILDLOOSELYCOUPLEDSYSTEMSTheloosertheyarecoupled,thebiggertheyscale,themorefaulttoleranttheyget…#AUTOMATE&TEST=PROGRAMMABLEPLATFORMIFYOUCANPROGRAMITYOUCANAUTOMATEIT(weekday)1,079Maxnumberofdeploymentsinasinglehour10,000Meannumberofhostssimultaneouslyreceivingadeployment30,000MaxnumberofhostssimultaneouslyreceivingadeploymentDEPLOYMENTSATAMAZON.COM1.5BILLIONPAGEVIEWSOCTOBER2012$83MILLIONINTRANSACTIONS4.2MILLIONITEMSSOLD30DEPLOYSPERDAY1DEPLOYEVERY20MINUTESAWSCLOUDFORMATIONSTACK-BASEDDEPLOYMENTSERVICECLOUDFORMATIONTEMPLATE{Description:CreateRDSwithusernameandpassword,Resources:{MyDB:{Type:AWS::RDS::DBInstance,Properties:{AllocatedStorage:500,DBInstanceClass:db.m1.small,Engine:MySQL,EngineVersion:5.5,MasterUsername:MyName,MasterUserPassword:MyPassword}}}}AWS::CloudFormation::Init:{config:{packages:{yum:{mysql:[],mysql-server:[],httpd:[],php:[],php-mysql:[]}},sources:{/var/:}}CLOUDFORMATIONTEMPLATEARCHITECTUREASCODESOFTWAREVERSIONS+ARCHITECTUREVERSIONSTESTENVIRONMENTSUSINGAMAZONEC2TOSIMULATE2.4MILLIONPLAYERSNETFLIXCHAOSMONKEYRANDOMLYTERMINATEINSTANCESTOTESTFAULT-TOLERANCE1.DESIGNFORFAILURE2.USEMULTI-AZs3.BUILDFORSCALE4.DECOUPLECOMPONENTS5.AUTOMATE&TEST«Civilisationadvancesbyextendingthenumberofoperationswecandowithoutthinkingaboutthem.»–AlfredNorthWhitehead

1 / 131
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功