-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: Calculate round-trip time and export it via metrics
Now the client has two durations using which it can estimate the rount-trip time of a packet -- the duration between sending request and receiving response and the time it too handler to execute on the server side. Difference is the RTT value. Those values from different calls are accumulated in a client counter as well as the total number of RTT-s received (errors and old servers don't send it). Metrics export both as counters, so one can rate it over time and monitor average RTT. Signed-off-by: Pavel Emelyanov <[email protected]>
- Loading branch information
Showing
4 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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