-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat(agent): Introduce CLI option to set config URL retry attempts #15377
Conversation
This introduces a new cli option to allow the user to set the number of retry attempts to something other than 3. It also allows the user to set the attempt count to -1 to infinitely retry. fixes: influxdata#8854
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 👍 This pull request doesn't change the Telegraf binary size 📦 Click here to get additional PR build artifactsArtifact URLs |
Some manual testing results: Default CaseThis is the initial attempt + 3 retires:
Set attempts to 4More than default 3 retry attempts:
Set attempts to 2Less than default 3 retries:
Set attempts to 0Will use the default 3 retry attempts:
Set attempts to -1This retries forever:
Set attempts to -2Anything below -1 is invalid:
Retry worksOne positive case, where retry works after I bring server up:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Summary
This introduces a new cli option to allow the user to set the number of retry attempts to something other than 3. It also allows the user to set the attempt count to -1 to infinitely retry.
Checklist
Related issues
fixes: #8854