Repository navigation
router: record upstream request timeout stats for all the cases - #20072
Merged
mattklein123 merged 9 commits intoFeb 23, 2022
Merged
Conversation
…st for those requests which are awaiting headers Signed-off-by: Rohit Agrawal <[email protected]>
Member
Author
|
@mattklein123 Whenever you get some free time, could you please have a look at this one? You probably have some context on #19829 |
Signed-off-by: Rohit Agrawal <[email protected]>
mattklein123
requested changes
Feb 22, 2022
mattklein123
left a comment
Member
There was a problem hiding this comment.
This generally looks fine to me, with one comment about the scope of the change. This will also need tests. Thank you.
/wait
Signed-off-by: Rohit Agrawal <[email protected]>
mattklein123
requested changes
Feb 22, 2022
Signed-off-by: Rohit Agrawal <[email protected]>
Signed-off-by: Rohit Agrawal <[email protected]>
Signed-off-by: Rohit Agrawal <[email protected]>
Signed-off-by: Rohit Agrawal <[email protected]>
mattklein123
approved these changes
Feb 23, 2022
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR extends the emission of cluster/vcluster level timeout stats upon the upstream requests timeout behind a runtime guard called
do_not_await_headers_on_upstream_timeout_to_emit_statswhich is set astrueby default.Commit Message: Record upstream request timeouts for all the cases and not just for those requests which are awaiting headers.
Additional Description: We want to record the upstream timeouts and increase the stats counters in all the cases. For example, we also want to record the stats in the case of BiDi streaming APIs where we might have already seen the headers. If desired, the old behavior to not do any work for those upstream requests we've already seen the headers for can be achieved by overloading the runtime guard
do_not_await_headers_on_upstream_timeout_to_emit_statsasfalse.(Fixes #19829)
Risk Level: Low
Testing: Added Unit Test
Docs Changes: N/A
Release Notes: Added description regarding the minor behavior change and the runtime guard
do_not_await_headers_on_upstream_timeout_to_emit_statsin the docs.Platform Specific Features: N/A
Signed-off-by: Rohit Agrawal [email protected]