[SERVER-49867] Add server status metrics to track how often a cursor has more than 1 batch Created: 24/Jul/20  Updated: 29/Oct/23  Resolved: 14/Jan/21

Status: Closed
Project: Core Server
Component/s: Querying, Replication
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Judah Schvimer Assignee: Vishnu Kaushik
Resolution: Fixed Votes: 0
Labels: former-quick-wins
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Documented
is documented by DOCS-14139 Investigate changes in SERVER-49867: ... Closed
Related
is related to SERVER-51730 Report histogram data on how long it ... Closed
is related to SERVER-53639 Add MongoS server status metrics to t... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Repl 2021-01-11, Repl 2021-01-25
Participants:

 Description   

This could help us understand how often resumable queries would be useful.



 Comments   
Comment by Lingzhi Deng [ 26/Jan/21 ]

kateryna.kamenieva This (together with SERVER-53639 for mongoS) was done on the master branch. Do you know if we may want to backport them? Feel free to request for backports as you see fit.

Comment by Githook User [ 14/Jan/21 ]

Author:

{'name': 'Vishnu Kaushik', 'email': 'vishnu.kaushik@mongodb.com', 'username': 'kauboy26'}

Message: SERVER-49867 Add server status metrics to track how often a cursor has more than 1 batch
Branch: master
https://github.com/mongodb/mongo/commit/3669598fe570cd5e24f01aac9df6144397a0203f

Comment by Bernard Gorman [ 11/Aug/20 ]

Moved this into PM-915. It's worth considering whether we could derive a reasonable value from existing metrics, though I think this would be confounded by factors such as the fact that multi-shard aggregations never pull back any results in their first batch and always defer to the first getMore.

Comment by Siyuan Zhou [ 06/Aug/20 ]

FWIW, we have the number of "metrics cursor open" in server status. We also have the count of "find" and "getMore" commands.

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