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

Provide an argument to suppress everything by default in serverStatus

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Diagnostics
    • Query Execution

      Often times when using serverStatus programmatically, you only want to return a specific section. One reason to do so is to avoid the relatively high amount of load (and locks) placed on the server each time serverStatus is run, or to avoid hanging the command if some particular section takes out a lock that is currently held. It's possible to suppress individual sections in serverStatus by passing <section>: 0, but there's no way to suppress every section by default. It'd be nice to be able to run something like {serverStatus: 1, all: 0, sharding: 1}.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            bartle David Bartley
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: