[SERVER-78913] Make the periods of query sampling periodic jobs configurable at runtime Created: 12/Jul/23  Updated: 29/Oct/23  Resolved: 14/Jul/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.1

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-16320 Investigate changes in SERVER-78913: ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Sprint: Sharding NYC 2023-07-24
Participants:

 Description   

Currently, the server parameters for the periods of the periodic jobs for refreshing query sampling configurations and writing sampled queries to disk are configurable on startup only. Although users are unlikely to need to configure these periods, we should still make them configurable in runtime.

Here is an example of how to subscribe to changes to a server parameter, and here is an example of how the period of a PeriodicRunner::Job can be updated. 



 Comments   
Comment by Githook User [ 16/Aug/23 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-78913 Make the periods of query sampling periodic jobs configurable in runtime

(cherry picked from commit fcae9d76759eced7f36911473bf0a86536c26be9)
Branch: v7.0
https://github.com/mongodb/mongo/commit/3e84d88d6fe68f9330b2ea3a710b78ad734d5379

Comment by Githook User [ 14/Jul/23 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-78913 Make the periods of query sampling periodic jobs configurable in runtime
Branch: master
https://github.com/mongodb/mongo/commit/fcae9d76759eced7f36911473bf0a86536c26be9

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