Skip to content
About
Main content
Resources & Cost

Scheduling & Workload Management

Which work runs now, which work waits, and who pays for the waiting?

Who this mechanism is for: a developer who writes code, runs jobs on shared machines (a batch cluster, a database, a Kubernetes cluster, a data warehouse) and has noticed that "the cluster is busy" is a different problem from "the code is slow." You do not need to know queueing theory or how cluster managers work inside. Every technical term is explained the first time it appears, and again in the glossary at the end. A few small formulas appear; each one comes with a worked example.

The story we will follow

Lena is a platform engineer at Brightlane, a logistics-analytics company. Brightlane runs one shared compute cluster of 200 machines, called Hub. Four kinds of work share it: dashboard queries that analysts run all day, nightly data pipelines, machine-learning training jobs that need many machines at once, and a few small web services. Omar leads the data-science team and is the loudest user of Hub.

Hub grows every month. During one busy quarter, Lena meets six problems, one at the start of each article below. Each problem looks like a bug in the scheduler. Each one is actually a consequence of how shared resources, waiting and missing information work. At the end of each article we go back and solve her problem with the mechanisms of that part.

This is the main idea of this whole mechanism:

A second sentence we will keep repeating:

Scheduling is the management of a under unknown job durations. It conserves work and only relocates delay, so admission (deciding what to let in), not ordering, is the real control.

How this mechanism is organized

After that: a summary, hands-on labs, interview questions and a glossary.

One request: do not skip the small numbers. Most ideas here are simple arithmetic on two or three numbers. The arithmetic is the content.

What do I do, and what does each option cost?

Can I see it myself?

Can I reason about it under questioning?

Trade-offs

The tensions this mechanism takes a position on. Each recurs across mechanisms.

Show all 9 trade-offs
Recurring principles

Ideas this mechanism meets that keep coming back, mechanism after mechanism.

Show all 12 principles