Home / Databases / MongoDB

MongoDB

MongoDB: replica sets, sharding, schema design, indexes, WiredTiger and migrations. 11 posts.

MongoDB / How-to

Optimization: MongoDB working set, WiredTiger cache and index efficiency

MongoDB performs well while the working set and indexes fit in memory. Measure WiredTiger cache usage and eviction pressure, check index sizes and usage, remove unused indexes, design compound indexes with the ESR rule, and right-size instances or shard before the working set outgrows RAM.

2 min readIntermediate

MongoDB / Runbook

Sev1: MongoDB replica set has no primary and writes fail

Applications get NotWritablePrimary or "no primary found", and rs.status() shows only SECONDARY members. Work out whether a voting majority is reachable, fix network or member problems, and use a forced reconfiguration only when the majority is truly gone.

3 min readAdvanced