Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31123

Primary node of ReplicaSet constantly high cpu usage

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.4.2
    • Performance
    • None

    Description

      Hi,
      We use mongo replicaSet version 3.4.2 on our production environments. The replicaSet works with 6 nodes , one primary and 5 secondaries. Few weeks ago we have started to get alerts on high cpu consumption on the primary node. At the beginning we thought that we should separate the load between the members so we configured our service to make reads from secondaries and write to the primary.

      Unfortunately we are still on the same point. The cpu of the primary node is between 70-100% even on idle times while the secondaries consumes maximum of 20%.

      It is important to mention that we creates DB for each one of our customers with average of 9 indexes each - we have 1500DB's like that.

      Attached a log of db.currentOp() , mongostat and diagnostic metrics. let me know if more information required.

      Thanks,
      Roie.

      Attachments

        1. metrics.2017-09-17T20-02-23Z-00000
          9.94 MB
        2. mongo.currentOp
          6 kB

        Activity

          People

            kelsey.schubert@mongodb.com Kelsey Schubert
            roiey Roie Yossef
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: