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

Add configurable exponential backoff to Agent auto-auth #10964

Merged
merged 4 commits into from
Feb 23, 2021
Merged

Conversation

kalafut
Copy link
Contributor

@kalafut kalafut commented Feb 22, 2021

The existing Agent auto-auth retry delay simply dithers between 1-3s. If Agents continually fail to auth, they should exponentially back off. This PR does that, with a default max delay of 60s. That value is configurable via a new max_backoff auto-auth method configuration parameter.

@kalafut kalafut added this to the 1.7 milestone Feb 22, 2021
command/agent/auth/auth.go Outdated Show resolved Hide resolved
command/agent/auth/auth.go Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview – vault-storybook February 22, 2021 23:23 Inactive
@vercel vercel bot temporarily deployed to Preview – vault February 22, 2021 23:23 Inactive
@vercel vercel bot temporarily deployed to Preview – vault February 23, 2021 14:57 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook February 23, 2021 14:57 Inactive
Copy link
Contributor

@tomhjp tomhjp left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kalafut kalafut merged commit 022574a into master Feb 23, 2021
@kalafut kalafut deleted the agent-backoff branch February 23, 2021 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants