Runbook
Frequent primary node elections in a MongoDB replica set.
Back to Runbooks
Overview
This incident type refers to a recurring problem in a MongoDB replica set where the primary node is frequently being elected, causing disruption to the database operations. This can occur due to various reasons such as network issues, hardware failures, or misconfiguration of MongoDB replica set. The frequent elections can lead to reduced performance, data inconsistency, and downtime of the database system. It requires prompt investigation and resolution to prevent further disruptions and ensure the stability of the database operations.
Parameters
Debug
Check if all nodes in the replica set are running
Check the replica set configuration
Check the replica set status
Check the replica set oplog size and usage
Check the replica set members' ping time
Check the replica set members' log files for errors
Repair
Learn more
Related Runbooks
Check out these related runbooks to help you debug and resolve similar issues.