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

config: Make gRPC xDS retry backoff configurable #24701

Merged
merged 46 commits into from
Apr 16, 2023

Conversation

jaysonjdmello
Copy link
Contributor

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:]

Signed-off-by: Jayson Dmello <jdmello@confluent.io>
@repokitteh-read-only
Copy link

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.

🐱

Caused by: #24701 was opened by jaysonjdmello.

see: more, trace.

@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #24701 was opened by jaysonjdmello.

see: more, trace.

@jaysonjdmello jaysonjdmello changed the title Make gRPC xDS retry backoff configurable config: Make gRPC xDS retry backoff configurable Dec 29, 2022
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
@KBaichoo
Copy link
Contributor

KBaichoo commented Jan 9, 2023

/assign @yanjunxiang-google

Can you take a look?

@@ -41,6 +41,9 @@ namespace Config {

constexpr absl::string_view Wildcard = "*";

static constexpr uint64_t RetryBaseIntervalMs = 500;
Copy link
Contributor

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?

Copy link
Contributor Author

@jaysonjdmello jaysonjdmello Jan 9, 2023

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.

@yanjunxiang-google
Copy link
Contributor

LGTM in general. Just a few nit comments.

Signed-off-by: Jayson Dmello <jdmello@confluent.io>
jaysonjdmello and others added 2 commits January 9, 2023 14:36
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
lizan
lizan previously requested changes Jan 10, 2023
api/envoy/config/core/v3/grpc_service.proto Outdated Show resolved Hide resolved
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
@KBaichoo
Copy link
Contributor

/assign @adisuissa

For xDS code review maintainer pass

jaysonjdmello and others added 2 commits January 10, 2023 11:06
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
@lizan lizan dismissed their stale review January 11, 2023 02:18

/lgtm api

@lizan
Copy link
Member

lizan commented Jan 11, 2023

/lgtm api

Copy link
Contributor

@adisuissa adisuissa left a 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

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Check envoy-presubmit isn't fully completed, but will still attempt retrying.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #24701 (comment) was created by @jaysonjdmello.

see: more, trace.

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>
@jaysonjdmello
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #24701 (comment) was created by @jaysonjdmello.

see: more, trace.

Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
@jaysonjdmello
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Check envoy-presubmit isn't fully completed, but will still attempt retrying.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #24701 (comment) was created by @jaysonjdmello.

see: more, trace.

@jaysonjdmello
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #24701 (comment) was created by @jaysonjdmello.

see: more, trace.

@jaysonjdmello
Copy link
Contributor Author

@htuch, would highly appreciate if you could provide feedback on the new added unit tests in grpc_stream_test , thanks!

Copy link
Member

@htuch htuch left a 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!

test/common/config/utility_test.cc Outdated Show resolved Hide resolved
test/common/config/utility_test.cc Outdated Show resolved Hide resolved
Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
@jaysonjdmello
Copy link
Contributor Author

LGTM modulo tiniest nits, thanks for the tests!

Thank you for reviewing! I have addressed the issues

@jaysonjdmello
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #24701 (comment) was created by @jaysonjdmello.

see: more, trace.

Signed-off-by: Jayson Dmello <110573042+jaysonjdmello@users.noreply.github.com>
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@htuch htuch enabled auto-merge (squash) April 16, 2023 22:38
@htuch htuch merged commit 672b415 into envoyproxy:main Apr 16, 2023
@jaysonjdmello jaysonjdmello deleted the grpc_configurable branch April 17, 2023 16:34
sayboras pushed a commit to sayboras/proxy that referenced this pull request Jul 14, 2023
Relates: envoyproxy/envoy#24701
Signed-off-by: Tam Mach <tam.mach@cilium.com>
sayboras pushed a commit to sayboras/proxy that referenced this pull request Jul 14, 2023
Relates: envoyproxy/envoy#24701
Signed-off-by: Tam Mach <tam.mach@cilium.com>
sayboras pushed a commit to sayboras/proxy that referenced this pull request Jul 14, 2023
Relates: envoyproxy/envoy#24701
Signed-off-by: Tam Mach <tam.mach@cilium.io>
sayboras pushed a commit to cilium/proxy that referenced this pull request Jul 17, 2023
Relates: envoyproxy/envoy#24701
Signed-off-by: Tam Mach <tam.mach@cilium.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make xDS retry backoff configurable
9 participants