<!-- llms-explorer concept facts · https://llms-explorer.com/tree/wiredtiger-cache-pressure-and-write-tickets-during-index-builds/ · pack 2026-10-31 · ~1642 tokens -->

# WiredTiger cache pressure and write tickets during index builds

> Source-anchored research for WiredTiger cache pressure and write tickets during index builds. Run status: COMPLETED.

Parent: [Index build resource limits (maxNumActiveUserIndexBuilds, disk space)](https://llms-explorer.com/tree/index-build-resource-limits-maxnumactiveuserindexbuilds-disk-space/) · 4 facets · 16 facts · page: https://llms-explorer.com/tree/wiredtiger-cache-pressure-and-write-tickets-during-index-builds/

## How it works

- Increasing storage-engine ticket counts when CPU, disk, or cache is already saturated can worsen contention and latency. Alibaba recommends finding the bottleneck first; MongoDB warns that changing the concurrency setting can cause performance problems. (medium confidence) — [source](https://www.alibabacloud.com/help/en/mongodb/user-guide/parameter-tuning-recommendations)
- Percona warns that index builds need CPU and I/O resources and brief database locks; an already near-capacity deployment can suffer an outage. Treat remaining workload capacity as a constraint when scheduling index creation. (low confidence) — [source](https://www.percona.com/blog/how-to-perform-rolling-index-builds-with-percona-operator-for-mongodb/)

## Problems, failure modes and limitations

- Alibaba documents that secondary nodes consume write tickets while applying oplog entries, despite not accepting ordinary application writes. Exhaustion can increase replication lag; read operations can also slow replay indirectly by competing for CPU, disk I/O, and WiredTiger cache. (low confidence) — [source](https://www.alibabacloud.com/help/en/mongodb/user-guide/parameter-tuning-recommendations)

## Comparisons and alternatives

- When WiredTiger cache usage reaches an eviction trigger, application threads can be recruited to perform eviction instead of their requested work. Evicting modified pages can require disk writes, adding latency under write pressure. (high confidence) — [source](https://github.com/mongodb/mongo/blob/master/src/mongo/db/storage/wiredtiger/README.md)
- MongoDB introduced default dynamic read/write ticket adjustment in 7.0. With dynamic admission, low available-ticket counts alone do not establish overload; inspect queued operations and observed latency rather than assuming a fixed pool of 128 is always active. (high confidence) (verified as of 2026-09-11) — [source](https://www.mongodb.com/docs/manual/core/wiredtiger/)

## Facts and statements

- MongoDB 8.3 documentation explicitly warns that increasing maxNumActiveUserIndexBuilds permits more concurrent index-build requests at the cost of increased WiredTiger cache pressure. (low confidence) (verified as of 2026-10-30) — [source](https://www.mongodb.com/docs/v8.3/reference/parameters/)
- The maxIndexBuildMemoryUsageMegabytes budget governs the external sorter, whose sorted runs spill to temporary disk files; MongoDB documents index-build memory as separate from WiredTiger cache memory. These are distinct resource budgets. (medium confidence) — [source](https://www.mongodb.com/docs/v8.3/reference/parameters/)
- Hybrid index builds scan collection data and bulk-load sorted keys while intercepting concurrent inserts, updates, and deletes in an internal side-writes table. That table remains active for the duration of the build. (low confidence) — [source](https://github.com/mongodb/mongo/blob/master/src/mongo/db/index_builds/README.md)
- Read and write tickets admit concurrent operations into the storage engine using separate pools. Operations unable to obtain a ticket queue, so sustained write-ticket depletion can increase write latency. (high confidence) — [source](https://www.alibabacloud.com/help/en/mongodb/user-guide/parameter-tuning-recommendations)
- SERVER-48617 documents a historical createIndexes deadlock: waiting command threads held global IX locks and write tickets, exhausting the pool while index-build workers also needed tickets. The issue lists fixes in 4.4.2 and 4.7.0; it does not establish that current releases retain this defect. (low confidence) — [source](https://jira.mongodb.org/browse/SERVER-48617)
- For slowdowns observed during index builds, correlate ticket availability and queued operations with cache eviction, CPU, disk utilization, latency, and replication lag before tuning concurrency. This diagnostic recommendation combines Percona dashboard guidance with Alibaba parameter guidance. (medium confidence) — [source](https://docs.percona.com/percona-monitoring-and-management/3/reference/dashboards/dashboard-mongodb-wiredtiger-details.html)
- The index-build design separates external sorting from bulk-loading sorted keys into a WiredTiger index table. maxIndexBuildMemoryUsageMegabytes controls sorter spilling; it should not be interpreted as a ceiling on total mongod memory or all WiredTiger allocations. (medium confidence) — [source](https://github.com/mongodb/mongo/blob/master/src/mongo/db/index_builds/README.md)
- The index-build design records concurrent writes in a side-writes table and applies them after collection scanning and key loading. Early draining permits further writes, so additional changes can arrive while draining proceeds. (low confidence) — [source](https://github.com/mongodb/mongo/blob/master/src/mongo/db/index_builds/README.md)
- Read and write tickets govern concurrent admission to the storage engine; operations without a ticket queue. Tickets are not client connections or memory quotas, and no general fixed memory-per-ticket formula follows from the ticket count. (medium confidence) — [source](https://www.alibabacloud.com/help/en/mongodb/user-guide/parameter-tuning-recommendations)
- Increasing ticket limits while CPU, disk, or cache is saturated can worsen queueing and eviction. During index-build incidents, correlate ticket waits with cache eviction, disk I/O, latency, and replication lag before changing concurrency; this diagnostic recommendation is an inference from the documented storage-engine behavior. (medium confidence) — [source](https://www.alibabacloud.com/help/en/mongodb/user-guide/parameter-tuning-recommendations)
- SERVER-115329 describes index-build bulk-cursor memory growing with leaf-page count outside normal cache accounting, with possible OOM for very large indexes. Its proposed fallback to a non-bulk cursor is a proposal, not evidence of a shipped fix: the issue was resolved Won't Fix on September 15, 2026, with no fix version listed. (low confidence) (verified as of 2026-09-15) — [source](https://jira.mongodb.org/browse/SERVER-115329)
