Skip to content

config: Make gRPC xDS retry backoff configurable#24701

Merged
htuch merged 46 commits intoenvoyproxy:mainfrom
jaysonjdmello:grpc_configurable
Apr 16, 2023
Merged

config: Make gRPC xDS retry backoff configurable#24701
htuch merged 46 commits intoenvoyproxy:mainfrom
jaysonjdmello:grpc_configurable

Conversation

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

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
Copy Markdown

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
Copy Markdown
Contributor

KBaichoo commented Jan 9, 2023

/assign @yanjunxiang-google

Can you take a look?

Comment thread source/common/config/utility.h Outdated

constexpr absl::string_view Wildcard = "*";

static constexpr uint64_t RetryBaseIntervalMs = 500;
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread test/common/config/utility_test.cc Outdated
@yanjunxiang-google
Copy link
Copy Markdown
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
Comment thread api/envoy/config/core/v3/grpc_service.proto Outdated
Signed-off-by: Jayson Dmello <jdmello@confluent.io>
@KBaichoo
Copy link
Copy Markdown
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
Copy Markdown
Member

lizan commented Jan 11, 2023

/lgtm api

Copy link
Copy Markdown
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

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
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

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

🐱

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

see: more, trace.

@jaysonjdmello
Copy link
Copy Markdown
Contributor Author

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

Comment thread source/common/config/utility.cc Outdated
Copy link
Copy Markdown
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!

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

LGTM modulo tiniest nits, thanks for the tests!

Thank you for reviewing! I have addressed the issues

@jaysonjdmello
Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

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
Copy Markdown
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 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