Skip to content

Add jitter for scanner plugins#5938

Merged
nickva merged 1 commit intomainfrom
add-scanner-period-jitter
Mar 24, 2026
Merged

Add jitter for scanner plugins#5938
nickva merged 1 commit intomainfrom
add-scanner-period-jitter

Conversation

@nickva
Copy link
Contributor

@nickva nickva commented Mar 24, 2026

Add some jitter (10% by default) to scanner plugin periods. This should help avoid a "thundering herd" effect on the cluster if plugins are set up to start at the same time on all the cluster nodes.

Jitter is configurable per-plugin. Config format is $num_percent or $num_$timeunit. The $num_percent format configures the maximum jitter value as a period percentage. For example 10% of period = 24_hours would be 2.4 hours. The $num_$timeunit is the same format as a period itself, so it can take values like 5_min, 2_hours, etc.

Add some jitter (10% by default) to scanner plugin periods. This should help
avoid a "thundering heard" effect on the cluster if plugins are set up to start
at the same time on all the cluster nodes.

Jitter is configurable per-plugin. Config format is `$num_percent` or
`$num_$timeunit`. The `$num_percent` format configures the maximum jitter value
as a period percentage. For example 10% of `period = 24_hours` would be 2.4
hours. The `$num_$timeunit` is the same format as a period itself, so it can
take values like `5_min`, `2_hours`, etc.
Copy link
Member

@rnewson rnewson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@nickva nickva merged commit c0a9673 into main Mar 24, 2026
59 checks passed
@nickva nickva deleted the add-scanner-period-jitter branch March 24, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants