-
Notifications
You must be signed in to change notification settings - Fork 568
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 retry backoff interval #3461
Conversation
Signed-off-by: Rama Chavali <[email protected]>
@@ -1317,6 +1317,9 @@ message HTTPRetry { | |||
// Flag to specify whether the retries should ignore previously tried hosts during retry. | |||
// Defaults to true. | |||
google.protobuf.BoolValue retry_ignore_previous_hosts = 5; | |||
|
|||
// Specifies the minimum duration between retry attempts. |
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.
Can we indicate something along the lines of "if unset, retries will be instant"? And maybe clarify the interaction with a timeout (e.g. what if my backoff=2s, timeout=3s, retries=3
- what happens? I assume we can retry at most 1x?)
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.
Ok. Updated. PTAL
Signed-off-by: Rama Chavali <[email protected]>
@howardjohn can PTAL when you get chance? |
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.
LGTM aside from default comment
@@ -1317,6 +1317,13 @@ message HTTPRetry { | |||
// Flag to specify whether the retries should ignore previously tried hosts during retry. | |||
// Defaults to true. | |||
google.protobuf.BoolValue retry_ignore_previous_hosts = 5; | |||
|
|||
// Specifies the minimum duration between retry attempts. | |||
// If unset, default minimum duration of 25ms is used as base interval for exponetial backoff. |
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.
Isn't the default no backoff?
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.
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.
Huh. TIL. I always thought it was instant
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.
Is it valid to set 0s
? I think our standard valdiation will reject it unless we add protoc-gen-crd:duration-validation:none
.
Note the GW API says "if unset its implementation specific" so we can keep that at 25ms, but they do allow 0s i think
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 should be greater than 0s in Envoy. If gateway allows that, we will have to tweak that in Envoy.
Configures retry backoff interval. Needed for gateway api also