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

Add support for retries and timeouts #12888

Merged
merged 16 commits into from
Jul 26, 2024
Merged

Add support for retries and timeouts #12888

merged 16 commits into from
Jul 26, 2024

Conversation

adleong
Copy link
Member

@adleong adleong commented Jul 25, 2024

Adds support for configuring retries and timeouts as outbound policy. Http retries can be configured as annotations on HttpRoute or Service resources like

retry.linkerd.io/http: 5xx,gateway-error
retry.linkerd.io/limit: "2"
retry.linkerd.io/timeout: 400ms

If any of these retry annotations are specified on an HttpRoute resource, they will override ALL retry annotations on the parent Service resource.

Similarly, Grpc retries can be configured as annotations on GrpcRoute or Service resources like

retry.linkerd.io/grpc: cancelled,deadline-exceeded,internal,resource-exhausted,unavailable
retry.linkerd.io/limit: "2"
retry.linkerd.io/timeout: 400ms

Outbound timeouts can be configured on HttpRoute, GrpcRoute, or Service resources like

timeout.linkerd.io/request: 500ms
timeout.linkerd.io/response: 100ms
timeout.linkerd.io/idle: 50ms

If any of these timeout annotations are specified on a HttpRoute or GrpcRoute resource, they will override ALL timeout annotations on the parent Service resource.

@adleong adleong requested a review from a team as a code owner July 25, 2024 19:26
@adleong adleong merged commit aed4850 into main Jul 26, 2024
42 checks passed
@adleong adleong deleted the alex/retries-actually branch July 26, 2024 17:14
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