-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Cluster Scalability
-
Cluster Scalability Priorities
Right now the refreshTotalCount() function in QueryAnalysisSampler does not take into account an embedded mongos and as a result will give an incorrect count.
The function needs to be updated so that it satisfies the following criteria (this is from Chou):
- On a mongod in a standalone replica set, we want to count the update, delete, findAndModify, find, aggregate, count, distinct commands that it executes.
- On a mongos, we want to count the update, delete, findAndModify, find, aggregate, count, distinct commands that it routes.
- On a shardsvr mongod without router role, we want to count the nested aggregate commands (i.e. $lookup,$graphLookup and $unionWith) that it routes.
- [New] On a shardsvr mongod with router role, we want to count the nested aggregate commands AND the update, delete, findAndModify, find, aggregate, count, distinct commands it routes (**).
(**) is not possible yet because the globalOpCounters count both commands that a mongod receives on the shard port and on the router port. As a result this ticket will also depend SERVER-79353 being completed.
- depends on
-
SERVER-79353 (SA) Allow dual `ServerStatusSectionRegistry` based on role
- Closed