您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 冶金工业 > 使用亚马逊Web服务(AWS)构建高可用架构
HIGHLYAVAILABLEARCHITECTURESWITHAMAZONWEBSERVICESLET’SBUILDAWEBSITELET’SBUILDAHIGHLYAVAILABLEWEBSITELET’SBUILDAHIGHLYAVAILABLEANDDURABLEWEBSITELET’SBUILDAHIGHLYAVAILABLE,SCALABLEANDDURABLEWEBSITELET’SBUILDAHIGHLYAVAILABLE,SCALABLEANDDURABLEWEBSITETHATREQUIRESLOWMAINTENANCE+SERVICESON-DEMANDPAYASYOUGOELASTICAWSBUILDINGBLOCKSInherentlyFault-TolerantServicesFault-TolerantwiththerightarchitectureAmazonS3AmazonSimpleDBAmazonDynamoDBAmazonCloudFrontAmazonSWFAmazonSQSAmazonSNSAmazonSESAmazonRoute53ElasticLoadBalancingAmazonEC2AmazonEBSAmazonRDSAmazonVPCAWSIAMAWSElasticBeanstalkAmazonElastiCacheAmazonEMRAmazonCloudSearchAmazonRedshiftAmazonKinesisAmazonCognitoAmazonAppStreamAmazonCloudSearch#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
本文标题:使用亚马逊Web服务(AWS)构建高可用架构
链接地址:https://www.777doc.com/doc-5090533 .html