[SERVER-31266] Treat queued task reporting for adaptive service executor consistently Created: 26/Sep/17  Updated: 30/Oct/23  Resolved: 22/Nov/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.4, 3.7.1

Type: Improvement Priority: Major - P3
Reporter: Bruce Lucas (Inactive) Assignee: Fiona Rowan
Resolution: Fixed Votes: 22
Labels: SWDI
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-30567 Break out serviceExecutorTaskStats by... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6
Sprint: Platforms 2017-12-18
Participants:

 Description   

The current metrics for reporting tasks queued are inconsistent and a bit confusing:

deferredTasksQueued    instantaneous, deferred tasks only
tasksQueued            instantaneous, non-deferred tasks only
totalTimeQueued        cumulative time, both deferred and non-deferred tasks

  • the instantaneous metric "tasksQueued" includes only non-deferred whereas the cumulative metric "totalTimeQueued" includes both deferred and non-deferred
  • there is a cumulative time-based metric for the combined deferred and non-deferred but not for separately reporting deferred and non-deferred

Generally the cumulative time-based counters are better because they allow computing averages over arbitrary sampling intervals so are less subject to sampling errors than instantaneous values. One approach would be to eliminate the intantaneous metrics and report only cumulative time-based metrics, broken out by type (deferred vs non-deferred).

Probably related to SERVER-30567.



 Comments   
Comment by Githook User [ 01/Mar/18 ]

Author:

{'email': 'fiona.rowan@mongodb.com', 'name': 'Fiona Rowan', 'username': 'fionaRowan'}

Message: SERVER-31266: removed instantaneous queued metrics from reporting

(cherry picked from commit 90f34372f53403ed24fd155f4fe9a82b6f742e97)
Branch: v3.6
https://github.com/mongodb/mongo/commit/3caab5908a711db69d385377cf6a601102ade627

Comment by Githook User [ 22/Nov/17 ]

Author:

{'name': 'Fiona Rowan', 'username': 'fionaRowan', 'email': 'fiona.rowan@mongodb.com'}

Message: SERVER-31266: removed instantaneous queued metrics from reporting
Branch: master
https://github.com/mongodb/mongo/commit/90f34372f53403ed24fd155f4fe9a82b6f742e97

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