Skip to content

Commit ded791b

Browse files
authored
Merge pull request #40108 from xenolinux/356
BZ2030356: Add priorityclass
2 parents 9119522 + 4cdecde commit ded791b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modules/nodes-pods-priority-about.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ When you use the Pod Priority and Preemption feature, the scheduler orders pendi
1212

1313
You can assign pods a priority class, which is a non-namespaced object that defines a mapping from a name to the integer value of the priority. The higher the value, the higher the priority.
1414

15-
A priority class object can take any 32-bit integer value smaller than or equal to 1000000000 (one billion). Reserve numbers larger than one billion for critical pods that should not be preempted or evicted. By default, {product-title} has two reserved priority classes for critical system pods to have guaranteed scheduling.
15+
A priority class object can take any 32-bit integer value smaller than or equal to 1000000000 (one billion). Reserve numbers larger than or equal to one billion for critical pods that must not be preempted or evicted. By default, {product-title} has two reserved priority classes for critical system pods to have guaranteed scheduling.
1616

1717
[source,terminal]
1818
----
@@ -23,9 +23,10 @@ $ oc get priorityclasses
2323
[source,terminal]
2424
----
2525
NAME VALUE GLOBAL-DEFAULT AGE
26-
cluster-logging 1000000 false 29s
27-
system-cluster-critical 2000000000 false 72m
2826
system-node-critical 2000001000 false 72m
27+
system-cluster-critical 2000000000 false 72m
28+
openshift-user-critical 1000000000 false 3d13h
29+
cluster-logging 1000000 false 29s
2930
----
3031

3132
* *system-node-critical* - This priority class has a value of 2000001000 and is used for all pods that should never be evicted from a node. Examples of pods that have this priority class are `sdn-ovs`, `sdn`, and so forth. A number of critical components include the `system-node-critical` priority class by default, for example:
@@ -44,6 +45,8 @@ A number of critical components include the `system-cluster-critical` priority c
4445
** metrics-server
4546
** descheduler
4647

48+
* *openshift-user-critical* - You can use the `priorityClassName` field with important pods that cannot bind their resource consumption and do not have predictable resource consumption behavior. Prometheus pods under the `openshift-monitoring` and `openshift-user-workload-monitoring` namespaces use the `openshift-user-critical` `priorityClassName`. Monitoring workloads use `system-critical` as their first `priorityClass`, but this causes problems when monitoring uses excessive memory and the nodes cannot evict them. As a result, monitoring drops priority to give the scheduler flexibility, moving heavy workloads around to keep critical nodes operating.
49+
4750
* *cluster-logging* - This priority is used by Fluentd to make sure Fluentd pods are scheduled to nodes over other apps.
4851

4952
[NOTE]

0 commit comments

Comments
 (0)