-
Notifications
You must be signed in to change notification settings - Fork 993
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
Fix Queue capability overuse when specify minAvailable less than task replicas #1042
Conversation
Welcome @zen-xu! |
/assign @k82cn |
So i am confused what's this for |
That's right, i remember we have fixed this issue. So that's why i am confused. Let me have a look |
@zen-xu I suspect you do not enable This pr looks good, bu expect file a fix into master branch first, and cherry-pick back to release-1.0 and release-0.4 after that. |
enqueue is enabled |
IC, the minavailable is 1 |
Yes,I forget to mention it🤦🏻♂️ |
…replicas Signed-off-by: Xu ZhengYu <zen-xu@outlook.com>
attr.deserved = helpers.Min(attr.deserved, attr.request) | ||
meet[attr.queueID] = struct{}{} | ||
klog.V(4).Infof("queue <%s> is meet cause of the capability", attr.name) | ||
} else if attr.request.Less(attr.deserved) { |
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
maybe we can clean it a little bit more, remove the less check
if attr.capability != nil{
attr.deserved = helpers.Min(attr.deserved, attr.capability)
}
attr.deserved = helpers.Min(attr.deserved, attr.request)
/lgtm /approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu, zen-xu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Ref issue #834.
I have checked my pull request can fix this bug.