Merge pull request from gochist/ko-update-m19-m20

[ko] Update scheduling-eviction
pull/30178/head
Kubernetes Prow Robot 2021-10-12 23:31:50 -07:00 committed by GitHub
commit daf5a932b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 21 deletions
content/ko/docs/concepts/scheduling-eviction

View File

@ -93,9 +93,9 @@ shape:
``` yaml ``` yaml
resources: resources:
- name: CPU - name: cpu
weight: 1 weight: 1
- name: Memory - name: memory
weight: 1 weight: 1
``` ```
@ -105,9 +105,9 @@ resources:
resources: resources:
- name: intel.com/foo - name: intel.com/foo
weight: 5 weight: 5
- name: CPU - name: cpu
weight: 3 weight: 3
- name: Memory - name: memory
weight: 1 weight: 1
``` ```
@ -124,16 +124,16 @@ resources:
``` ```
intel.com/foo : 2 intel.com/foo : 2
Memory: 256MB memory: 256MB
CPU: 2 cpu: 2
``` ```
리소스의 가중치는 다음과 같다. 리소스의 가중치는 다음과 같다.
``` ```
intel.com/foo : 5 intel.com/foo : 5
Memory: 1 memory: 1
CPU: 3 cpu: 3
``` ```
FunctionShapePoint {{0, 0}, {100, 10}} FunctionShapePoint {{0, 0}, {100, 10}}
@ -143,13 +143,13 @@ FunctionShapePoint {{0, 0}, {100, 10}}
``` ```
Available: Available:
intel.com/foo: 4 intel.com/foo: 4
Memory: 1 GB memory: 1 GB
CPU: 8 cpu: 8
Used: Used:
intel.com/foo: 1 intel.com/foo: 1
Memory: 256MB memory: 256MB
CPU: 1 cpu: 1
``` ```
노드 점수는 다음과 같다. 노드 점수는 다음과 같다.
@ -159,16 +159,16 @@ intel.com/foo = resourceScoringFunction((2+1),4)
= (100 - ((4-3)*100/4) = (100 - ((4-3)*100/4)
= (100 - 25) = (100 - 25)
= 75 # requested + used = 75% * available = 75 # requested + used = 75% * available
= rawScoringFunction(75) = rawScoringFunction(75)
= 7 # floor(75/10) = 7 # floor(75/10)
Memory = resourceScoringFunction((256+256),1024) memory = resourceScoringFunction((256+256),1024)
= (100 -((1024-512)*100/1024)) = (100 -((1024-512)*100/1024))
= 50 # requested + used = 50% * available = 50 # requested + used = 50% * available
= rawScoringFunction(50) = rawScoringFunction(50)
= 5 # floor(50/10) = 5 # floor(50/10)
CPU = resourceScoringFunction((2+1),8) cpu = resourceScoringFunction((2+1),8)
= (100 -((8-3)*100/8)) = (100 -((8-3)*100/8))
= 37.5 # requested + used = 37.5% * available = 37.5 # requested + used = 37.5% * available
= rawScoringFunction(37.5) = rawScoringFunction(37.5)
@ -183,12 +183,12 @@ NodeScore = (7 * 5) + (5 * 1) + (3 * 3) / (5 + 1 + 3)
``` ```
Available: Available:
intel.com/foo: 8 intel.com/foo: 8
Memory: 1GB memory: 1GB
CPU: 8 cpu: 8
Used: Used:
intel.com/foo: 2 intel.com/foo: 2
Memory: 512MB memory: 512MB
CPU: 6 cpu: 6
``` ```
노드 점수는 다음과 같다. 노드 점수는 다음과 같다.
@ -207,7 +207,7 @@ Memory = resourceScoringFunction((256+512),1024)
= rawScoringFunction(75) = rawScoringFunction(75)
= 7 = 7
CPU = resourceScoringFunction((2+6),8) cpu = resourceScoringFunction((2+6),8)
= (100 -((8-8)*100/8)) = (100 -((8-8)*100/8))
= 100 = 100
= rawScoringFunction(100) = rawScoringFunction(100)