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

Add currentOp reporting for query analysis

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      From the design:

      The $currentOp output on mongos and mongod will contain a document of the following format for each collection with query sampling enabled:

      {
          desc: "query analyzer",
          ns: "<database>.<collection>",
          collUuid: <uuid>,
          sampleRate: <double>, // On a shared cluster, this is a mongos-only field since shardsvr mongods don’t know about sample rates.
          sampledReadsCount: <integer>,
          sampledWritesCount: <integer>,
          sampledReadsBytes: <integer>,
          sampledWritesBytes: <integer>
      }
      

            Assignee:
            israel.hsu@mongodb.com Israel Hsu
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: