소스 검색

added socket insight

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,