-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
config: Make gRPC xDS retry backoff configurable #24701
Conversation
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
Hi @jaysonjdmello, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
/assign @yanjunxiang-google Can you take a look? |
source/common/config/utility.h
Outdated
@@ -41,6 +41,9 @@ namespace Config { | |||
|
|||
constexpr absl::string_view Wildcard = "*"; | |||
|
|||
static constexpr uint64_t RetryBaseIntervalMs = 500; |
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.
Are these global constants GRPC retry mechanism specific? Need some comments here. Also is here the best place to define them?
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.
These are not intended to be specific to GRPC retry timers but rather the the default time for prepareBackoffStrategy method in this file.
Can you suggest an alternate location for these global constants please.
LGTM in general. Just a few nit comments. |
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
77d31a0
to
2495a26
Compare
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
/assign @adisuissa For xDS code review maintainer pass |
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
/lgtm api |
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 your contribution.
Before going into the details, can you explain the benefit of using this over the gRPC retries mechanism?
/wait-any
Retrying Azure Pipelines: |
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
/retest |
Retrying Azure Pipelines: |
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
/retest |
Retrying Azure Pipelines: |
/retest |
Retrying Azure Pipelines: |
@htuch, would highly appreciate if you could provide feedback on the new added unit tests in |
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 modulo tiniest nits, thanks for the tests!
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
Thank you for reviewing! I have addressed the issues |
/retest |
Retrying Azure Pipelines: |
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.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.
LGTM, thanks!
Relates: envoyproxy/envoy#24701 Signed-off-by: Tam Mach <tam.mach@cilium.com>
Relates: envoyproxy/envoy#24701 Signed-off-by: Tam Mach <tam.mach@cilium.com>
Relates: envoyproxy/envoy#24701 Signed-off-by: Tam Mach <tam.mach@cilium.io>
Relates: envoyproxy/envoy#24701 Signed-off-by: Tam Mach <tam.mach@cilium.io>
Signed-off-by: Jayson Dmello jdmello@confluent.io
Commit Message:
The gRPC xDS implementation uses hardcoded retry durations for re-establishing the gRPC channel. This change makes the backoff parameters configurable.
Additional Description:
Risk Level: Low
Testing: unit test
Docs Changes:
Release Notes: Added
Platform Specific Features:
[Optional Runtime guard:]
Fixes #24236
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]