Catalogue / openai-2021-kubernetes-7500-nodes

OpenAI grows a single Kubernetes cluster to 7,500 nodes for machine learning research, where one pod often occupies a whole node

OpenAI, 2021. Kubernetes clusters for machine learning research.

Organisation
OpenAI
Evidence
Reported from production
Source
Scaling Kubernetes to 7,500 nodes

OpenAI, published 2021-01-25

Records

Decision#d1

Replace Flannel with native, alias-based pod addressing and no encapsulation

Decision#d2

Cut Endpoints WATCH load with EndpointSlices, and avoid API requests that grow with cluster size

Failure#f1

Occasional trouble when autoscaling added too many nodes at once

Failure#f2

Prometheus kept running out of memory and then took hours to replay its write-ahead log

Decision#d3

Cordon, drain and replace unhealthy nodes automatically, and test GPUs before a node takes work

Decision#d4

Enforce per-team capacity with node taints and tolerations added at admission

Decision#d5

Fill idle nodes with low-priority balloon pods so the autoscaler does not scale them down

Decision#d6

Schedule all members of an optimizer StatefulSet together with the Coscheduling scheduler plugin

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.