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

Retry with exponential backoff when fetching artifacts #228

Merged
merged 1 commit into from
Feb 27, 2021

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Feb 26, 2021

This PR implements retries with exponential backoff when fetching artifacts from source-controller. By default, the controller does 10 attempts within a 3.5 minutes window, the number of max retries can be configure using the --http-retry cmd arg.

This mitigates the alert spam (i/o timeout err) when source-controller becomes unavailable for a short period of time e.g. after an upgrade.

Ref: fluxcd/flux2#661 fluxcd/notification-controller#76

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added the enhancement New feature or request label Feb 26, 2021
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

💯 thanks @stefanprodan

@stefanprodan stefanprodan merged commit f1d3bc9 into main Feb 27, 2021
@stefanprodan stefanprodan deleted the http-retry branch February 27, 2021 09:35
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