You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "GuoPhilipse (via GitHub)" <gi...@apache.org> on 2023/10/06 15:40:29 UTC
Re: [PR] HDFS-17210. Optimize AvailableSpaceBlockPlacementPolicy. [hadoop]
GuoPhilipse commented on PR #6113:
URL: https://github.com/apache/hadoop/pull/6113#issuecomment-1750939980
> I think you want to reduce the probability of nodes with extremely high storage usage being selected, which is very useful. But the current changes are confusing me a bit, so I would like to discuss it with you. The meaning of `toleranceLimit` is not very intuitive to me. The logic here couples the effect of `balancedSpaceToleranceLimit` to the configuration value of `balancedSpaceTolerance`. For example, if we configure `balancedSpaceTolerance` to 10, nodeA's usage is 99%, and nodeB's usage is 90%, then even if `balancedSpaceToleranceLimit` is configured to 93, nodeA will still be selected without any doubt. I think this is not what we expected. I suggest that we can directly use nodes with greater usage to make judgments. At the same time, we can make the meaning of `toleranceLimit` more intuitive and no longer negate it when using it. The changes are as follows: line215: `boolean toleranceLimit = Math.max(a.getDfsUsedPercent(), b.getDfsUsedPercent()) < balancedSpaceToleranceL
imit;` Line 217: `if (a.equals(b) || (toleranceLimit && Math.abs(a.getDfsUsedPercent() - b.getDfsUsedPercent()) < balancedSpaceTolerance) || ((isBalanceLocal && a.getDfsUsedPercent() < 50))) ` Please feel free to disagree. Looking forward to your reply.
Thanks @zhangshuyan0 for you review, It seems using min(A,B) only cover when all node's usage are over balancedSpaceToleranceLimit, which does not fit for lower node usage and higher node usage, so your suggest changes makes sense for me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org