Feat: random jitter in ScheduleNextCheck #3838
Feat: random jitter in ScheduleNextCheck #3838vvzvlad wants to merge 7 commits intominiflux:mainfrom
Conversation
|
The current approach of adding jitter to the The There is an existing option In the example below, I have two feeds with a different If I refresh all feeds, they will be refreshed at the same time in parallel regardless of the next scheduled date. The Now, if I add different feeds using the same host, and enable the option |
description: ScheduleNextCheck now adds random jitter of 0–10 minutes to the calculated interval and re-limits the value to the upper limits of the configuration. This reduces the likelihood of massive simultaneous requests to a single host after failed updates and helps bypass frequency limits.
testing: updated check_target_interval to allow for an upper limit of +10m jitter; local linters on changed files without errors.
breaking changes: none
reopen old PR #3821 (I don't know how to change the message of an old commit, and the checks are complaining about it.)