-
Notifications
You must be signed in to change notification settings - Fork 502
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
HDDS-3336. Metrics for Recon OzoneManager DB sync. #761
Conversation
da7c065
to
70ece9c
Compare
cc @vivekratnavel / @swagle |
...ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/metrics/OzoneManagerSyncMetrics.java
Show resolved
Hide resolved
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.
Minor comment, overall LGTM.
...ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/metrics/OzoneManagerSyncMetrics.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/metrics/package-info.java
Outdated
Show resolved
Hide resolved
Thanks for the review @swagle. |
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.
Overall LGTM
...ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/metrics/OzoneManagerSyncMetrics.java
Outdated
Show resolved
Hide resolved
...ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/metrics/OzoneManagerSyncMetrics.java
Show resolved
Hide resolved
Thanks the patch @avijayanhwx FYI: HDDS-3239 introduced message level metrics for all the RPC endpoints. I think some of the metrics can be removed from this patch (eg. generic counter / latency) |
e0e8446
to
cb80b0f
Compare
Thank you for the information Marton! I am wondering if I should still keep the counter and time to keep it specific per recon client instance. In the future, more clients may use the same request with different input arguments, and the metrics will be averaged out across all clients. |
I am not sure if it will ever happen related to the OM db download RPC, but how knows.... But if you need a client side metrics: what about adding a |
@elek I think that is a good idea. I have removed the generic counter and timer metric for the RPC call, and I will do the client specific protocol message metrics in a future JIRA (since there is no other client who is going to use the getDBUpdates API in the near future). |
@elek Please review |
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.
@elek I think that is a good idea. I have removed the generic counter...
Thanks the answer. My feeling is that we can remove even more counters from these in the future, when we will have some generic metrics on the client side (especially with flexible tag support).
But I am fine even with the original patch. I am more interested about having a consensus about the middle-term plans and have a plan how it can be achieved.
I assume you need the numbers right now, and the proposed generic solution is not yet there...
I am merging it now, thanks the contribution.
What changes were proposed in this pull request?
Added some useful metrics for tracking how Recon's OM DB requests are going on.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-3336
How was this patch tested?
Manually tested on top of #715.
Added unit tests.