Skip to content

Commit 6ad3d79

Browse files
authored
Merge pull request #33496 from suning0/suning14
[zh]Update content/zh/docs/concepts/scheduling-eviction/pod-priority-preemption.md
2 parents 004cb22 + f97c8bf commit 6ad3d79

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

content/zh/docs/concepts/scheduling-eviction/pod-priority-preemption.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ description: "此优先级类应仅用于 XYZ 服务 Pod。"
175175
<!--
176176
## Non-preempting PriorityClass {#non-preempting-priority-class}
177177
178-
{{< feature-state for_k8s_version="v1.19" state="beta" >}}
178+
{{< feature-state for_k8s_version="v1.24" state="stable" >}}
179179
180180
Pods with `preemptionPolicy: Never` will be placed in the scheduling queue
181181
ahead of lower-priority pods,
@@ -195,7 +195,7 @@ high-priority pods.
195195
-->
196196
## 非抢占式 PriorityClass {#non-preempting-priority-class}
197197

198-
{{< feature-state for_k8s_version="v1.19" state="beta" >}}
198+
{{< feature-state for_k8s_version="v1.24" state="stable" >}}
199199

200200
配置了 `preemptionPolicy: Never` 的 Pod 将被放置在调度队列中较低优先级 Pod 之前,
201201
但它们不能抢占其他 Pod。等待调度的非抢占式 Pod 将留在调度队列中,直到有足够的可用资源,
@@ -328,9 +328,10 @@ resources reserved for Pod P and also gives users information about preemptions
328328
in their clusters.
329329

330330
Please note that Pod P is not necessarily scheduled to the "nominated Node".
331+
The scheduler always tries the "nominated Node" before iterating over any other nodes.
331332
After victim Pods are preempted, they get their graceful termination period. If
332333
another node becomes available while scheduler is waiting for the victim Pods to
333-
terminate, scheduler will use the other node to schedule Pod P. As a result
334+
terminate, scheduler may use the other node to schedule Pod P. As a result
334335
`nominatedNodeName` and `nodeName` of Pod spec are not always the same. Also, if
335336
scheduler preempts Pods on Node N, but then a higher priority Pod than Pod P
336337
arrives, scheduler may give Node N to the new higher priority Pod. In such a
@@ -344,9 +345,10 @@ Pod P 状态的 `nominatedNodeName` 字段被设置为节点 N 的名称。
344345
该字段帮助调度程序跟踪为 Pod P 保留的资源,并为用户提供有关其集群中抢占的信息。
345346

346347
请注意,Pod P 不一定会调度到“被提名的节点(Nominated Node)”。
348+
调度程序总是在迭代任何其他节点之前尝试“指定节点”。
347349
在 Pod 因抢占而牺牲时,它们将获得体面终止期。
348350
如果调度程序正在等待牺牲者 Pod 终止时另一个节点变得可用,
349-
则调度程序将使用另一个节点来调度 Pod P。
351+
则调度程序可以使用另一个节点来调度 Pod P。
350352
因此,Pod 规约中的 `nominatedNodeName` 和 `nodeName` 并不总是相同。
351353
此外,如果调度程序抢占节点 N 上的 Pod,但随后比 Pod P 更高优先级的 Pod 到达,
352354
则调度程序可能会将节点 N 分配给新的更高优先级的 Pod。

0 commit comments

Comments
 (0)