简体   繁体   English

Pod优先级和抢占

[英]Pod Priority and Preemption

I was reading about Pod Priority and Preemption , I had a question in my mind. 我在阅读有关Pod优先级和抢占性的内容时 ,心里有一个疑问。

Lets say A is higher priority pod and B is lower one. 假设A是优先级较高的Pod,B是较低优先级的Pod。 B is already running , A came along and now it eviction had to be happened. B已经在运行,A出现了,现在必须进行逐出。 Note that B is of type JOB. 请注意,B是JOB类型。 I wanted to ask, If B is evicted. 我想问一下,如果B被驱逐了。 will it be rescheduled later? 以后会重新安排吗?

Answer is Yes. 答案是肯定的。

If a pending Pod has inter-pod affinity to one or more of the lower-priority Pods on the Node, the inter-Pod affinity rule cannot be satisfied in the absence of those lower-priority Pods. 如果挂起的Pod对节点上的一个或多个低优先级Pod具有Pod间的亲和性,则在缺少那些较低优先级Pod的情况下,Pod间的亲和性规则无法满足。 In this case, the scheduler does not preempt any Pods on the Node. 在这种情况下,调度程序不会抢占节点上的任何Pod。 Instead, it looks for another Node. 而是寻找另一个节点。 The scheduler might find a suitable Node or it might not. 调度程序可能会找到合适的节点,也可能找不到。 There is no guarantee that the pending Pod can be scheduled 无法保证可以安排挂起的Pod

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM