[SERVER-63049] Track usage of agg accumulators Created: 27/Jan/22  Updated: 29/Oct/23  Resolved: 21/Apr/22

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 6.0.1, 6.1.0-rc0, 5.0.16

Type: Task Priority: Major - P3
Reporter: Katya Kamenieva Assignee: Timour Katchaounov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0, v5.0, v4.4
Sprint: QO 2022-02-21, QO 2022-03-07, QO 2022-03-21, QO 2022-04-04, QO 2022-04-18, QO 2022-05-02
Participants:

 Description   

We added new accumulators like $topN, $bottomN, but because they are not in the category of the aggregation expressions or match expressions there's no tracking in the serverStatus() metrics for those.

Add new section to serverStatus

db.serverStatus().metrics.operatorCounters.accumulators

Track all accumulator operators that are supported in $group and $setWindowFields



 Comments   
Comment by Githook User [ 27/Mar/23 ]

Author:

{'name': 'Timour Katchaounov', 'email': 'timour.katchaounov@mongodb.com', 'username': 'timourk'}

Message: SERVER-63049 Implemented counters for aggregate accumulator expressions

(cherry picked from commit 2846283187406c3a4022154d640b0b6137531038)
Branch: v5.0
https://github.com/mongodb/mongo/commit/669f84f58425940d2847971808b6411350daa450

Comment by Githook User [ 29/Jul/22 ]

Author:

{'name': 'Timour Katchaounov', 'email': 'timour.katchaounov@mongodb.com', 'username': 'timourk'}

Message: SERVER-63049 Implemented counters for aggregate accumulator expressions

(cherry picked from commit a3f1584a71210df4ba299d0eb74612302c9371cb)
Branch: v6.0
https://github.com/mongodb/mongo/commit/2846283187406c3a4022154d640b0b6137531038

Comment by Githook User [ 21/Apr/22 ]

Author:

{'name': 'Timour Katchaounov', 'email': 'timour.katchaounov@mongodb.com', 'username': 'timourk'}

Message: SERVER-63049 Implemented counters for aggregate accumulator expressions
Branch: master
https://github.com/mongodb/mongo/commit/a3f1584a71210df4ba299d0eb74612302c9371cb

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