MongoDB & NoSQL (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
What causes WiredTiger Cache Eviction stalls and how do you resolve them?
senior LevelMost AskedSystem Design
In Simple Words: Occurs when write throughput or heavy reads cause dirty pages in the WiredTiger cache to exceed 20% of cache size:
- When dirty pages exceed thresholds, user application worker threads are forced to pause and write cache pages to disk themselves (client stalls).
- Fixes: Use faster NVMe SSDs, provision more RAM, optimize queries to eliminate full collection scans, and tune
wiredTigerEngineConfig.configString.