-
Notifications
You must be signed in to change notification settings - Fork 9.2k
YARN-11633.[Federation] Improve LoadBasedRouterPolicy To Use Available vcores. #6356
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. |
|
@singer-bin Thank you for contribution! YARN's scheduler compares based on memory by default. We can refer to |
| long availableMemory = getAvailableMemory(entry.getValue()); | ||
| if (availableMemory > currBestMem) { | ||
| long availableVcore = getAvailableVcore(entry.getValue()); | ||
| if (availableMemory > currBestMem && availableVcore > currBestVcore) { |
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.
if (availableMemory > currBestMem) {
....
}
This code is needed to select the largest subcluster of availableMemory. Memory is a more strictly limited resource, because without memory, the application cannot execute. Sufficient memory can also be considered as the cluster is idle.
If we add cpu constraints (availableVcore), subclusters with smaller memory may be selected, which is not an expected situation.
|
@slfan1989 Thank you for your reply, I will close this PR. Where can I contact you, such as wechat, and I will ask you some questions. |
Sorry for the late reply, we can contact by email. @me below pr or jira, if I can understand the issue you describe, I will reply. |
|
We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
Description of PR
JIRA: YARN-11633. [Federation] Improve LoadBasedRouterPolicy To Use Available vcores.
How was this patch tested?
unnecessary
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?