10 Key Performance Indicators for MongoDB

10 Key Performance Indicators for MongoDB

ID:42562740

大小:1.02 MB

页数:56页

时间:2019-09-17

10 Key Performance Indicators for MongoDB_第1页
10 Key Performance Indicators for MongoDB_第2页
10 Key Performance Indicators for MongoDB_第3页
10 Key Performance Indicators for MongoDB_第4页
10 Key Performance Indicators for MongoDB_第5页
资源描述:

《10 Key Performance Indicators for MongoDB》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、ItAin'tTasseography10KeyPerformanceIndicatorsforMongoDBKyleBankerkyle@10gen.com@hwaetQuestionsaboutspeedMongoDBisahigh-performancedatabase,buthowdoIknowthatI'mgettingthebestperformance?We'llcover:ToolsPerformanceIndicatorsRemediesPrelude:Tools1.mongostat2.serverStatusdb.

2、serverStatus();{"host":"arete.local","version":"1.9.0-pre-","process":"mongod","uptime":619052}//Lotsmorestats....3.Profiler>db.setProfilingLevel(2){"was":0,"slowms":100,"ok":1}>db.system.profile.find().sort({$natural:-1}){"ts":ISODate("2011-05-24T14:20:09.711Z"),"info":

3、"querydocs.spreadsheetsreslen:257nscanned:1805535query:{query:{},$explain:true}nreturned:11407ms","millis":1407}4.MonitoringserviceNagiosMuninMMSIndicators1.SlowopsHere'showtheyappearinthelog:SunMay2219:01:47[conn10]querydocs.spreadsheetsntoreturn:100reslen:510436nscanne

4、d:19976{username:"Minner,Cori"}nreturned:100147ms2.Replicationlagtest-rs:PRIMARY>rs.status(){"set":"test-rs","date":ISODate("2011-05-24T14:19:35Z"),"myState":1,"members":[{"_id":0,"name":"localhost:30000","stateStr":"PRIMARY","optimeDate":ISODate("2011-05-18T19:19:26Z"),

5、},{"_id":1,"name":"localhost:30001","stateStr":"SECONDARY","optimeDate":ISODate("2011-05-22T14:14:29Z"),}}3.Residentmemory>db.serverStatus().mem{"bits":64,//Need64,not32"resident":7151,//Physicalmemory"virtual":14248,//Files+heap"mapped":6942//Datafiles}VirtualMemoryPhys

6、ical(PerProcess)MemoryRAMDiskusedocs>db.stats(){"db":"docs","collections":3,"objects":805543,"avgObjSize":5107.312096312674,"dataSize":4114159508,//~4GB"storageSize":4282908160,//~4GB"numExtents":33,"indexes":3,"indexSize":126984192,//~126MB"fileSize":8519680000,//~8.5GB

7、"ok":1}Note:fileSizeincludepre-allocation.storageSize+indexSize=~5GB4.Pagefaults>db.serverStatus().extra_info{"note":"fieldsvarybyplatform","heap_usage_bytes":210656,"page_faults":2381}5.Write-lockpercentage>db.serverStatus().globalLock{"totalTime":194616196335,"lockTime

8、":53865711,"ratio":0.000276779178785711,}ConcurrencyOnewriterORmanyreaders.Global.Yieldsonlong-runningo

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。