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

Mongodump on secondaries causes performance issue with w:majority

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.10
    • Component/s: None
    • Labels:
      None
    • Environment:
      Production
    • ALL

      Hello,

      We are experiencing performance issues on the master when mongodump backs up on secondaries.

      Out applications all perform read / writes from the master. The slaves are only used for replica set and backups.

      Our backups are performed at 8am / 8pm every day and can take a considerable amount of time to run on the slaves.

      Backups are run using the mongodump command as follows for each DB on the cluster.
      '/usr/bin/mongodump --host=localhost --gzip --db=210596-game-live --excludeCollection=requestsByUserState --out=/mnt/backup --quiet'

      Stopping the mongodump process from running on the secondaries resolves our masters performance issues.

      So far we have seen this issue on two of our mongo clusters.

      Please see details for one of the clusters we have seen this issue with.

      We usually run a larger master to the slaves to reduce cost as follows.

      gsp-aeu001-mo04 (M) r3.2xlarge
      gsp-aeu001-mo05 (S) r3.xlarge
      gsp-aeu001-mo06 (S) r3.xlarge

      At the high level we can see at 8am/pm the number of commands/querys/updates etc drop off for a period of time whilst the backups run. This then causes the java applications connecting to the master to experience queuing threads.

      At the same time as the commands fluctuate the performance of all three servers look as follows.

      It appears that the performance of the secondaries backing up causes a degradation in performance on the master.

      We have gathered the "/var/lib/mongodb/diagnostic.data/" data for each of the servers. Do you have a none public place for us to upload this data please?

      Increasing the size of the Mongo secondaries to match the master has improved the performance, however we would like to understand why backups on secondaries cause performance issues on the master.

      Kind regards
      Luke

        1. Secondary running mongodump.png
          Secondary running mongodump.png
          110 kB
        2. master commands.png
          master commands.png
          43 kB
        3. Master 1 day commands graph .png
          Master 1 day commands graph .png
          143 kB
        4. Cluster cpu.png
          Cluster cpu.png
          87 kB

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            lukemorfitt Luke Morfitt
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: