-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Adding abort-percentage and abort-http-status HTTP filters #10254
Comments
Thanks for opening! Whatever we implement we should definitely do as part of the current filter filter. My only real question is whether the percentage header as value? Couldn't the client just calculate its own percentage? Or do you want this for simplicity? I don't feel strongly about it one way or the other. |
Thanks for the feedback! I updated the issue to reflect only adding to the current fault filter. Yes, the client can calculate the fault-abort-percentage on its own. We wanted to expose this header for both simplicity (less client-side logic) and to ensure platform consistency. |
SGTM |
we can default to 100% in case |
The partial implementation of #10254. Adding a support for http header responsible for injecting faults - aborting requests with x-envoy-fault-abort-request HTTP header set. Risk Level: low, new feature. Testing: Added Docs Changes: Added Release Notes: Added Signed-off-by: Rafal Augustyniak <[email protected]>
The support for It's |
I think that we can close this issue now. The support for |
Signed-off-by: Lizan Zhou <[email protected]>
Title: Add capability to control abort-percentage & abort-http-status settings using HTTP headers
Context: At Lyft, we have plans to run client-side fault injection tests. These tests would allow engineers to gain visibility into how our apps actually behave in degenerate conditions such as backend service mesh outages and connectivity loss. Some example use cases include:
Proposal:
Our plan is to add the following capabilities to http/fault/fault_filter.cc:
These capabilities are already available as fault injection runtime settings. We have an example of similar settings being controlled using HTTP headers - see x-envoy-fault-throughput-response and x-envoy-fault-delay-request HTTP headers that were implemented as part of this Github Issue.
We propose to add support for the following two HTTP headers:
The text was updated successfully, but these errors were encountered: