-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-9522. Add percentile for ProtocolMessageMetrics #6681
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
Conversation
|
@whbing Hello~! Could you plz help review this pr? |
| private final Map<KEY, AtomicLong> elapsedTimes = | ||
| new ConcurrentHashMap<>(); | ||
|
|
||
| private final Map<KEY, MutableQuantiles[]> quantiles = |
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.
See #7392 / HDDS-11642, MutableQuantiles objects need to be stopped explicitly.
jojochuang
left a comment
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.
Mostly good just two comments
| if (quantileEnable) { | ||
| MetricsRegistry registry = | ||
| new MetricsRegistry(value.toString() + "MessageMetrics"); | ||
| MutableQuantiles[] mutableQuantiles = | ||
| new MutableQuantiles[intervals.length]; | ||
| quantiles.put(value, mutableQuantiles); | ||
| for (int i = 0; i < intervals.length; i++) { | ||
| mutableQuantiles[i] = registry.newQuantiles( | ||
| intervals[i] + "s", | ||
| value.toString() + "rpc time in milli second", | ||
| "ops", "latencyMs", intervals[i]); | ||
| } | ||
| } |
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.
please add tests to cover these new lines.
|
/pending review comments |
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.
Marking this issue as un-mergeable as requested.
Please use /ready comment when it's resolved.
Please note that the PR will be closed after 21 days of inactivity from now. (But can be re-opened anytime later...)
review comments
3374c08 to
3b796c5
Compare
|
Thank you very much for the patch. I am closing this PR temporarily as there was no activity recently and it is waiting for response from its author. It doesn't mean that this PR is not important or ignored: feel free to reopen the PR at any time. It only means that attention of committers is not required. We prefer to keep the review queue clean. This ensures PRs in need of review are more visible, which results in faster feedback for all PRs. If you need ANY help to finish this PR, please contact the community on the mailing list or the slack channel." |
What changes were proposed in this pull request?
This PR aims to add percentile for ProtocolMessageMetrics.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9522
How was this patch tested?
Tested in my own cluster.
When we have config:
OM:

SCM:



DN:

The previous review record is as follows:
#5479