:_mod-docs-content-type: ASSEMBLY
:context: nodes-pods-priority
[id="nodes-pods-priority"]
= Including pod priority in pod scheduling decisions
include::_attributes/common-attributes.adoc[]

toc::[]

[role="_abstract"]
Pod priority ranks pods by importance to influence scheduling order, sort out-of-resource evictions, and enable preemption, where higher-priority pods can evict lower-priority pods when resources are constrained.

ifndef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
To use priority and preemption, you create priority classes that define the relative weight of your pods. Then, reference a priority class in the pod specification to apply that weight for scheduling.
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
To use priority and preemption, reference a priority class in the pod specification to apply that weight for scheduling.
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]

// The following include statements pull in the module files that comprise
// the assembly. Include any combination of concept, procedure, or reference
// modules required to cover the user story. You can also include other
// assemblies.

include::modules/nodes-pods-priority-about.adoc[leveloffset=+1]

include::modules/nodes-pods-priority-preempt-about.adoc[leveloffset=+1]

include::modules/nodes-pods-priority-configuring.adoc[leveloffset=+1]


