Skip recordStats for db.serverStatus() call in mongostats to avoid acquire read lock

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • 2.8.0-rc0
    • Affects Version/s: Legacy C++ Implementation
    • Component/s: mongostat
    • None

      db.serverStatus() acquires read lock when retrieving information for recordStats, which is not used by mongostat in stats_util.cpp. During load test, sometime mongostats will pause.

      Changing to db.serverStatus({recordStats:0}) would make mongostats lock free.

            Assignee:
            Michael O'Brien
            Reporter:
            Rui Zhang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: