What is WiredTiger?

BeginnerConceptMongoDB
Answer

Short answer

WiredTiger is MongoDB's default storage engine (since 3.2). It stores data on disk with compression, provides document-level concurrency (many writers at once), uses a journal for crash recovery, and keeps frequently used data in its internal cache.

Key facts

Feature Detail
Concurrency Document-level locking (optimistic)
Compression Snappy by default for data; prefix compression for indexes
Cache Default ≈ 50% of (RAM − 1 GB)
Durability Journal + checkpoints every 60 seconds

Why it matters for operations

  • Container memory limits: WiredTiger sizes its cache from RAM; in containers set --wiredTigerCacheSizeGB explicitly (or rely on cgroup-aware newer versions) so the pod isn't OOMKilled.
  • Performance is best when the working set (hot data + indexes) fits in the cache.
db.serverStatus().wiredTiger.cache["bytes currently in the cache"]

What to say in the interview

"WiredTiger is the default engine with document-level concurrency, compression, journaling and an internal cache. In Kubernetes I set the cache size explicitly relative to the memory limit and monitor whether the working set fits."

All Databases (MySQL, PostgreSQL, MongoDB) questions Roadmap: MongoDB basics

More on MongoDB