-
Notifications
You must be signed in to change notification settings - Fork 589
HDDS-9719. Add performance audit log for Datanode #5660
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
# Conflicts: # hadoop-hdds/framework/src/main/java/org/apache/hadoop/ozone/audit/AuditMessage.java
| new Exception(responseProto.getMessage())); | ||
| } | ||
| perf.appendOpLatencyMs(oPLatencyMS); | ||
| performanceAudit(action, params, perf); |
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.
Thanks for the patch @xichen01. One comment here, I think the performance should be audited if the opLatency isExceedThreshold(). Let me know if that makes sense. Otherwise, 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.
Yes, have added.
|
|
||
| } | ||
|
|
||
| private boolean isExceedThreshold(long opLatencyMs) { |
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.
nit: Can we change the function name to isOperationSlow() to make it more readable.
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.
Done.
adoroszlai
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.
Thanks @xichen01 for the patch.
...iner-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java
Outdated
Show resolved
Hide resolved
...iner-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java
Outdated
Show resolved
Hide resolved
...iner-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java
Outdated
Show resolved
Hide resolved
...iner-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java
Outdated
Show resolved
Hide resolved
...iner-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/framework/src/main/java/org/apache/hadoop/ozone/audit/AuditMarker.java
Show resolved
Hide resolved
hadoop-hdds/framework/src/main/java/org/apache/hadoop/ozone/audit/AuditLogger.java
Outdated
Show resolved
Hide resolved
|
Thanks @xichen01 for updating the patch. So if I understand it correctly, the idea is to:
Is that correct? |
Yes, right. |
|
Thanks @xichen01 for the patch, @SaketaChalamchala for the review. |
|
I created HDDS-10270 as a follow-up, for a possible improvement in creating |
What changes were proposed in this pull request?
Add a performance audit log for slow requests on the Datanode, which will be output if the request processing time exceeds the threshold(500ms by default).
Example:
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9719
How was this patch tested?
Manual test