-
Notifications
You must be signed in to change notification settings - Fork 1k
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: the pod anti-affinity constraint fails #3139
fix: the pod anti-affinity constraint fails #3139
Conversation
74aecf9
to
cc6a275
Compare
cc6a275
to
ba31856
Compare
if VGPUEnable { | ||
fit, _, err := checkNodeGPUSharingPredicate(pod, gs, true) | ||
if err != nil || !fit { | ||
klog.Errorln("deviceSharing err=", err.Error()) | ||
return devices.Unschedulable, fmt.Sprintf("4pdvgpuDeviceSharing %s", err.Error()), err | ||
} | ||
} | ||
klog.V(3).Infoln("4pdvgpu DeviceSharing:FitInPod successed") | ||
klog.V(5).Infoln("4pdvgpu DeviceSharing:FitInPod successed") |
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.
update this message to make more clear for user. change the 4pdvgpu
and make the message to be a complete sentence.
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
skipPlugins[taskKey] = plugins | ||
} | ||
skipPlugins[taskKey].Insert(interpodaffinity.Name) | ||
klog.V(3).Infof("pod(%s/%s) affinity require information is nil, plugin InterPodAffinity is skip", |
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.
change "pod(%s/%s) affinity require information is nil, plugin InterPodAffinity is skip" to "pod(%s/%s) affinity require information is nil, plugin InterPodAffinity is skipped."
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
…sed on the pod information Signed-off-by: wangyang0616 <wangyang8126@gmail.com>
Signed-off-by: wangyang0616 <wangyang8126@gmail.com>
ba31856
to
a324fa6
Compare
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: william-wang 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 |
fix: #3138
Volcano schedules multiple pods in batches in a session. You need to record which filter policies need to be skipped for the key value of the pod. Otherwise, pods may affect each other.