Achilleas Tzenetopoulos преди 5 години
родител
ревизия
22a2526b41
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

+ 1 - 1
kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

@@ -108,7 +108,7 @@ func readFile(cfg *Config, file string) {
 }
 
 func customScoreFn(metrics map[string]float64) float64 {
-	return metrics["reads"] * metrics["writes"] / metrics["ipc"]
+	return metrics["mem_read"] * metrics["mem_write"] / metrics["ipc"]
 }
 
 func calculateScore(results map[string]float64,