




免费预览已结束,剩余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-2026学年北师大版一年级数学上册
- 农村厨师安全培训课件
- 2025-2026学年人教版(2024)小学体育与健康三年级(全一册)教学设计(附目录P114)
- 起重机作业人员Q2证理论考试练习题含答案
- 四川遂宁2021-2024年中考满分作文64篇
- 轧钢安全规程培训课件
- 2025年下半年上海市新航社区服务总站招聘5人备考练习题库及答案解析
- 2025版防洪堤坝加固工程施工合同
- 2025年消防经济学试题及答案
- 2025-2026学年人教版(2024)小学美术三年级上册教学计划及进度表
评论
0/150
提交评论