-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
router: add API to retry reset before request #35074
router: add API to retry reset before request #35074
Conversation
When proxying to upstreams that may be performing non-idempotent operations, it may be desirable to only retry connection rests when the upstream has not yet seen the request. We add the reset-before-request option to provide this functionality. Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
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 feature. Mind calling it out in release notes (changelogs/current.rst) as well?
/wait
Instead of using a bool + callback approach in the router, when the reset-before-request retry policy is set, we check the upstream timings to see if the first upstream byte has been transferred. Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
Thanks for the feedback! Release notes are added and refactoring is complete |
Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
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.
Yeah this looks much cleaner, thanks for iterating!
/wait
Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
/retest |
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.
Thanks for the contribution. LGTM overall except only one comment.
Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
Istio has very few maintainers here and though I'm still learning, I've contributed a handful of upstream envoy PRs as well as 2 recent changes to istio-proxy's telemetry. If existing maintainers have other areas they'd like to see more contributions in, I welcome the feedback! PRs: - envoyproxy/envoy#35074 - envoyproxy/envoy#33857 - envoyproxy/envoy#33362 - envoyproxy/envoy#32961 - istio/proxy#5617 - istio/proxy#5514
Istio has very few maintainers here and though I'm still learning, I've contributed a handful of upstream envoy PRs as well as 2 recent changes to istio-proxy's telemetry. If existing maintainers have other areas they'd like to see more contributions in, I welcome the feedback! PRs: - envoyproxy/envoy#35074 - envoyproxy/envoy#33857 - envoyproxy/envoy#33362 - envoyproxy/envoy#32961 - istio/proxy#5617 - istio/proxy#5514
Fixes #10007
Commit Message: Add new reset-before-request retry API that will only retry reset connections if the headers haven't been delivered.
Additional Description:
Risk Level: Low
Testing: Unit and e2e
Docs Changes: Add new reset-before-request
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]