Skip to content

Adding docs for http2 codec stats - #492

Merged
htuch merged 4 commits into
envoyproxy:masterfrom
alyssawilk:header-stats
Feb 15, 2018
Merged

htuch merged 4 commits into
envoyproxy:masterfrom
alyssawilk:header-stats

Conversation

@alyssawilk

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
@alyssawilk alyssawilk reopened this Feb 13, 2018
:header: Name, Type, Description
:widths: 1, 1, 2

rx_reset, Counter, Total number of reset streams frames received by Envoy.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/streams frames/stream frames/

tx_reset, Counter, Total number of reset stream frames transmitted by Envoy.
header_overflow, Counter, Total number of headers going over the 64512 byte limit.
trailers, Counter, Total number of trailers seen on requests coming from downstream.
headers_cb_no_stream, Counter, Total number of errors where a header callback is called without an associated stream.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a weird stat; it's the only one that doesn't have some clear wire equivalent. What's its intended use?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cool. Maybe just say it's intended for low-level debug.

header_overflow, Counter, Total number of headers going over the 64512 byte limit.
trailers, Counter, Total number of trailers seen on requests coming from downstream.
headers_cb_no_stream, Counter, Total number of errors where a header callback is called without an associated stream.
too_many_header_frames, Counter, Total number of times an http2 connection is reset due to receiving too many headers frames.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Prefer s/http2/HTTP/2/ when used as a proper noun. What does it mean to receive too many headers frames for the casual reader?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

2 header frames where one of them was not a 100-continue. Want me to add that inline? I thought stats descriptions were intentionally terse but I'm happy to break that tradition

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree that stats are typically terse, but thinking about the move towards better operations docs, I think being able to understand the meaning of individual stats as a casual user (i.e. not already knowing internal implementation) would be aligned.

rx_reset, Counter, Total number of reset streams frames received by Envoy.
tx_reset, Counter, Total number of reset stream frames transmitted by Envoy.
header_overflow, Counter, Total number of headers going over the 64512 byte limit.
trailers, Counter, Total number of trailers seen on requests coming from downstream.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is it useful to count trailers?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

goodness only knows, but it's incremented on the request path and not the response path, according to my asserts + testing.


rx_reset, Counter, Total number of reset streams frames received by Envoy.
tx_reset, Counter, Total number of reset stream frames transmitted by Envoy.
header_overflow, Counter, Total number of headers going over the 64512 byte limit.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where does 64512 come from?

@htuch htuch self-assigned this Feb 13, 2018
Signed-off-by: Alyssa Wilk <[email protected]>

@htuch htuch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, need to fix docs failures.


rx_reset, Counter, Total number of reset stream frames received by Envoy.
tx_reset, Counter, Total number of reset stream frames transmitted by Envoy.
header_overflow, Counter, Total number of connections reset due to the headers being larger than Envoy::Http::Http2::ConnectionImpl::StreamImpl::MAX_HEADER_SIZE (63k).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Escape this with either * * or backticks.

tx_reset, Counter, Total number of reset stream frames transmitted by Envoy.
header_overflow, Counter, Total number of connections reset due to the headers being larger than Envoy::Http::Http2::ConnectionImpl::StreamImpl::MAX_HEADER_SIZE (63k).
trailers, Counter, Total number of trailers seen on requests coming from downstream.
headers_cb_no_stream, Counter, Total number of errors where a header callback is called without an associated stream. This tracks an unexpected occurance due to an as yet undiagnosed bug.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

External RST link to bug?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think there is a bug. The most I found is comments. This predates Envoy being open sourced

Signed-off-by: Alyssa Wilk <[email protected]>
@htuch
htuch merged commit e14a95b into envoyproxy:master Feb 15, 2018
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.

2 participants