|
@@ -328,10 +328,11 @@ func (g *genericScheduler) Schedule(pod *v1.Pod, nodeLister algorithm.NodeLister
|
|
|
|
|
|
// Add pod's information (average metrics to the winning nodes metrics) and cache them
|
|
|
podName := pod.ObjectMeta.Name[0 : len(pod.ObjectMeta.Name)-19]
|
|
|
-
|
|
|
+ var win bool
|
|
|
for _, n := range socketNodes {
|
|
|
+
|
|
|
if n == host {
|
|
|
- win := true
|
|
|
+ win = true
|
|
|
}
|
|
|
klog.Infof("Update Score for Node %v, using App: %v", n, podName)
|
|
|
klog.Infof("App metrics: %v", priorities.Applications[podName].Metrics)
|