[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: |
|
||||||||||||
| 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: (cherry picked from commit fcae9d76759eced7f36911473bf0a86536c26be9) |
| Comment by Githook User [ 14/Jul/23 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: |