Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controller: jitter requeue interval #751

Merged
merged 1 commit into from
Aug 9, 2023
Merged

controller: jitter requeue interval #751

merged 1 commit into from
Aug 9, 2023

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Aug 9, 2023

This adds a --interval-jitter-percentage flag to the controller to
add a +/- percentage jitter to the interval defined in a HelmRelease
(defaults to 5%).

Effectively, this results in a reconciliation every 9.5 - 10.5 minutes
for a resource with an interval of 10 minutes.

Main reason to add this change is to mitigate spikes in memory and
CPU usage caused by many resources being configured with the same
interval.

Part of: fluxcd/flux2#4120

main.go Show resolved Hide resolved
This adds a `--interval-jitter-percentage` flag to the controller to
add a +/- percentage jitter to the interval defined in a HelmRelease
(defaults to 5%).

Effectively, this results in a reconciliation every 9.5 - 10.5 minutes
for a resource with an interval of 10 minutes.

Main reason to add this change is to mitigate spikes in memory and
CPU usage caused by many resources being configured with the same
interval.

Signed-off-by: Hidde Beydals <[email protected]>
@hiddeco hiddeco merged commit d2e8641 into main Aug 9, 2023
6 checks passed
@hiddeco hiddeco deleted the jitter branch August 9, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants