Achilleas Tzenetopoulos 5 年 前
コミット
1961a4f4ff
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2 0
      kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

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

@@ -160,6 +160,8 @@ func customResourceScorer(nodeName string) (float64, error) {
 
 		if sum := average["c6res"] * float64(len(cores)); sum < 1 {
 			res = res * sum
+		} else {
+			res = res * 1 * float64(len(cores))
 		}
 		// Select Node