免费预览已结束,剩余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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 高级商务写作技巧培训教材与练习
- 2026届辽宁葫芦岛协作校化学高一第一学期期末调研试题含解析
- 高校课程思政教学资源开发与使用
- 精神心理科医师年度工作总结
- 英语基础测验题库与解析
- 教师职业道德评估标准体系
- 教师资格小学生心理学试题汇编
- 2025年家用智能健康监测床垫市场分析报告
- 2025年基于机器视觉的智能巡检机器人在港口起重机中的应用报告
- 生态环境教学大纲与复习资料
- 汽车修理厂应急预案演练计划、方案
- 风电叶片运输安装施工方案
- 2025年陕工院计算机考试题及答案
- 空调租赁合作协议合同
- 网格员招聘考试(公共基础知识)历年参考题库含答案详解(5卷版)
- 北京三帆中学2026届九年级物理第一学期期中经典试题含解析
- 平衡计分卡在金融绩效管理中的应用研究
- 2025警务辅助人员招聘考试(时事政治+公安基本法律)题库及答案
- 2025上海闵行区古美路街道招聘社区综合协管员18人备考考试题库附答案解析
- GB/T 46406-2025科研项目数据管理指南
- 柔性灯带专业知识培训课件
评论
0/150
提交评论