[SERVER-70997] Add currentOp reporting for query analysis Created: 01/Nov/22  Updated: 29/Oct/23  Resolved: 27/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Israel Hsu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-70996 Add serverStatus reporting for query ... Closed
Assigned Teams:
Sharding NYC
Backwards Compatibility: Fully Compatible
Sprint: Sharding NYC 2023-02-06, Sharding NYC 2023-02-20, Sharding NYC 2023-03-06
Participants:

 Description   

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



 Comments   
Comment by Githook User [ 16/Feb/23 ]

Author:

{'name': 'Israel Hsu', 'email': 'israel.hsu@mongodb.com', 'username': 'israelhsu'}

Message: SERVER-70997 Implement query sampler counters for $currentOp
Branch: master
https://github.com/mongodb/mongo/commit/924f756576cfaad5a4253736394ae3e8973c79bb

Generated at Thu Feb 08 06:17:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.