[SERVER-51026] Collect number of keys sorted per operation Created: 17/Sep/20  Updated: 29/Oct/23  Resolved: 19/Nov/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-52793 Collect resource consumption metrics ... Closed
related to SERVER-53303 Make sort and group execution stages ... Closed
is related to SERVER-58201 Remove Sorter::_numSpills Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-11-16, Execution Team 2020-11-30
Participants:

 Description   

This metric will be collected by instrumenting the calls to _sorter->emplace() in mongo::sbe::SortStage::open(), _sorter->add() in DocumentSourceBucketAuto::populateSorter, and _sorter->add() in SortExecutor::add().

 

Additionally, we will increment a metric counter if disk use occurred during sorting or grouping.  This metric will count the number of sorts that were larger than the in-memory sort limit and needed to spill to disk at least once.



 Comments   
Comment by Githook User [ 19/Nov/20 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-51026 Collect number of keys sorted and disk spills for query operations
Branch: master
https://github.com/mongodb/mongo/commit/85bcda3cf2e0fe996f022fb065326aca524cb07a

Generated at Thu Feb 08 05:24:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.