|
@@ -158,17 +158,17 @@ func customResourceScorer(nodeName string) (float64, error) {
|
|
|
}
|
|
|
res := calculateScore(scorerInput{metrics: results}, customScoreFn)
|
|
|
|
|
|
- klog.Infof("Node: %v\t res before: %v", nodeName, res)
|
|
|
+ //klog.Infof("Node: %v\t res before: %v", nodeName, res)
|
|
|
|
|
|
if sum := average["c6res"] * float64(len(cores)); sum < 1 {
|
|
|
- klog.Infof("Average C6 is less than 1, so we get: %v", average["c6res"])
|
|
|
+ //klog.Infof("Average C6 is less than 1, so we get: %v", average["c6res"])
|
|
|
res = res * average["c6res"]
|
|
|
} else {
|
|
|
res = res * 1
|
|
|
}
|
|
|
// Select Node
|
|
|
|
|
|
- klog.Infof("Node name %s, has score %v\n", nodeName, res)
|
|
|
+ //klog.Infof("Node name %s, has score %v\n", nodeName, res)
|
|
|
return res, nil
|
|
|
} else {
|
|
|
klog.Infof("Error finding the uuid: %v", ok)
|