29/34
Part 5 of 5 · Spot, failures and metricsLearn and do

What Netflix has published about its own stack

In a Netflix round, use what Netflix has written, and stop there. It hasn't published a full design of how it schedules GPU training, so don't invent one.

  • Titus is the container platform, at heart a Kubernetes-based container hosting platform. It launches millions of containers every week across tens of thousands of EC2 instances in several AWS regions. A federation layer decides where a job runs, which cell and which capacity, before the job is scheduled onto a node.
  • Netflix Batch runs on Kueue inside Titus. Its tenant tree maps onto Kueue's model: internal tenants become cohorts, and each leaf tenant becomes a ClusterQueue plus a LocalQueue. Netflix reports that Kueue is fully rolled out in production, managing millions of batch workloads, and that average resource utilization rose significantly.
  • GPU training runs on what Netflix calls its modern Kubernetes-native compute platform, with the health checks, failure classes and checkpoints from its GPU post. Its reliability loop is the same whether a job runs through the batch scheduler, Kueue or Ray.
  • Maestro and Metaflow sit above the scheduler. Metaflow flows can be deployed to production orchestrators like Maestro or Argo, and scaled up on compute platforms such as AWS Batch, Titus and Kubernetes.

In the editor, write to_kueue(tree), Netflix Batch's mapping as code. TREE is a made-up tenant tree: batch holds three tenants, and one of them, studio, holds two of its own.