Priority-based scheduling
Priority-based scheduling is a policy that selects or orders eligible work for execution according to assigned relative priorities.
Distributed Machine Learning Patterns
Priority scheduling is a scheduling algorithm that orders work according to assigned priority levels and may preempt lower-priority work.
- How it is used
- Prioritizes shared-cluster jobs so urgent machine-learning work can proceed despite limited compute capacity.
- How deep it goes
- Defines priority ordering and preemption through queue and running-job scenarios, then addresses governance risks without configuration details.
- Examples
- Illustrates four jobs ranked high, medium, and low, plus preemption of running low-priority job B by high-priority job A.
- What you can do after
- Evaluate/understand when priority ordering and preemption unblock urgent work, and when priority limits are needed to protect other jobs.
Read how Distributed Machine Learning Patterns explains priority-based scheduling →
Kubernetes for Developers
Priority is an integer value assigned to a Pod that influences its scheduling order and eviction ranking.
- How it is used
- Ranks Pods for scheduling and eviction when cluster resources are constrained.
- How deep it goes
- Defines integer priorities and ranking behavior, then demonstrates PriorityClass and Deployment configuration.
- Examples
- Uses high-priority YAML, a three-replica timeserver Deployment, and alternative preempting and non-preempting policies.
- What you can do after
- Configure Pod priority with PriorityClass and priorityClassName, including whether lower-priority Pods may be preempted.
Read how Kubernetes for Developers explains priority-based scheduling →
Also covered in
- Robotics for ProgrammersIn early access (MEAP)
Related concepts
- fair-share schedulingcontrasts with · Fair-share scheduling is an operating-system scheduling algorithm that distributes CPU usage among users or groups rather than equally among individual processes.
- schedulingkind of · Scheduling is the assignment and ordering of tasks or activities over time and available resources, subject to constraints.
- preemptionuses · Preemption is the interruption or displacement of active execution or resource allocation so another eligible activity can proceed.
- scheduleruses · A scheduler is a software component that selects, orders, or dispatches tasks for execution and may assign them execution resources according to defined policies or constraints.
- starvationaddresses · Starvation is a condition in which a task is persistently denied the resources or execution opportunities it needs to make progress.
- deadlockaddresses · A deadlock is a state in concurrent computing where two or more activities cannot progress because each waits for a resource or action held up by another.
Questions about priority-based scheduling
What is priority-based scheduling?
Priority-based scheduling is a policy that selects or orders eligible work for execution according to assigned relative priorities.
Which Manning books explain priority-based scheduling?
Distributed Machine Learning Patterns and Kubernetes for Developers.
What is the difference between priority-based scheduling and fair-share scheduling?
Priority-based scheduling is a policy that selects or orders eligible work for execution according to assigned relative priorities. Fair-share scheduling is an operating-system scheduling algorithm that distributes CPU usage among users or groups rather than equally among individual processes.
What is priority-based scheduling a kind of?
Priority-based scheduling is a kind of scheduling. Scheduling is the assignment and ordering of tasks or activities over time and available resources, subject to constraints.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

