Skip to content

feat(translator): add default retry budget and retry host predicate#2757

Merged
arkodg merged 1 commit intoenvoyproxy:mainfrom
guydc:enable-default-retry-budget
Mar 3, 2024
Merged

feat(translator): add default retry budget and retry host predicate#2757
arkodg merged 1 commit intoenvoyproxy:mainfrom
guydc:enable-default-retry-budget

Conversation

@guydc
Copy link
Copy Markdown
Contributor

@guydc guydc commented Mar 3, 2024

What this PR does / why we need it:
This PR sets default values for:

  • retry budgets on any cluster: set to 100% of the configured max parallel request
  • retry host predicate on any route that enables retries: omits previously-host hosts for retries

These values are inspired by envoy and istio recommendations, and intended to improve the overall success of retries when the backend is going through a rolling restart.

Which issue(s) this PR fixes:
Fixes #2754

Signed-off-by: Guy Daich <guy.daich@sap.com>
@guydc guydc requested a review from a team as a code owner March 3, 2024 18:11
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.56%. Comparing base (e1772e4) to head (13b8220).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2757      +/-   ##
==========================================
+ Coverage   63.53%   63.56%   +0.02%     
==========================================
  Files         123      123              
  Lines       20169    20185      +16     
==========================================
+ Hits        12814    12830      +16     
  Misses       6533     6533              
  Partials      822      822              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Contributor

@arkodg arkodg 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 !

@arkodg arkodg requested review from a team March 3, 2024 23:37
@zirain
Copy link
Copy Markdown
Member

zirain commented Mar 3, 2024

/retest

@arkodg arkodg merged commit 7f182b3 into envoyproxy:main Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

set a default retry budget and host retry predicate

3 participants