SlideShare a Scribd company logo
Technical Support Manager, North America @ 10gen
Nicholas Tang
#MongoNYC
Performance Tuning and
Monitoring Using MMS
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Agenda
• What is MMS?
• Why use it?
• Setting it up and getting around
• Performance and monitoring (the fun stuff)
• Wrap up
What is MMS?
Performance Tuning and Monitoring Using MMS, Nicholas Tang
What is MMS?
• The MongoDB Monitoring Service: a free
service (or software) for monitoring and
management
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Metric collection and
reporting
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Alerting
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Event Tracking
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Logs and Profile data
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Hardware stats (CPU, disk)
Performance Tuning and Monitoring Using MMS, Nicholas Tang
DB stats
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Basic user management
What’s in it for me?
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Why?
• Great high level view + detailed metrics
• Low effort, high-return
• Makes it easier for us to help you!
• Makes you more attractive, promotes bone
strength and muscle tone *
* - these last points still under review
How do I use this crazy
thing?
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Setting it up
http://mms.10gen.com/help/monitoring/tutorial/
• Setup an account
• Install the agent
• Add your hosts
• Optional: hardware stats through munin-node
• Optional: enable logging and profiling
• More info:
http://mms.10gen.com/help/monitoring/install/
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Notes
• Agent written in Python (moving to Go)
• Failover: run multiple agents (1 primary)
• Hosts: use CNAMEs, especially on AWS!
• You can use a group per env (each needs an
agent)
• Connections are over SSL
• On-Premise solution for Enterprise customers
that don’t want to use the hosted service
Performance tuning
and monitoring
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Finding the bottleneck
Source:http://www.flickr.com/photos/laenulfean/462715479/
Performance Tuning and Monitoring Using MMS, Nicholas Tang
What is performance tuning?
1. Assess the problem and establish acceptable behavior
2. Measure the current performance
3. Find the bottleneck*
4. Remove the bottleneck
5. Re-test to confirm
6. Wash, rinse, repeat
* - (This is the hard part)
(Adapted from http://en.wikipedia.org/wiki/Performance_tuning )
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Pro-Tip: know thyself
You have to recognize normal to know when it
isn’t.
Source:http://www.flickr.com/photos/skippy/6853920/
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Some handy metrics to watch
• Memory usage
• Opcounters
• Lock %
• Queues
• Background flush average
• Replication stats
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Example: replication lag
150,000s of lag == almost 2 days of lag!
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Example: replication lag
Some common causes of replication lag:
• Secondaries underspecced vs primaries
• Access patterns between primary/ secondaries
• Insufficient bandwidth
• Foreground index builds on secondaries
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Fun fact: oplog idempotency
Operations in the oplog only affect the value once,
so they can be run multiple times safely.
Example: If you increment n from 2 to 3, n = 3 is
fine; n + 1 is not.
Frequent, large updates means a big oplog to
sync.
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Example: replication lag
• Secondaries underspecced vs primaries
• Access patterns between primary/ secondaries
• Insufficient bandwidth
• Foreground index builds on secondaries
“…when you have eliminated the impossible,whatever remains,however
improbable,must be the truth…” -- Sherlock Holmes
SirArthur Conan Doyle,The Sign of the Four
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Example: replication lag
Example:
• ~1500 ops per minute (opcounters)
• 0.1 MB per object (average object size, local db)
~1500 ops/min / 60 seconds * 0.1 MB/op * 8b/B
=~ 20 mbps required bandwidth
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Use alerts!
Don’t wait until your secondaries fall off your oplog!
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Examining memory and disk
Memory: resident vs virtual vs (non-)mapped
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Examining memory and disk
Page faults and Record Stats
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Examining memory and disk
Background flush and Disk IO
(Checkout http://www.wmarrow.com/strcalc/ )
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Monitoring: watch for
warnings
MMS warns you if your systems have startup
warnings or if they are running outdated versions.
Don’t ignore these!
Wrapping up
Performance Tuning and Monitoring Using MMS, Nicholas Tang
What’s next?
• Visual update - 3 weeks ago (June 3rd)
• Backup service (join the queue!)
• More UI/ UX improvements:
– Enhanced dashboards
– Improved cluster view
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Summary
• MMS is a great, free service
• Setup is easy
• Metrics are awesome, preventing failures even
more awesome
• There’s more functionality coming soon!
Performance Tuning and Monitoring Using MMS, Nicholas Tang
Questions?
• Ask me now…
• …or check out our special Ask the Experts
session all about MMS and our new Backup
Service!
Performance Tuning and Monitoring Using MMS
Performance Tuning and Monitoring Using MMS
Performance Tuning and Monitoring Using MMS
Performance Tuning and Monitoring with MMS, Nicholas Tang
Next Sessions at 11:55
5th Floor:
West Side Ballroom 3&4: Basic Replication in MongoDB
West Side Ballroom 1&2: Advanced Sharding Features in
MongoDB 2.4
Juilliard Complex: Business Track: How Criteo Scaled and
Supported Massive Growth with MongoDB
Lyceum Complex: Ask the Experts Online Education Session
Empire Complex: Right Ways and Wrong Ways to Implement
MongoDB
SoHo Complex: Automated Slow QueryAnalysis: Dex the Index
Robot

More Related Content

PDF
C* Summit 2013: Lock it Up: Securing Sensitive Data by Sam Heywood
PPT
Punten en lijnen
ODP
Cassandra drivers
PDF
Cassandra for Python Developers
PDF
Cassandra@Coursera: AWS deploy and MySQL transition
PDF
Cassandra and security
PDF
Cassandra REST API with Pagination TEAM 15
PDF
Cassandra basics 2.0
C* Summit 2013: Lock it Up: Securing Sensitive Data by Sam Heywood
Punten en lijnen
Cassandra drivers
Cassandra for Python Developers
Cassandra@Coursera: AWS deploy and MySQL transition
Cassandra and security
Cassandra REST API with Pagination TEAM 15
Cassandra basics 2.0

Viewers also liked (20)

PDF
Introduction to Cassandra Architecture
PPTX
DataStax | Best Practices for Securing DataStax Enterprise (Matt Kennedy) | C...
PDF
Building a Fast, Resilient Time Series Store with Cassandra (Alex Petrov, Dat...
PDF
Enter the Snake Pit for Fast and Easy Spark
PDF
Cassandra Core Concepts
PPTX
Cassandra DataTables Using RESTful API
PDF
Diagnosing Problems in Production (Nov 2015)
PDF
Instaclustr: Securing Cassandra
PDF
Cassandra background-and-architecture
PDF
Securing Cassandra The Right Way
PDF
Securing Cassandra for Compliance
PDF
Cassandra data structures and algorithms
PDF
Cassandra Summit 2014: Performance Tuning Cassandra in AWS
PDF
Intro to Cassandra
PDF
Cassandra Data Modeling
PDF
FiloDB - Breakthrough OLAP Performance with Cassandra and Spark
PDF
DataStax: Backup and Restore in Cassandra and OpsCenter
PDF
A Detailed Look At cassandra.yaml (Edward Capriolo, The Last Pickle) | Cassan...
PDF
Client Drivers and Cassandra, the Right Way
PPTX
Cassandra Tuning - Above and Beyond (Matija Gobec, SmartCat) | Cassandra Summ...
Introduction to Cassandra Architecture
DataStax | Best Practices for Securing DataStax Enterprise (Matt Kennedy) | C...
Building a Fast, Resilient Time Series Store with Cassandra (Alex Petrov, Dat...
Enter the Snake Pit for Fast and Easy Spark
Cassandra Core Concepts
Cassandra DataTables Using RESTful API
Diagnosing Problems in Production (Nov 2015)
Instaclustr: Securing Cassandra
Cassandra background-and-architecture
Securing Cassandra The Right Way
Securing Cassandra for Compliance
Cassandra data structures and algorithms
Cassandra Summit 2014: Performance Tuning Cassandra in AWS
Intro to Cassandra
Cassandra Data Modeling
FiloDB - Breakthrough OLAP Performance with Cassandra and Spark
DataStax: Backup and Restore in Cassandra and OpsCenter
A Detailed Look At cassandra.yaml (Edward Capriolo, The Last Pickle) | Cassan...
Client Drivers and Cassandra, the Right Way
Cassandra Tuning - Above and Beyond (Matija Gobec, SmartCat) | Cassandra Summ...
Ad

Similar to Performance Tuning and Monitoring Using MMS (20)

PPTX
MongoDB performance tuning and monitoring with MMS
PPTX
MongoDB Performance Tuning and Monitoring
PPT
Evolution and Scaling of MongoDB Management Service Running on MongoDB
PPTX
Automate MongoDB with MongoDB Management Service
PPTX
MMS - Monitoring, backup and management at a single click
PPTX
How to Install and Use MMS
PDF
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
PDF
NMS Projects and POCs completed and ongoing for OSS NAM v 1.5 Linkedin
PDF
MMMS monitoring backup and management at a single click
PPTX
Mongo db london
PPTX
MongoDB Management Service (MMS): Session 01: Getting Started with MMS
PPTX
Ops Jumpstart: MongoDB Management Service
PPTX
Run MongoDB with Confidence Using MongoDB Management Service (MMS)
PDF
MMS: The Easiest Way to Run MongoDB
PPTX
Management and Automation of MongoDB Clusters - Slides
PDF
Silicon Valley Code Camp 2014 - Advanced MongoDB
PPT
Obn211111 i manager n2000 bms introduction r011 issue 1.0
PPTX
Automate MongoDB with MongoDB Management Service
PPTX
MongoDB Management Service: Getting Started with MMS
PPTX
MongoDB Deployment Checklist
MongoDB performance tuning and monitoring with MMS
MongoDB Performance Tuning and Monitoring
Evolution and Scaling of MongoDB Management Service Running on MongoDB
Automate MongoDB with MongoDB Management Service
MMS - Monitoring, backup and management at a single click
How to Install and Use MMS
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
NMS Projects and POCs completed and ongoing for OSS NAM v 1.5 Linkedin
MMMS monitoring backup and management at a single click
Mongo db london
MongoDB Management Service (MMS): Session 01: Getting Started with MMS
Ops Jumpstart: MongoDB Management Service
Run MongoDB with Confidence Using MongoDB Management Service (MMS)
MMS: The Easiest Way to Run MongoDB
Management and Automation of MongoDB Clusters - Slides
Silicon Valley Code Camp 2014 - Advanced MongoDB
Obn211111 i manager n2000 bms introduction r011 issue 1.0
Automate MongoDB with MongoDB Management Service
MongoDB Management Service: Getting Started with MMS
MongoDB Deployment Checklist
Ad

More from MongoDB (20)

PDF
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
PDF
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
PDF
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
PDF
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
PDF
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
PDF
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
PDF
MongoDB SoCal 2020: MongoDB Atlas Jump Start
PDF
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
PDF
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
PDF
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
PDF
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
PDF
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
PDF
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
PDF
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
PDF
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
PDF
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
PDF
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
PDF
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...

Performance Tuning and Monitoring Using MMS

  • 1. Technical Support Manager, North America @ 10gen Nicholas Tang #MongoNYC Performance Tuning and Monitoring Using MMS
  • 2. Performance Tuning and Monitoring Using MMS, Nicholas Tang Agenda • What is MMS? • Why use it? • Setting it up and getting around • Performance and monitoring (the fun stuff) • Wrap up
  • 4. Performance Tuning and Monitoring Using MMS, Nicholas Tang What is MMS? • The MongoDB Monitoring Service: a free service (or software) for monitoring and management
  • 5. Performance Tuning and Monitoring Using MMS, Nicholas Tang Metric collection and reporting
  • 6. Performance Tuning and Monitoring Using MMS, Nicholas Tang Alerting
  • 7. Performance Tuning and Monitoring Using MMS, Nicholas Tang Event Tracking
  • 8. Performance Tuning and Monitoring Using MMS, Nicholas Tang Logs and Profile data
  • 9. Performance Tuning and Monitoring Using MMS, Nicholas Tang Hardware stats (CPU, disk)
  • 10. Performance Tuning and Monitoring Using MMS, Nicholas Tang DB stats
  • 11. Performance Tuning and Monitoring Using MMS, Nicholas Tang Basic user management
  • 12. What’s in it for me?
  • 13. Performance Tuning and Monitoring Using MMS, Nicholas Tang Why? • Great high level view + detailed metrics • Low effort, high-return • Makes it easier for us to help you! • Makes you more attractive, promotes bone strength and muscle tone * * - these last points still under review
  • 14. How do I use this crazy thing?
  • 15. Performance Tuning and Monitoring Using MMS, Nicholas Tang Setting it up http://mms.10gen.com/help/monitoring/tutorial/ • Setup an account • Install the agent • Add your hosts • Optional: hardware stats through munin-node • Optional: enable logging and profiling • More info: http://mms.10gen.com/help/monitoring/install/
  • 16. Performance Tuning and Monitoring Using MMS, Nicholas Tang Notes • Agent written in Python (moving to Go) • Failover: run multiple agents (1 primary) • Hosts: use CNAMEs, especially on AWS! • You can use a group per env (each needs an agent) • Connections are over SSL • On-Premise solution for Enterprise customers that don’t want to use the hosted service
  • 18. Performance Tuning and Monitoring Using MMS, Nicholas Tang Finding the bottleneck Source:http://www.flickr.com/photos/laenulfean/462715479/
  • 19. Performance Tuning and Monitoring Using MMS, Nicholas Tang What is performance tuning? 1. Assess the problem and establish acceptable behavior 2. Measure the current performance 3. Find the bottleneck* 4. Remove the bottleneck 5. Re-test to confirm 6. Wash, rinse, repeat * - (This is the hard part) (Adapted from http://en.wikipedia.org/wiki/Performance_tuning )
  • 20. Performance Tuning and Monitoring Using MMS, Nicholas Tang Pro-Tip: know thyself You have to recognize normal to know when it isn’t. Source:http://www.flickr.com/photos/skippy/6853920/
  • 21. Performance Tuning and Monitoring Using MMS, Nicholas Tang Some handy metrics to watch • Memory usage • Opcounters • Lock % • Queues • Background flush average • Replication stats
  • 22. Performance Tuning and Monitoring Using MMS, Nicholas Tang Example: replication lag 150,000s of lag == almost 2 days of lag!
  • 23. Performance Tuning and Monitoring Using MMS, Nicholas Tang Example: replication lag Some common causes of replication lag: • Secondaries underspecced vs primaries • Access patterns between primary/ secondaries • Insufficient bandwidth • Foreground index builds on secondaries
  • 24. Performance Tuning and Monitoring Using MMS, Nicholas Tang Fun fact: oplog idempotency Operations in the oplog only affect the value once, so they can be run multiple times safely. Example: If you increment n from 2 to 3, n = 3 is fine; n + 1 is not. Frequent, large updates means a big oplog to sync.
  • 25. Performance Tuning and Monitoring Using MMS, Nicholas Tang Example: replication lag • Secondaries underspecced vs primaries • Access patterns between primary/ secondaries • Insufficient bandwidth • Foreground index builds on secondaries “…when you have eliminated the impossible,whatever remains,however improbable,must be the truth…” -- Sherlock Holmes SirArthur Conan Doyle,The Sign of the Four
  • 26. Performance Tuning and Monitoring Using MMS, Nicholas Tang Example: replication lag Example: • ~1500 ops per minute (opcounters) • 0.1 MB per object (average object size, local db) ~1500 ops/min / 60 seconds * 0.1 MB/op * 8b/B =~ 20 mbps required bandwidth
  • 27. Performance Tuning and Monitoring Using MMS, Nicholas Tang Use alerts! Don’t wait until your secondaries fall off your oplog!
  • 28. Performance Tuning and Monitoring Using MMS, Nicholas Tang Examining memory and disk Memory: resident vs virtual vs (non-)mapped
  • 29. Performance Tuning and Monitoring Using MMS, Nicholas Tang Examining memory and disk Page faults and Record Stats
  • 30. Performance Tuning and Monitoring Using MMS, Nicholas Tang Examining memory and disk Background flush and Disk IO (Checkout http://www.wmarrow.com/strcalc/ )
  • 31. Performance Tuning and Monitoring Using MMS, Nicholas Tang Monitoring: watch for warnings MMS warns you if your systems have startup warnings or if they are running outdated versions. Don’t ignore these!
  • 33. Performance Tuning and Monitoring Using MMS, Nicholas Tang What’s next? • Visual update - 3 weeks ago (June 3rd) • Backup service (join the queue!) • More UI/ UX improvements: – Enhanced dashboards – Improved cluster view
  • 34. Performance Tuning and Monitoring Using MMS, Nicholas Tang Summary • MMS is a great, free service • Setup is easy • Metrics are awesome, preventing failures even more awesome • There’s more functionality coming soon!
  • 35. Performance Tuning and Monitoring Using MMS, Nicholas Tang Questions? • Ask me now… • …or check out our special Ask the Experts session all about MMS and our new Backup Service!
  • 39. Performance Tuning and Monitoring with MMS, Nicholas Tang Next Sessions at 11:55 5th Floor: West Side Ballroom 3&4: Basic Replication in MongoDB West Side Ballroom 1&2: Advanced Sharding Features in MongoDB 2.4 Juilliard Complex: Business Track: How Criteo Scaled and Supported Massive Growth with MongoDB Lyceum Complex: Ask the Experts Online Education Session Empire Complex: Right Ways and Wrong Ways to Implement MongoDB SoHo Complex: Automated Slow QueryAnalysis: Dex the Index Robot

Editor's Notes

  • #3: 5-10 minutes for What, Why, and How, and then the rest of the time to Performance and monitoring and the wrap-up.Talk a little bit about why it’s helpful for 10gen support.
  • #5: Talk about how many current users of MMSGive some idea of size/ scale of customersAsk current users to raise their hands
  • #19: Understand the components (i.e. potential bottlenecks)Test and measure each oneWatch performance before, during, after the testsWatch trends over time
  • #21: Know your environment – a critical piece of understanding what changed is to know the way things were before. The great thing about MMS is that not only does it provide you with what’s happening right now, but it also provides you with history – the sort of context you need to be able to identify changes, which is a critical piece of finding and fixing bottlenecks.
  • #22: Memory: get back to thisOpcounters: commands, queries, etc. per time unitLock%: Time spent in a write-lock state, global time == global lock + hottest database.Queues: operations waiting for read lock, write lock, or global lock (total).Background flush: time it takes to flush the journal to disk (via fsync) – by default once per minute, so the closer to 60s, the bigger the problem.Repl Lag: number of seconds secondary is behind primary in writing each oplog entry.Replica: number of hours of oplog on the primary
  • #23: We had a customer report replication lag – almost 150,00 seconds of it. We examined their systems – checked CPU, checked IO capacity, checked network utilization, and had them do an initial sync via data file copy, and nothing worked – even though the systems seemed fine.
  • #24: Background index creation on secondaries: fixed in 2.6
  • #26: Background index creation on secondaries: fixed in 2.6
  • #27: NOTE: That’s the minimum required assuming no overhead, no competing traffic, nothing else… and that’s just to keep up!In the customer’s case, they had huge updates, which since the oplog is idempotent, meant huge oplog entries, and it turns out the bandwidth required was 3x their available bandwidth (30 mbps vs 10 mbps).
  • #28: Moral of the story: pay attention to these things, get alerted when they first start to go south, and you can resolve them before things blow up at 3 am.
  • #29: Memory: resident vs. virtual vs. mapped vs. non-mapped (connections)Page faults: accessing a page of memory that is in virtual memory but not resident in physical memory. Page fault on normal spinning disk is ~40k slower than direct memory access. However, the size of page faults also matters: 100 small page faults/ sec might be better than 10 large ones! Check readahead!Record stats: number of accesses not in memory, and page faults required to get them into memoryBtree: misses/ missRatio indicates indexes can’t be stored in memory (see above re: page faulting)
  • #30: Memory: resident vs. virtual vs. mapped vs. non-mapped (connections)Page faults: accessing a page of memory that is in virtual memory but not resident in physical memory. Page fault on normal spinning disk is ~40k slower than direct memory access. However, the size of page faults also matters: 100 small page faults/ sec might be better than 10 large ones! Check readahead!Record stats: number of accesses not in memory, and page faults required to get them into memoryBtree: misses/ missRatio indicates indexes can’t be stored in memory (see above re: page faulting)
  • #31: Background flush: average time it takes to flush the journal to disk (fsync).IO time: amount of time (in ms) spent waiting on disk for a read or write operation.
  • #32: Also worth noting: the exposed DB check in settings, to tell you if you messed up your firewall settings.