[SERVER-70031] Collect WiredTiger statistics for FTDC during startup and shutdown Created: 28/Sep/22  Updated: 05/Feb/24

Status: In Progress
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Niaz Pavel
Resolution: Unresolved Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-58026 Omitted FTDC sections cause frequent ... Backlog
Related
related to WT-9670 Allow for WT runtime counter/stats co... Closed
Assigned Teams:
Server Security
Sprint: Security 2024-02-05, Security 2024-02-19
Participants:

 Description   

Use the general event handlers added by WT-9670 to collect FTDC data in certain periods while starting WiredTiger and while shutting it down.



 Comments   
Comment by Louis Williams [ 28/Sep/22 ]

We need to do the following:

  • Install the general event handler
  • When we receive WT_EVENT_CONN_READY , we can safely have FTDC collect WT statistics, but only statistics cursors.
  • When we receive the WT_EVENT_CONN_CLOSE, wait for WT_EVENT_CONN_READY again, and then we can safely collect metrics until WT_EVENT_CONN_CLOSE is signaled again.

When receiving a WT_EVENT_CONN_CLOSE it is an indication the connection is about to become invalid so the callback must signal the thread collecting statistics (or otherwise using the connection) to stop using WT and invalidate its session/connection. The callback must not return to WT until the application has completed using the connection. But it does need to return to WT so that closing can continue. If/When you get another WT_EVENT_CONN_READY it is safe to collect again.

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