-
Notifications
You must be signed in to change notification settings - Fork 650
[APIServer][Docs] Add user guide for retry behavior & configuration #4144
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
base: master
Are you sure you want to change the base?
[APIServer][Docs] Add user guide for retry behavior & configuration #4144
Conversation
… and usecases Signed-off-by: justinyeh1995 <[email protected]>
Signed-off-by: justinyeh1995 <[email protected]>
…docs/3883-add-apiserver-rety-to-doc
Signed-off-by: justinyeh1995 <[email protected]>
…docs/3883-add-apiserver-rety-to-doc
…docs/3883-add-apiserver-rety-to-doc
…docs/3883-add-apiserver-rety-to-doc
…ection Signed-off-by: justinyeh1995 <[email protected]>
|
cc @machichima @dentiny - Would appreciate your reviews. Thank you! |
Signed-off-by: justinyeh1995 <[email protected]>
Signed-off-by: justinyeh1995 <[email protected]>
…docs/3883-add-apiserver-rety-to-doc
Signed-off-by: justinyeh1995 <[email protected]>
|
cc @CheyuWu |
| ```go | ||
| const ( | ||
| HTTPClientDefaultMaxRetry = 5 // Increase retries from 3 to 5 | ||
| HTTPClientDefaultBackoffFactor = float64(2) | ||
| HTTPClientDefaultInitBackoff = 2 * time.Second // Longer backoff makes timing visible | ||
| HTTPClientDefaultMaxBackoff = 20 * time.Second | ||
| HTTPClientDefaultOverallTimeout = 120 * time.Second // Longer timeout to allow more retries | ||
| ) | ||
| ``` |
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.
It seems like currently we do not have a way to configure it without modifying the code. I am thinking in this case we can omit the configuration part and just write about the default behavior?
cc @Future-Outlier @rueian for some advice on this
| - **MaxBackoff**: 10s (maximum wait time between retries) | ||
| - **OverallTimeout**: 30s (total timeout for all attempts) | ||
|
|
||
| which means $$Backoff_i = \min(InitBackoff \times BackoffFactor^i, MaxBackoff)$$ |
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.
| which means $$Backoff_i = \min(InitBackoff \times BackoffFactor^i, MaxBackoff)$$ | |
| which means $$\text{Backoff}_i = \min(\text{InitBackoff} \times \text{BackoffFactor}^i, \text{MaxBackoff})$$ | |
For better format, preview:
Why are these changes needed?
This PR addresses the need for documentation related to the new automatic retry feature introduced to the APIServer SDK V2 client in PRs #3551 and #3946. Currently, there is no guide for users on how to configure this essential retry functionality.
Related issue number
Closes #3883
Checks