-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-16371. Exclude slow disks when choosing volume #3753
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
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Hi @tasanuma @goiri @jojochuang @ayushtkn @ferhui @Hexiaoqiao , PTAL. Thanks a lot. |
Hi @tasanuma @jojochuang @ayushtkn . Please help to review this PR. Thank you very much. |
Hi @sodonnel , could you please also take a look at this? Thanks. |
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.
@tomscut Thanks for sending the PR, and sorry for being late. It looks like a good feature. I left some comments. Would you please confirm them?
hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml
Outdated
Show resolved
Hide resolved
...p-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/metrics/DataNodeDiskMetrics.java
Outdated
Show resolved
Hide resolved
🎊 +1 overall
This message was automatically generated. |
@tomscut Thanks for updating PR. Could you fix the check style warnings? |
Thank you for reminding me. I fixed it. |
🎊 +1 overall
This message was automatically generated. |
...p-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/metrics/DataNodeDiskMetrics.java
Outdated
Show resolved
Hide resolved
🎊 +1 overall
This message was automatically generated. |
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.
Merged it. Thanks for your contribution, @tomscut! |
Thanks @tasanuma for your review and merging this. |
JIRA: HDFS-16371.
Currently, the datanode can detect slow disks. See HDFS-11461.
And after HDFS-16311, the slow disks metrics we collected is more accurate.
So we can exclude these slow disks according to some rules when choosing volume. This will prevents some slow disks from affecting the throughput of the whole datanode.