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

DEFAULT_REQUEST_RETRY_BACKOFFLIMIT value #4863

Closed
manusa opened this issue Feb 10, 2023 · 1 comment · Fixed by #4871
Closed

DEFAULT_REQUEST_RETRY_BACKOFFLIMIT value #4863

manusa opened this issue Feb 10, 2023 · 1 comment · Fixed by #4871
Assignees
Milestone

Comments

@manusa
Copy link
Member

manusa commented Feb 10, 2023

Description

Will be applicable after merging #4825

The current value for Config.DEFAULT_REQUEST_RETRY_BACKOFFLIMIT is currently set to 0.

public static final Integer DEFAULT_REQUEST_RETRY_BACKOFFLIMIT = 0;

This means that the ExponentialBackoffIntervalCalculator will never actually do a retry by default.

public boolean shouldRetry() {
return maxRetries < 0 || currentReconnectAttempt.get() < maxRetries;
}

Should this value changed to something else (for example 5) in order to take advantage of the HttpClient retry functionality?

@shawkins
Copy link
Contributor

shawkins commented Feb 10, 2023

Should this value changed to something else (for example 5) in order to take advantage of the HttpClient retry functionality?

I'm in favor of that. My guess at a the default retries (10) from the go client: https://github.com/kubernetes/client-go/blob/58ff029093df37cad9fa28778a37f11fa495d9cf/rest/request.go#L157

This will help mitigate or remove the need for the timeout handling introduced in #4637 - as it should be 500s that we're seeing prior to being able to perform pod operations.

@manusa manusa self-assigned this Feb 13, 2023
@manusa manusa added this to the 6.5.0 milestone Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants