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

add rescheduling plugin #2098

Closed
wants to merge 1 commit into from

Conversation

Thor-wl
Copy link
Contributor

@Thor-wl Thor-wl commented Mar 16, 2022

ref: #1777
design doc: https://github.com/volcano-sh/volcano/blob/master/docs/design/rescheduling.md
This PR should work together with #2094 #2095 #2096. So please DO NOT merge it until the above PR are merged.
Signed-off-by: Thor-wl [email protected]

@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign thor-wl
You can assign the PR to them by writing /assign @thor-wl in a comment when ready.

The full list of commands accepted by this bot can be found 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 size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Mar 16, 2022
@@ -503,6 +507,30 @@ func (ssn *Session) ReservedNodes() {
}
}

// Victims returns the victims for rescheduling
func (ssn *Session) Victims(tasks []*api.TaskInfo) map[*api.TaskInfo]bool {
Copy link
Member

Choose a reason for hiding this comment

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

This function should be part of action instead of this plugin.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Victims get registered functions from ssn.reschedulingFns and then execute them. I think it is better add it in this PR.

Copy link
Member

Choose a reason for hiding this comment

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

One PR for framework (shuffle action), one pr for implementation (rescheduling plugin).
Victims should be also used by TDM plugin.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One PR for framework (shuffle action), one pr for implementation (rescheduling plugin).
Victims should be also used by TDM plugin.

I get you. It's OK for me. Let me make a update.

@Thor-wl Thor-wl requested review from william-wang and shinytang6 and removed request for merryzhou and zen-xu March 16, 2022 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants