Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11288

Recommend allocating separate device for the dbpath/journal

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Needs Triage
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: manual, production

      Description

      We have encountered numerous instances of performance issues resulting from a collision of io requests from checkpoints and journal writes.

      The symptoms are a known performance issue resulting from placing the dbPath directory and the WiredTiger journal directory on the same filesystem. The bursts of IO to WiredTiger datafiles that occur at the end of each checkpoint when filesystem buffers are flushed to disk can saturate the disk, delaying writes to the journal files, and producing small IO "stalls" exactly like those observed on the mongod logfiles.

      The remedy to this problem is relatively simple – to place the mongod dbPath directory and the mongod dbPath/journal directory on separate physical devices and use a symlink to point to the journal directory from the mongod dbPath.

      Physically separating the IO removes the contention between database files and journal files during checkpoints, and prevents the small IO stalls observed in this case and others like it.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            shakir.sadikali Shakir Sadikali
            Participants:
            Last commenter:
            Anthony Sansone Anthony Sansone
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Days since reply:
              3 years, 33 weeks, 1 day ago
              Date of 1st Reply: