Skip to content

thrift: add req/resp size histograms#16508

Merged
zuercher merged 18 commits intoenvoyproxy:mainfrom
rgs1:thrift-proxy-request-response-histograms
May 24, 2021
Merged

thrift: add req/resp size histograms#16508
zuercher merged 18 commits intoenvoyproxy:mainfrom
rgs1:thrift-proxy-request-response-histograms

Conversation

@rgs1
Copy link
Member

@rgs1 rgs1 commented May 15, 2021

Commit Message:
This is a follow-up to #15884.

Additional Description: These new histograms should be useful for tracking large requests and responses
in deployments using the Thrift Proxy.
Risk Level: low
Testing: tests added & updated.
Docs Changes: yes, the new histograms and the details of their behavior has been documented.
Release Notes: added.
Platform Specific Features: this is entirely x-platform.

Signed-off-by: Raul Gutierrez Segales rgs@pinterest.com

Before adding tests/docs/changelog entry, I have a design question:

How do we feel about reusing the existing `upstream_{rq,rs}_body_size`
stats for clusters? They are originally aimed at HTTP, but I think
it's probably fine to reuse them for Thrift (and maybe even some
other protos, in the future).

Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
@rgs1 rgs1 requested a review from zuercher as a code owner May 15, 2021 00:40
@rgs1
Copy link
Member Author

rgs1 commented May 15, 2021

cc: @zuercher @fishcakez @williamsfu99 for the design question.

@rgs1
Copy link
Member Author

rgs1 commented May 15, 2021

Related to #15908.

Raul Gutierrez Segales added 3 commits May 15, 2021 09:40
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
@rgs1
Copy link
Member Author

rgs1 commented May 17, 2021

For consistency with #15884, I'll add new thrift. prefixed stats for tracking these new histos.

Make things match with what envoyproxy#15884 does.

Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
@rgs1
Copy link
Member Author

rgs1 commented May 17, 2021

/wait

Will update tests in a bit.

Raul Gutierrez Segales added 2 commits May 17, 2021 19:13
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
@rgs1 rgs1 changed the title [WIP] thrift: add req/resp size histograms thrift: add req/resp size histograms May 17, 2021
Raul Gutierrez Segales added 5 commits May 18, 2021 13:29
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Copy link
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good. I have some comments below. Also, when you're ready for another review, would you mind updating the PR description with the fields from the PR template?

Raul Gutierrez Segales added 4 commits May 19, 2021 19:21
* s/rs/resp/
* account for full responses instead of partial reads
* account protocol upgrade as part of their original request/response
* docs update

Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Copy link
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@zuercher zuercher merged commit 35401ff into envoyproxy:main May 24, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
These new histograms should be useful for tracking large requests and responses
in deployments using the Thrift Proxy. This is a follow-up to envoyproxy#15884.

Risk Level: low
Testing: tests added & updated.
Docs Changes: yes, the new histograms and the details of their behavior has been documented.
Release Notes: added.
Platform Specific Features: n/a

Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants