How we run 100 Airflow environments and millions of tasks as a part time job using Kubernete
summary
BAM runs more than 100 Airflow environments across ~50 Kubernetes clusters and manages peaks like 26,000 concurrent CPUs (bursts near 100,000) and ~50 TB RAM by treating every Airflow task as a pod with the Kubernetes PodOperator, cluster autoscaler, Helm charts for per-team installs, and shared storage (S3, NFS, Lustre). The platform supports GPU queues (aims at ~9,000 GPUs), splits 40% managed vs 60% self‑run, and faces upgrade and task‑reliability limits, prompting a move toward batch scheduling.
AI-written summary · about
chapters (14)
- 0:00Company and speaker intro
- 1:56Airflow as a scheduling tool
- 3:48Design principles and goals
- 4:36Kubernetes infrastructure basics
- 5:54Managing docker images
- 8:12Kubernetes Pod operator
- 10:37Scheduling and Tetris analogy
- 12:20Dynamic autoscaling
- 14:13Multi-cluster management
- 15:30Storage integration
- 17:08Deploying airflow environments
- 18:07Environment automation
- 19:25Troubleshooting at scale
- 20:40Challenges and future plans
