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

Primary node of ReplicaSet constantly high cpu usage

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.4.2
    • Component/s: Performance
    • Labels:
      None

      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.

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

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

              Created:
              Updated:
              Resolved: