-
Notifications
You must be signed in to change notification settings - Fork 963
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
[WIP] support rescheduling based on realtime performance #2092
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
532d598
to
2a14cb7
Compare
} | ||
} | ||
} | ||
for _, task := range tasks { |
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.
let's check log level before go through all tasks to improve the performance.
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.
Sounds reasonable. Let me change the level to v5
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.
resolved
victims := ssn.Victims(tasks) | ||
for victim, _ := range victims { | ||
klog.V(4).Infof("Victim %s: [ns: %s, job: %s]\n", victim.Name, victim.Namespace, victim.Job) | ||
if err := ssn.Evict(victim, "shuffle"); err != nil { |
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.
let's have a const value for "shuffle"
.
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.
I'm OK about that.
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.
resolved
@@ -34,6 +34,11 @@ func (o *AllocateFailError) Error() string { | |||
return o.Reason | |||
} | |||
|
|||
type NodeUsage struct { |
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.
prefer to seperate this one into two PRs: shuffle action & rescheduling plugin.
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.
In order to make the implementation looks complete and work as a whole feature, how about separate the PR into more commits and each commit foucs a relative smaller and independent functions?
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.
In order to make the implementation looks complete and work as a whole feature, how about separate the PR into 2 commits?
shuffle action is a common feature which is not related to rescheduling. TDM plugin also use this action :)
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.
Got it. That's reasonable. It's ready now.
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.
let's have a seperate PR for shuffle action, not a commit.
Signed-off-by: Thor-wl <[email protected]>
Signed-off-by: Thor-wl <[email protected]>
… in plugins regularly Signed-off-by: Thor-wl <[email protected]>
Signed-off-by: Thor-wl <[email protected]>
Signed-off-by: Thor-wl <[email protected]>
Signed-off-by: Thor-wl <[email protected]>
2a14cb7
to
12b5ca7
Compare
ref: #1777
design doc: https://github.com/volcano-sh/volcano/blob/master/docs/design/rescheduling.md