Supply x-envoy-downstream-service-node HTTP header to the upstream when needed#1021
Conversation
Conflicts: source/common/http/headers.h
htuch
left a comment
There was a problem hiding this comment.
@RomanDzhabarov The implementation LGTM, but I'm curious why you went for a fixed x-envoy-downstream-canary header instead of x-envoy-downstream-service-node, i.e. it seems this loses information. Is there some internal upstream expectation that treats this header specially?
Out of the scope of this PR, I was thinking this might be another use for #1016 if we had %SERVICE_NODE% as a header variable.
|
@htuch The use case we have in mind is to have fault filters on the upstream ingress and do fault injections only for canary downstream nodes. I need to detect whether downstream is canary or not (so I wanted to be explicit). I can proceed, either way, let me know. |
|
I'm wondering whether using a fixed |
|
I'd vote that canary is not just a single node, we should not base our assumption on having just one canary. Here is what i think would be better to satisfy our needs. I'll do a change shortly. |
…#1021) Description: this PR attempts to fix two related crashes. By hooking up to iOS's notification system we attempt to terminate the engine earlier, and allow all objects necessary to be available fixing #1035. Potentially fixes #831. Risk Level: med - changes termination sequence Testing: added test Signed-off-by: Jose Nino <jnino@lyft.com> Signed-off-by: JP Simard <jp@jpsim.com>
…#1021) Description: this PR attempts to fix two related crashes. By hooking up to iOS's notification system we attempt to terminate the engine earlier, and allow all objects necessary to be available fixing #1035. Potentially fixes #831. Risk Level: med - changes termination sequence Testing: added test Signed-off-by: Jose Nino <jnino@lyft.com> Signed-off-by: JP Simard <jp@jpsim.com>
**Description** There was a bug in the translation of OpenAI->OpenAI layer where the body mutation is broken when forceBodyMutation = true. forceBodyMutation becomes true when stream_options is not present in the original body and we lacked the test case for it. **Related Issues/PRs (if applicable)** Closes #1017 --------- Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
This works similar to the x-envoy-downstream-cluster-name and can be used for various purposes by upstream.