[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: |
|
||||||||||||||||||||||||||||
| 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 |
| Comment by Githook User [ 14/Jan/21 ] |
|
Author: {'name': 'Vishnu Kaushik', 'email': 'vishnu.kaushik@mongodb.com', 'username': 'kauboy26'}Message: |
| 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. |