← All courses ← Course home

Lesson 11 of 12 · Phase 6 Systems

Cluster orchestration

GPUs fail. Jobs get preempted. Storage is slower than you hoped. Write the scheduling and failure story before you scale.

Agent brief (llms.md)

A cluster is a scheduler, a network, a shared filesystem, and a way to fail. Orchestration is not a product name. It is the loop: submit, place, run, checkpoint, reclaim, retry.

Topics


# Sketch only: one job, one log dir, one resume flag.
torchrun --nproc_per_node=8 train.py \
  --ckpt-dir /checkpoints/tiny-lm \
  --resume latest \
  --max-steps 2000

Write a runbook with four pages at most: how to submit, where logs live, how to resume, and what you do when one rank dies. Include a "do not SSH and compile CUDA in place" rule if that is how your last incident started.

Assignment

Opinion checkpoint

Write this down. Cluster skill is boring on purpose. The operator who can resume after a dead rank beats the operator who can name ten schedulers.

Next: Semiconductor supply chain and capstone.

Key concepts

  • Orchestration is submit, place, run, checkpoint, reclaim, retry.
  • Multi-GPU jobs need a fabric and a gang, not just more cards.
  • Storage and quotas kill runs as often as kernels do.
  • A runbook is part of the replica.

Takeaways

  • Write the four-page runbook.
  • Name signals for dead ranks and full disks.
  • Checkpoint cadence is a storage decision, not a superstition.