Browse Source

added socket insight

Achilleas Tzenetopoulos 5 years ago
parent
commit
22a2526b41

+ 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,