-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HADOOP-18840. Add enQueue time to RpcMetrics #5926
Conversation
💔 -1 overall
This message was automatically generated. |
LGTM. Would you mind to add unit test to cover it. Add check report from Yetus first please. Thanks. |
|
@2005hithlj Thank you for your contribution! But from my personal point of view, we have too many metrics. Hadoop rpc has very good performance. What is this metric used for? Can this metric be of any specific use? |
@@ -81,6 +83,9 @@ public class RpcMetrics { | |||
new MutableQuantiles[intervals.length]; | |||
for (int i = 0; i < intervals.length; i++) { | |||
int interval = intervals[i]; | |||
rpcEnQueueTimeQuantiles[i] = registry.newQuantiles("rpcEnQueueTime" | |||
+ interval + "s", "rpc enqueue time in " + metricsTimeUnit, "ops", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation 5 chars.
@@ -257,6 +264,19 @@ public void incrReceivedBytes(int count) { | |||
receivedBytes.incr(count); | |||
} | |||
|
|||
/** | |||
* Add an RPC enqueue time sample | |||
* @param enQTime the queue time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments should describe in more detail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change lgtm.
Also FYI, in HDFS-17042, we added OverallProcessingTime for each rpc method. It measures the latency from when an rpc request arrives at the NN to when a response is sent back. You might be interested to check out these metrics too.
a40b534
to
91b5409
Compare
91b5409
to
66f3ee5
Compare
@xinglin sir. |
Change lgtm to wait for Yetus report. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@2005hithlj Please check the failed unit test and checkstyle. |
@Hexiaoqiao sir. And Checkstyle Warn: If I follow the above prompts to modify, it will break the style of the RpcMetrics class. |
I don't know the unit test but yeah, for the checkstyle, we can ignore these warnings: for metrics, we don't add visibility modifier. None of the existing metrics has the visibility modifier. |
Change to LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. +1
Committed to trunk. Thanks @2005hithlj for your contribution and @slfan1989 @xinglin for your reviews! |
Hi @2005hithlj Would you mind to check why |
OK Sir, I have created a issue HADOOP-18846 to track it. |
…ed by Liangjun He. Reviewed-by: Shilun Fan <slfan1989@apache.org> Reviewed-by: Xing Lin <linxingnku@gmail.com> Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
Description of PR
JIRA: HADOOP-18840. Add enQueue time to RpcMetrics.
How was this patch tested?
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?