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

Provide an argument to suppress everything by default in serverStatus

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Diagnostics
    • None
    • Query Execution

    Description

      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}.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            bartle David Bartley
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated: