已阅读5页,还剩52页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
CapacityManagement,forWebOperations,JohnAllspawOperationsEngineering,thebookImwriting,?,RulesofThumbPlanning/ForecastingStupidCapacityTricks,(withsomeFlickrstatisticssprinkledin),bugs(disguisedascapacityproblems)edgecases(disguisedascapacityproblems)securityincidentsrealcapacityproblems*,*(shouldbethelastthingyouneedtoworryabout),Thingsthatcancausedowntime,Capacity!=Performance,ForgetaboutperformanceforrightnowMeasurewhatyouhaverightNOWDontcountonitgettinganybetter,ThankYouHPCIndustry!,AutomatedStuffScalableMetricCollection/Display,alotofgreatdeploymentandmanagementtrickscomefromthem,adoptedbywebops,GoodMeasurementTools,recordandstoremetricsin/outcustommetricseasilycomparelightweight-ish,Cloudsneedplanningtoo,MakesdeploymentandprocurementeasyandquickButcloudsarestillresourceswithcostsandlimits,justlikeyourownstuffBlack-boxes:youmayneedtopayevenmoreattentionthanbefore,Metrics,SystemStatistics,Metrics,“Application”Level,(photosprocessedperminute),(averageprocessingtimeperphoto),(apacherequests),(concurrentbusyapacheprocs),Metrics,App-levelmeetssystem-level,here,totalCPU=1.12*#busyapacheprocs(ymmv),2400,photosperminutebeinguploadedrightNOW(Tuesdayafternoon),Ceilings,themostamountof“work”yourresourceswillallowbeforedegradationorfailure,ForgetBenchmarking,Findyourceilings,whatyouhaveleft,Userealliveproductiondatatofindceilings,Production:“itslikealab,butbigger!”,Like:databaseceilings,replicationlag:bad!,Ceilings,35,000,photorequestspersecondonaTuesdaypeak,SafetyFactors,SafetyFactors,Ceiling*FactorofSafety=URLIMITZ,SafetyFactors,webserver!,“safe”ceiling85%CPU,SafetyFactors,85%totalCPU=76busyapacheprocs,SafetyFactors,YahooFrontPagelinktoChineseNewYearPhotos,(photorequests/second),(8%spike),Forecasting,Forecasting,FictionalExample:webservers,Forecasting,Fictionalexample:15webservers.1week.,peakoftheweek,.biggersample,6weeks.isolatethepeaks.,Forecasting,.”AddaTrendline”withsomedecentcorrelation.,Forecasting,now,Forecasting,15servers76busyapacheproclimit=1140totalprocs,Forecasting,(week#10,duh),(1140-726)/42.751=9.68,WritingexcelmacrosisboringAllwewantis“daysremaining”,soallweneedisthecurve-fit,ForecastingAutomation,Usetoautomatethecurve-fit,Forecasting,FictionalExample:storageconsumption,ForecastingAutomation,actualflickrstorageconsumptionfromearly2005,inGB(ceilingisfictional),ForecastingAutomation,cmdlinescript,output,jallspaw:$cfityk./fit-storage.fit1#Fitykscript.Fitykversion:0.8.220guessQuadraticNewfunction%_1wascreated.4fitInitialvalues:lambda=0.001WSSR=464.564#1:WSSR=0.90162lambda=0.0001d(WSSR)=-463.663(99.8059%)#2:WSSR=0.736787lambda=1e-05d(WSSR)=-0.164833(18.2818%)#3:WSSR=0.736763lambda=1e-06d(WSSR)=-2.45151e-05(0.00332729%)#4:WSSR=0.736763lambda=1e-07d(WSSR)=-3.84524e-11(5.21909e-09%)Fitconverged.Betterfitfound(WSSR=0.736763,was464.564,-99.8414%).5infoformulain0#storage-consumption14147.4+146.657*x+0.786854*x26quitbye.,ForecastingAutomation,(SAME),fitykgave:y=0.786854x2+146.657x+14147.4(R2=99.84)Excelgave:y=0.7675x2+146.96x+14147.3(R2=99.84),CapacityHealth,12,629nagioschecks1314hosts6datacenters4photo“farms”farm=2DCs(east/west),HighandLowWaterMarks,alertifhigher,alertiflower,Perserver,squidrequestspersecond,Agooddashboardlookssomethinglike.,(yes,fictionalnumbers),DiagonalScaling,ImageprocessingmachinesReplaceDellPE860swithHPDL140G3s,verticallyscalingyouralreadyhorizontalnodes,DiagonalScalingexample:imageprocessing,4cores,8cores,(aboutthesameCPU“usage”perbox),45images/minpeak,140images/minpeak,(sameCPUusage,but3xmorework)“processing”meansmaking4sizesfromoriginals,DiagonalScalingexample:imageprocessingthroughput,DiagonalScalingexample:imageprocessing,3.52,terabyteswillbeconsumedtoday(onaTuesday),2ndOrderEffects(bewarethewanderingbottleneck),runninghot,soaddmore,2ndOrderEffects(bewarethewanderingbottleneck),runninggreatnow,somoretraffic!,nowtheserunhot,StupidCapacityTricks,StupidCapacityTricksquickanddirtymanagement,DSH,rootnetmon101#catgroup.of.serverswww100www118dbcontacts3admin1admin2,StupidCapacityTricksquickanddirtymanagement,rootnetmon101#dsh-Ngroup.of.serversdshdateexecutingdatewww100:MonJun2314:14:53UTC2008www118:MonJun2314:14:53UTC2008dbcontacts3:MonJun2307:14:53PDT2008admin1:MonJun2314:14:53UTC2008admin2:MonJun2314:14:53UTC2008dsh,StupidCapacityTricksTurnStuffOFF,Disableheavy-ishfeaturesofthesite(on/offswitches)Wehave195differentthingstodisableincaseofemergency.,StupidCapacityTricksTurnStuffOFF,uploads(photo)uploads(video)uploadsbyemailvariousAPIthingsvariousmobilethingsvarioussearchthingsetc.,etc.,Hostyouroutage/status/blogpageinmorethanonedatacenter.Tellyouruse
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年度船舶燃油供应及船舶维修一体化服务合同范本4篇
- 2025版新能源汽车关键铝材供应及技术服务合同4篇
- 二零二五年度棉被产品出口代理合同4篇
- 二零二五年度艺术画廊大楼楼顶艺术品展览租赁合同4篇
- 2025年度领养儿童身心健康保障服务合同2篇
- 二零二五年度互联网医院牌照租赁服务协议
- 二零二五年度人工智能教育平台合作项目合同4篇
- 二零二五年度面条品牌形象设计与广告投放合同2篇
- 二零二五年度高品质铝合金产品购销合同2篇
- 二零二五年度船舶港口物流服务合作协议4篇
- 安徽省合肥市包河区2023-2024学年九年级上学期期末化学试题
- 《酸碱罐区设计规范》编制说明
- PMC主管年终总结报告
- 售楼部保安管理培训
- 仓储培训课件模板
- 2025届高考地理一轮复习第七讲水循环与洋流自主练含解析
- GB/T 44914-2024和田玉分级
- 2024年度企业入驻跨境电商孵化基地合作协议3篇
- 《形势与政策》课程标准
- 2023年海南省公务员录用考试《行测》真题卷及答案解析
- 桥梁监测监控实施方案
评论
0/150
提交评论