Skip to content

examples: use numAttemptsPerPriority in fallback#875

Merged
Xunzhuo merged 3 commits intomainfrom
exampleuse
Jul 14, 2025
Merged

examples: use numAttemptsPerPriority in fallback#875
Xunzhuo merged 3 commits intomainfrom
exampleuse

Conversation

@mathetake
Copy link
Member

@mathetake mathetake commented Jul 12, 2025

Description

numAttemptsPerPriority API was recently introduced in Envoy Gateway which allows users to specify how many times Envoy should send the retry requests to an endpoint in the same priority. For example, let's say when we have a backend p0 and p1 where p0 and p1 has the priority 0 and 1 respectively. Previously, when we want to send a request to p1 on retry, the passive health check must be configured and need to wait for envoy to eject the backend. With this numAttemptsPerPriority API, we no longer need to rely on it and allows us to do the fine-control on the retry backend selection.

Since we dropped v1.4 EG support on the main branch and we are planning to do our next version release based on v1.5 (not released yet), we can showcase this API in our examples now.

Related Issues/PRs (if applicable)

Implemented in EG: envoyproxy/gateway#6204

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>

const (
egDefaultVersion = "v1.4.0"
egDefaultVersion = "v0.0.0-latest"
Copy link
Member Author

Choose a reason for hiding this comment

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

this was forgotten in #859

@mathetake
Copy link
Member Author

hoping e2e passes 🤞

@mathetake mathetake marked this pull request as ready for review July 12, 2025 18:45
@mathetake mathetake requested a review from a team as a code owner July 12, 2025 18:45
Copy link
Member

@Xunzhuo Xunzhuo left a comment

Choose a reason for hiding this comment

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

This is a good improvement, make the retry much clearer.

@Xunzhuo Xunzhuo merged commit 1940e61 into main Jul 14, 2025
23 checks passed
@Xunzhuo Xunzhuo deleted the exampleuse branch July 14, 2025 01:36
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.

2 participants