Add serverStatus reporting for query analysis

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Sharding NYC
    • Fully Compatible
    • Sharding NYC 2023-02-06, Sharding NYC 2023-02-20, Sharding NYC 2023-03-06
    • 145
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      From the design:

      The serverStatus command response on mongos and mongod will include a “queryAnalyzers” section with the following diagnostics:

      {
          activeCollections: <integer>, // On a shared cluster, this is a mongos-only field since shardsvr mongods don’t know about sample rates.  
          totalCollections: <integer>,
          totalSampledReadsCount: <integer>,
          totalSampledWritesCount: <integer>,
          totalSampledReadsBytes: <integer>,
          totalSampledWritesBytes: <integer>,
      }
      

            Assignee:
            Israel Hsu (Inactive)
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: