Docs Menu

Fix Lost Primary

On this page

  • Alert Conditions
  • Common Triggers
  • Fix the Immediate Problem
  • Implement a Long-Term Solution
  • Monitor Your Progress

At time T, no primary was detected in replica set ABC.

You can configure alert conditions in the project-level alert settings page to trigger alerts.

For more information on the alert condition, see Replica set has no primary.

  • The workload exceeds the cluster's throughput limits and compute resources.
  • A network issue with the cloud provider is preventing voting members of the replica set from communicating with each other, such that a primary cannot be elected.
  • Check the cluster's metrics to determine if there are sufficient compute resources for your workload.

    • If the cluster is exhausting CPU, disk IOPS, connections, or other resources, upgrade to a cluster that supports your workload.
    • If the cluster's metrics are normal, there could be a network issue with the cloud provider. Atlas automatically attempts to repair these issues. If the problem persists, contact MongoDB Support.

If Atlas collects data during an election, this alert might send a false positive. To prevent such false positives, set the alert configuration's after waiting interval (in the configuration's Send to section).

View the following charts to monitor whether the cluster is exhausting resources:

  • Normalized System CPU

    Monitor CPU usage to determine whether data is retrieved from disk instead of memory.

  • Disk IOPs

    Monitor whether disk IOPS approaches the maximum provisioned IOPS. Determine whether the cluster can handle future workloads.

  • Connections

    Monitor connections to determine whether the current connection limits are sufficient. If necessary, upgrade the cluster tier.

To learn more, see View Cluster Metrics.

←  Fix Query IssuesFix Oplog Issues →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.