Skip to content

Commit 52b1408

Browse files
committed
update kep details
1 parent 05c2a43 commit 52b1408

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

kep/594-resourcepolicy/README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The machines in a Kubernetes cluster are typically heterogeneous, with varying C
2929

3030
### Goals
3131

32-
1. Delvelop a filter plugin to restrict the resource consumption on each unit for different workloads.
32+
1. Develop a filter plugin to restrict the resource consumption on each unit for different workloads.
3333
2. Develop a score plugin to favor nodes matched by a high priority unit.
3434
3. Automatically setting deletion costs on Pods to control the scaling in sequence of workloads through a controller.
3535

@@ -110,12 +110,15 @@ and write this information into cycleState.
110110
Filter check if the node belongs to an available unit. If the node doesn't belong to any unit, we will return
111111
success if the strategy is `prefer`, otherwise we will return unschedulable.
112112

113+
Besides, filter will check if the pods that was scheduled on the unit has already violated the quantity constraint.
114+
If the number of pods has reach the `maxCount`, all the nodes in unit will be marked unschedulable.
115+
113116
##### Score
114-
If `priority` and `weight` is set in resource policy, we will schedule pod based on `priority` first. For units with the same `priority`, we will spread pods based on `weight`.
117+
If `priority` is set in resource policy, we will schedule pod based on `priority`. Default priority is 1, and minimum priority is 1.
115118

116119
Score calculation details:
117120

118-
1. calculate priority score, `scorePriority = priority * 20`
121+
1. calculate priority score, `scorePriority = (priority-1) * 20`, to make sure we give nodes without priority a minimum score.
119122
2. normalize score
120123

121124
##### PostFilter

0 commit comments

Comments
 (0)