[SERVER-52788] Create setParameter to enable profiling and slow query logs for resource consumption metrics Created: 11/Nov/20  Updated: 29/Oct/23  Resolved: 10/Dec/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task 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

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-12-14
Participants:

 Description   

Resource consumption metrics should only be recorded in the slow query logging and database profiler when enabled by the profileOperationResourceConsumptionMetrics setParameter.

Rename the existing measureOperationResourceConsumption feature flag into this new setParameter, since it has the same behavior.

  • The profileOperationResourceConsumptionMetrics parameter will output resource consumption metrics for slow queries and the profiler (if enabled)
  • The aggregateOperationResourceConsumptionMetrics parameter will include the above behavior as well as support global aggregation and querying with the $operationMetrics aggregation stage.


 Comments   
Comment by Githook User [ 10/Dec/20 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-52788 Rename measureOperationResourceConsumption feature flag to profileOperationResourceConsumptionMetrics

This renames the "measureOperationResourceConsumption" feature flag to
"profileOperationResourceConsumptionMetrics". It is a default-off flag that
enables a subset of metrics collection that can be profiled and reported in the
slow query logs. The "aggregateOperationResourceConsumptionMetrics" flag, in
addition to enabling global aggregation and the use of $operationMetrics, also
enables profiling and slow query logging covered by the "profile.." flag.
Branch: master
https://github.com/mongodb/mongo/commit/1779d6fcbfa29f1263ba3e77b4aab4e2f41f18cf

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