Calculate and expose more individual peer info through peers endpoint#3393
Merged
latobarita merged 3 commits intostellar:masterfrom Apr 16, 2022
Merged
Calculate and expose more individual peer info through peers endpoint#3393latobarita merged 3 commits intostellar:masterfrom
peers endpoint#3393latobarita merged 3 commits intostellar:masterfrom
Conversation
marta-lokhova
requested changes
Apr 7, 2022
src/overlay/TCPPeer.cpp
Outdated
| a = std::chrono::duration_cast<std::chrono::milliseconds>(b); | ||
| } | ||
| }; | ||
| updateMax(peerMetrics.mMaxMessageDelayInWriteQueue, qdelay); |
Contributor
There was a problem hiding this comment.
Why do we use all-time max? Not sure it's helpful, as this data decays overtime and provides less insight into what's going on.
Contributor
Author
There was a problem hiding this comment.
Updated to show P99s from the last 300-second window
Contributor
Author
|
Here's a sample output for one peer when |
marta-lokhova
requested changes
Apr 8, 2022
Contributor
marta-lokhova
left a comment
There was a problem hiding this comment.
Looks good to me overall! One thing I realized is that reporting p99 for the timers maybe isn't as useful as, say, p75, so perhaps we should report that instead.
src/overlay/Peer.cpp
Outdated
Contributor
There was a problem hiding this comment.
tiny nit: maybe better to rename timer to aggregateTimer for clarity
Contributor
Author
|
I will squash the commits tomorrow |
1679f33 to
0064a59
Compare
Contributor
Author
|
I just finished squashing the commits. |
Contributor
|
r+ 0064a59 |
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.
Description
Resolves #3041
This PR calculates and exposes more metrics for each peer through the
peersendpoint. The new output can be slightly verbose. Ifcompact=true, the new output will be the same as the current output.Checklist
clang-formatv8.0.0 (viamake formator the Visual Studio extension)