Skip to content
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

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

wangyang0616
Copy link
Member

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.

@volcano-sh-bot volcano-sh-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 23, 2023
@wangyang0616 wangyang0616 force-pushed the add_podaffinity_logs branch 2 times, most recently from 74aecf9 to cc6a275 Compare September 23, 2023 13:45
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")
Copy link
Member

@william-wang william-wang Sep 25, 2023

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.

Copy link
Member Author

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",
Copy link
Member

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."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

wangyang0616 and others added 2 commits September 25, 2023 10:12
…sed on the pod information

Signed-off-by: wangyang0616 <wangyang8126@gmail.com>
Signed-off-by: wangyang0616 <wangyang8126@gmail.com>
Copy link
Member

@william-wang william-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 25, 2023
@volcano-sh-bot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 25, 2023
@volcano-sh-bot volcano-sh-bot merged commit 57c1ad7 into volcano-sh:master Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The pod anti-affinity policy does not meet expectations in certain scenarios.
3 participants