Skip to main content

What leads to cache pressure in WiredTiger and how do you alleviate it?

Expert MongoDB
Quick Answer WiredTiger cache pressure (cache full, high eviction rate) happens when: working set exceeds cache size, large documents prevent efficient caching, too many indexes all needing to be in memory. Fix: increase WiredTiger cache size (storage.wiredTiger.engineConfig.cacheSizeGB), add RAM, reduce index count, use projection to avoid reading large documents fully, or shard to distribute data across more RAM.

Answer

Cache pressure arises from oversized working sets. Solutions include increasing WT cache, reducing document size, removing heavy indexes, and archiving cold data.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice