[SERVER-84346] Reduce overhead of resource consumption metrics collection Created: 20/Dec/23  Updated: 19/Jan/24  Resolved: 11/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-12-25, Execution Team 2024-01-08, Execution Team 2024-01-22
Participants:
Linked BF Score: 35

 Description   

Even when metrics collection is disabled,we're spending a lot of time in cursor scanning accessing the MetricsCollector decorator and calling the increment functions.

Cache the pointer to the MetricsCollector and inline the increment functions.



 Comments   
Comment by Githook User [ 11/Jan/24 ]

Author:

{'name': 'Louis Williams', 'email': 'louiswilliams@users.noreply.github.com', 'username': 'louiswilliams'}

Message: SERVER-84346 Reduce overhead of resource consumption metrics collection (#17743)

GitOrigin-RevId: 2e3347f957edbad21903a56a37b4d6a732ccb233
Branch: master
https://github.com/mongodb/mongo/commit/230cb798daafb0b51b56231cc3ab7a4e44ec86e7

Generated at Thu Feb 08 06:54:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.