Skip to content

Commit 65b60d1

Browse files
authored
Merge pull request #21067 from jqmichael/patch-5
Added comments to RequestedToCapacityRatio formula
2 parents 485dd1d + 27f44d7 commit 65b60d1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/en/docs/concepts/configuration/resource-bin-packing.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,23 +132,23 @@ CPU: 1
132132
Node Score:
133133
134134
intel.com/foo = resourceScoringFunction((2+1),4)
135-
= (100 - ((4-3)*100/4)
136-
= (100 - 25)
137-
= 75
138-
= rawScoringFunction(75)
139-
= 7
135+
= (100 - ((4-3)*100/4)
136+
= (100 - 25)
137+
= 75 # requested + used = 75% * available
138+
= rawScoringFunction(75)
139+
= 7 # floor(75/10)
140140
141141
Memory = resourceScoringFunction((256+256),1024)
142142
= (100 -((1024-512)*100/1024))
143-
= 50
143+
= 50 # requested + used = 50% * available
144144
= rawScoringFunction(50)
145-
= 5
145+
= 5 # floor(50/10)
146146
147147
CPU = resourceScoringFunction((2+1),8)
148148
= (100 -((8-3)*100/8))
149-
= 37.5
149+
= 37.5 # requested + used = 37.5% * available
150150
= rawScoringFunction(37.5)
151-
= 3
151+
= 3 # floor(37.5/10)
152152
153153
NodeScore = (7 * 5) + (5 * 1) + (3 * 3) / (5 + 1 + 3)
154154
= 5

0 commit comments

Comments
 (0)