Resources
MongoDB Problems, with the Command to Run and the Warning You Could Have Had
Each guide takes one problem that pages a MongoDB DBA: what the replica set says, the mongosh commands that show the cause, the fixes in the order that does not make it worse, and how Radar Engine reports it before the outage. The commands run on MongoDB 7.0 or later.
Free tool: paste explain("executionStats") output into the MongoDB explain analyzer, and dbCove AI finds the slow stage and the index that fixes it.
Replica set
- The replica set has no primary
Which voting members are missing, why no member is elected, and the recovery in order, force reconfig last. - A secondary falls behind, or off the oplog
The lag, the time left before a full resync, the causes, and the fix. - The oplog window is too short
How long a member can be down, why the window shrinks, and how to size the oplog from the write rate.
Load
- The WiredTiger cache is full
When application threads evict pages themselves, the scans behind it, and the fix.
Watch every replica set for these
dbCove runs 19 Radar detectors on every MongoDB replica set and reports each of these problems while there is still time to act, with no agent on the servers and a role that cannot read your documents or the oplog. dbCove AI answers why, with the set's own operations and history. See MongoDB monitoring with dbCove.