Skip to content

Commit ee835bc

Browse files
committed
Don't normalize usage
1 parent 29cf25b commit ee835bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/scheduler/plugins/proportion/resource_division/resource_division.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,11 @@ func divideUpToFairShare(totalResourceAmount, kValue float64, queues map[common_
183183
continue
184184
}
185185

186-
// normalize values
186+
// Normalize queue over quota weight
187187
nWeight := share.OverQuotaWeight / totalWeights
188-
nUsage := share.GetUsage() / totalUsages
188+
189+
// We assume that usage is normalized to usage/clusterCapacity
190+
nUsage := share.GetUsage()
189191

190192
portion := nWeight + kValue*(nWeight-nUsage)
191193
portions[queue.UID] = portion

0 commit comments

Comments
 (0)