M202: MongoDB Advanced Deployment and Operations - Chapter 5: Log Files
2016-09-06 15:46
309 查看
5.1: Finding configuration errors in log files
bindIp
5.2: Examining a Log File with Mtools
# mloginfo --queries mtools_example.log source: mtools_example.log host: unknown start: 2014 Jun 21 00:11:00.041 end: 2014 Jun 21 00:12:59.999 date format: iso8601-utc length: 174406 binary: unknown version: = 2.6.x (iso8601 format) storage: unknown QUERIES namespace operation pattern count min (ms) max (ms) mean (ms) 95%-ile (ms) sum (ms) grilled.indigo.papaya update {"_id": 1, "l": {"$not": 1}} 4227 0 3872 482 1189.4 2038017 grilled.indigo.grapefruit update {"_id": 1} 1170 0 2516 479 1196.85 560682 grilled.indigo.salal.berry update {"clusterId": 1} 843 0 2805 502 1385.0 423825 grilled.indigo.papaya update {"_id": 1} 4760 0 2557 82 583.15 393992 grilled.indigo.papaya remove {"_id": 1} 716 0 2544 462 1066.5 331478 grilled.indigo.tangerine update {"_id": 1} 380 0 3037 484 1144.2 184188 ...
{"_id": 1, "l": {"$not": 1}}
5.3: Plotting a Log File with Mtools
# mlogfilter --namespace grilled.indigo.papaya --pattern '{"_id": 1, "l": {"$not": 1}}' mtools_example.log > a.log # mplotqueries --type histogram a.log --bucketsize 1 HISTOGRAM plot id #points group 1 4227 grilled.indigo.papaya keyboard shortcuts (focus must be on figure window): p switch to pan mode o switch to zoom mode left/right back / forward h home (original view) l toggle log/linear y-axis f toggle fullscreen 1-9 toggle visibility of top 10 individual plots 1-9 0 toggle visibility of all plots - toggle visibility of legend g toggle grid c toggle 'created with' footnote s save figure q quit mplotqueries 87 grilled.indigo.papaya events in 1 sec beginning at Jun 21 00:12:36
(OK) 60-90 ops/s
120-180 ops/s
300-450 ops/s
600-900 ops/s
1200-1080 ops/s
-eof-
相关文章推荐
- M202: MongoDB Advanced Deployment and Operations - Chapter 4: Sharded Cluster Management
- !!!Chapter 12 Advanced Data Structure and Implementation
- Creating, Updating, and Deleting Documents(Chapter 3 of MongoDB The Definitive Guild)
- Chapter 7. Advanced DirectDraw and Bitmapped Graphics
- Chapter 1. General Unix and Advanced C
- WCF 4 Step By Step Chapter 7 Note(Maintaining State and Sequencing Operations)
- !!!Chapter 14 Overloaded Operations and Conversions (14.1 ~ 14.5)
- MongoDB Manual 3.6 The mongo Shell CRUD operations create, read, update, and delete documents(增删改查)
- !!!Chapter 14 Overloaded Operations and Conversions (14.6 ~ 14.9)
- Chapter 1 Securing Your Server and Network(12):保护链接服务器
- thinkCSpy学习笔记: Chapter 15 Classes and methods 类和方法
- Memcached and Mongodb
- Chapter 1 Securing Your Server and Network(13):配置端点安全性
- Medians and Order Statistics - Introduction to Algorithm - Summary of Chapter 9
- Chapter 2 Native Types and Statements
- Security Tutorials系列文章第三章:Forms Authentication Configuration and Advanced Topics
- Chapter 1 Securing Your Server and Network(14):限制功能——xp_cmdshell 和OPENROWSET
- Developing iPhone Apps with iOS4 SDK, Deploying to 3.x Devices : Base SDK and iPhone OS Deployment T
- Stopping and Restarting Oracle Restart for Maintenance Operations
- Use advanced interactive viewer to move, zoom and record photos, producing a unique sightline flash