Merge pull request #27754 from shannonxtreme/preemption-qos
Clarify use of QoS in eviction ranking
This commit is contained in:
@@ -353,13 +353,15 @@ the removal of the lowest priority Pods is not sufficient to allow the scheduler
|
|||||||
to schedule the preemptor Pod, or if the lowest priority Pods are protected by
|
to schedule the preemptor Pod, or if the lowest priority Pods are protected by
|
||||||
`PodDisruptionBudget`.
|
`PodDisruptionBudget`.
|
||||||
|
|
||||||
The only component that considers both QoS and Pod priority is
|
The kubelet uses Priority to determine pod order for [out-of-resource eviction](/docs/tasks/administer-cluster/out-of-resource/).
|
||||||
[kubelet out-of-resource eviction](/docs/tasks/administer-cluster/out-of-resource/).
|
You can use the QoS class to estimate the order in which pods are most likely
|
||||||
The kubelet ranks Pods for eviction first by whether or not their usage of the
|
to get evicted. The kubelet ranks pods for eviction based on the following factors:
|
||||||
starved resource exceeds requests, then by Priority, and then by the consumption
|
|
||||||
of the starved compute resource relative to the Pods' scheduling requests.
|
1. Whether the starved resource usage exceeds requests
|
||||||
See
|
1. Pod Priority
|
||||||
[evicting end-user pods](/docs/tasks/administer-cluster/out-of-resource/#evicting-end-user-pods)
|
1. Amount of resource usage relative to requests
|
||||||
|
|
||||||
|
See [evicting end-user pods](/docs/tasks/administer-cluster/out-of-resource/#evicting-end-user-pods)
|
||||||
for more details.
|
for more details.
|
||||||
|
|
||||||
kubelet out-of-resource eviction does not evict Pods when their
|
kubelet out-of-resource eviction does not evict Pods when their
|
||||||
@@ -367,7 +369,6 @@ usage does not exceed their requests. If a Pod with lower priority is not
|
|||||||
exceeding its requests, it won't be evicted. Another Pod with higher priority
|
exceeding its requests, it won't be evicted. Another Pod with higher priority
|
||||||
that exceeds its requests may be evicted.
|
that exceeds its requests may be evicted.
|
||||||
|
|
||||||
|
|
||||||
## {{% heading "whatsnext" %}}
|
## {{% heading "whatsnext" %}}
|
||||||
|
|
||||||
* Read about using ResourceQuotas in connection with PriorityClasses: [limit Priority Class consumption by default](/docs/concepts/policy/resource-quotas/#limit-priority-class-consumption-by-default)
|
* Read about using ResourceQuotas in connection with PriorityClasses: [limit Priority Class consumption by default](/docs/concepts/policy/resource-quotas/#limit-priority-class-consumption-by-default)
|
||||||
|
|||||||
Reference in New Issue
Block a user