Assign pod priority
- Last Updated: April 14, 2026
- 1 minute read
- MarkLogic Server
- Documentation
Pod priority can be used to indicate the significance of a pod compared to other pods. Assigning priority to pods is important to ensure that high-priority pods are not preempted and can use required resources. For example, if a pod cannot be scheduled, the scheduler will attempt to free up resources by evicting lower-priority pods. When enough resources are available, the higher-priority pods can be scheduled.
Important:
To ensure the availability of the database, it is highly recommended that a PriorityClass object with the highest possible value is set for MarkLogic pods. For more details on pod priority and PriorityClass, see Pod Priority and Preemption.
To assign priority for pods:
-
Add a
PriorityClass. This example shows aPriorityClasswith a value of 1 million:apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: name: high-priority value: 1000000 globalDefault: false description: "This high priority class should be used for MarkLogic pods only." -
For Helm Charts, set
priorityClassNameto one of the added PriorityClassNames through thevalues.yamlfile or by using--setflag while installing the chart. -
For Operator, set
priorityClassNameto one of the added PriorityClassNames through thesample.yamlfile.