[DOCS-15705] Investigate changes in SERVER-69831: Report on metrics gathered in the SessionWorkflow loop Created: 26/Oct/22  Updated: 13/Nov/23  Resolved: 10/Jan/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 6.3.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Jason Price
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-69831 Report on metrics gathered in the Ses... Closed
Participants:
Days since reply: 1 year, 4 weeks, 1 day ago
Epic Link: DOCSP-22092
Story Points: 5

 Description   
Original Downstream Change Summary

A new log reports on the "session workflow" loop time if time taken exceeds the existing slowMs config. The session workflow includes all of the work captured by the slow query log, and more. We capture how long it took to:
1) Receive a message
2) Process that message into a work item (effectively a command)
3) Do the work (effectively the same time frame as slow query)
4) Send the response
5) Do any cleanup after sending a response

We log if the time from steps 2-5 was slow (step 1 is not an indication of slowness because we are waiting for a client to send us a message).

Note: this does not do sampling like the slow query log.

Description of Linked Ticket

Context: SERVER-55638 and SERVER-63883 were both logged before our rework to SessionWorkflow started. They are both being closed in favor of an approach that consolidates the two implementations and allows for us to spend some time clarifying requirements with bruce.lucas@mongodb.com.

Previous task: (SERVER-69830) ** At each stage of the SessionWorkflow, capture `timeSpent` and store it in an object associated 1:1 with each loop.

This task: Report on these gathered metrics in a manner that's satisfactory to the requirements of stakeholders of the original tickets: SERVER-55638 and SERVER-63883.

Requirements should be discussed with bruce.lucas@mongodb.com.



 Comments   
Comment by Githook User [ 10/Jan/23 ]

Author:

{'name': 'jason-price-mongodb', 'email': '69260375+jason-price-mongodb@users.noreply.github.com', 'username': 'jason-price-mongodb'}

Message: Docs 15705 session workflow log (#2293)

Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com>
Branch: v6.3
https://github.com/10gen/docs-mongodb-internal/commit/79f3a594a402db1b77da905b0c20f02c39d966ca

Comment by Education Bot [ 26/Oct/22 ]

Fix Version updated for upstream SERVER-69831:
6.2.0-rc0

Generated at Thu Feb 08 08:13:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.