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

Propagate downstream timeout to upstream through multiple Envoys #7358

Closed
snowp opened this issue Jun 21, 2019 · 5 comments · Fixed by #8051
Closed

Propagate downstream timeout to upstream through multiple Envoys #7358

snowp opened this issue Jun 21, 2019 · 5 comments · Fixed by #8051
Assignees
Labels
enhancement Feature requests. Not bugs or questions. help wanted Needs help!

Comments

@snowp
Copy link
Contributor

snowp commented Jun 21, 2019

When running Envoy on both egress and ingress, the client will provide a timeout header to the egress Envoy, which will propagate the expected upstream timeout in x-envoy-expected-rq-timeout-ms. The upstream Envoy will not read this header, so it will resolve a new timeout value that is set as the expected timeout for the upstream service. This means that the deadline expected by the egress Envoy is ignored in favor of the ingress Envoy, resulting in the upstream service having an incorrect view of the actual deadline.

It seems like either

  1. inserting x-envoy-rq-timeout-ms with the expected timeout on egress
  2. parsing x-envoy-expected-rq-timeout-ms as the deadline on the ingress side

would solve the issue (likely guarded by a config flag).

Thoughts?

@snowp snowp changed the title Propagate downstream timeout to upstream Propagate downstream timeout to upstream through multiple Envoys Jun 21, 2019
@mattklein123 mattklein123 added the enhancement Feature requests. Not bugs or questions. label Jun 21, 2019
@mattklein123
Copy link
Member

Yeah agreed I think either would solve. I don't have a super strong opinion on which one.

This does bring up the general topic of deadline propagation which we haven't really tackled yet in a holistic way. I've thought at some point we may also want to stick the deadline in trace context baggage since this would also propagate through app calls, though that is a larger problem than you are trying to solve here.

@ramaraochavali
Copy link
Contributor

+1. It would be very useful. Inserting x-envoy-rq-timeout-ms on the ingress side may be good idea. That might require users to set use_remote_address to ensure that it is not sanitized?

@stale
Copy link

stale bot commented Jul 25, 2019

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale stalebot believes this issue/PR has not been touched recently label Jul 25, 2019
@snowp snowp added the help wanted Needs help! label Jul 25, 2019
@stale stale bot removed the stale stalebot believes this issue/PR has not been touched recently label Jul 25, 2019
@nezdolik
Copy link
Member

nezdolik commented Aug 1, 2019

@snowp would like to help out with this.

@snowp
Copy link
Contributor Author

snowp commented Aug 1, 2019

@nezdolik Great, I'll assign this one to you. Feel free to ping me with any questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests. Not bugs or questions. help wanted Needs help!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants