MongoDB DBA

Common MongoDB Database Administration Tasks & Troubleshooting

Question

A replica set has no primary and writes are unavailable; how should it be triaged?

Answer

1. Replica set status: voting majority reachable? 2. If not, restore members or network. 3. If so, check replica set configuration for electable members. 4. Check log for election failures. 5. Fix cause, keeping prior configuration; confirm writable primary. Applies to self-managed MongoDB only.

This is 20 of 22 free samples for MongoDB DBA.

More MongoDB DBA topic samples