Skip to content

Commit daf5a93

Browse files
authored
Merge pull request #30035 from gochist/ko-update-m19-m20
[ko] Update scheduling-eviction
2 parents d7989c9 + f5981bc commit daf5a93

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

content/ko/docs/concepts/scheduling-eviction/resource-bin-packing.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ shape:
9393

9494
``` yaml
9595
resources:
96-
- name: CPU
96+
- name: cpu
9797
weight: 1
98-
- name: Memory
98+
- name: memory
9999
weight: 1
100100
```
101101

@@ -105,9 +105,9 @@ resources:
105105
resources:
106106
- name: intel.com/foo
107107
weight: 5
108-
- name: CPU
108+
- name: cpu
109109
weight: 3
110-
- name: Memory
110+
- name: memory
111111
weight: 1
112112
```
113113

@@ -124,16 +124,16 @@ resources:
124124

125125
```
126126
intel.com/foo : 2
127-
Memory: 256MB
128-
CPU: 2
127+
memory: 256MB
128+
cpu: 2
129129
```
130130
131131
리소스의 가중치는 다음과 같다.
132132
133133
```
134134
intel.com/foo : 5
135-
Memory: 1
136-
CPU: 3
135+
memory: 1
136+
cpu: 3
137137
```
138138
139139
FunctionShapePoint {{0, 0}, {100, 10}}
@@ -143,13 +143,13 @@ FunctionShapePoint {{0, 0}, {100, 10}}
143143
```
144144
Available:
145145
intel.com/foo: 4
146-
Memory: 1 GB
147-
CPU: 8
146+
memory: 1 GB
147+
cpu: 8
148148

149149
Used:
150150
intel.com/foo: 1
151-
Memory: 256MB
152-
CPU: 1
151+
memory: 256MB
152+
cpu: 1
153153
```
154154
155155
노드 점수는 다음과 같다.
@@ -159,16 +159,16 @@ intel.com/foo = resourceScoringFunction((2+1),4)
159159
= (100 - ((4-3)*100/4)
160160
= (100 - 25)
161161
= 75 # requested + used = 75% * available
162-
= rawScoringFunction(75)
163-
= 7 # floor(75/10)
162+
= rawScoringFunction(75)
163+
= 7 # floor(75/10)
164164

165-
Memory = resourceScoringFunction((256+256),1024)
165+
memory = resourceScoringFunction((256+256),1024)
166166
= (100 -((1024-512)*100/1024))
167167
= 50 # requested + used = 50% * available
168168
= rawScoringFunction(50)
169169
= 5 # floor(50/10)
170170

171-
CPU = resourceScoringFunction((2+1),8)
171+
cpu = resourceScoringFunction((2+1),8)
172172
= (100 -((8-3)*100/8))
173173
= 37.5 # requested + used = 37.5% * available
174174
= rawScoringFunction(37.5)
@@ -183,12 +183,12 @@ NodeScore = (7 * 5) + (5 * 1) + (3 * 3) / (5 + 1 + 3)
183183
```
184184
Available:
185185
intel.com/foo: 8
186-
Memory: 1GB
187-
CPU: 8
186+
memory: 1GB
187+
cpu: 8
188188
Used:
189189
intel.com/foo: 2
190-
Memory: 512MB
191-
CPU: 6
190+
memory: 512MB
191+
cpu: 6
192192
```
193193
194194
노드 점수는 다음과 같다.
@@ -207,7 +207,7 @@ Memory = resourceScoringFunction((256+512),1024)
207207
= rawScoringFunction(75)
208208
= 7
209209

210-
CPU = resourceScoringFunction((2+6),8)
210+
cpu = resourceScoringFunction((2+6),8)
211211
= (100 -((8-8)*100/8))
212212
= 100
213213
= rawScoringFunction(100)

0 commit comments

Comments
 (0)