-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for retries and timeouts (#12888)
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. Signed-off-by: Alex Leong <[email protected]> Co-authored-by: Oliver Gould <[email protected]>
- Loading branch information
Showing
17 changed files
with
1,385 additions
and
641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.