-
Notifications
You must be signed in to change notification settings - Fork 385
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
Sort pods to be executed in multi dimensions #201
Conversation
6dfd3dd
to
d42e963
Compare
As discussed with @mfanjie, we do not need to make custom rank options now, and just make users easy to use, so i delete custom options related codes. |
🎉 Successfully Build Images. Overview: https://finops.coding.net/public-artifacts/gocrane/crane/packages
|
// combine the replicated pod | ||
combineEvictDuplicate(&ae.EvictExecutor, evictPods) | ||
} | ||
} | ||
|
||
// sort the throttle executor by pod qos priority | ||
sort.Sort(ae.ThrottleExecutor.ThrottleDownPods) | ||
sort.Sort(sort.Reverse(ae.ThrottleExecutor.ThrottleUpPods)) | ||
execsort.CpuMetricsSorter(ae.ThrottleExecutor.ThrottleDownPods) |
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.
why it's cpu sorter? if there is other metrics, do you need sort again? should you have a more generic function for sorting?
package sort | ||
|
||
import ( | ||
"k8s.io/klog/v2" |
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.
org import
What type of PR is this?
Feature
What this PR does / why we need it: