How we Tuned our Airflow to Make 1.2 Million DAG runs per day
summary
Claims a proven peak of roughly 1–2 million DAG runs in a day (50–70k runs/hour steady peak) by tuning Airflow 2.6–2.8, Azure Event Grid, PostgreSQL and PG Bouncer on Kubernetes. Key changes: increase schedulers and workers to three schedulers and 15 Celery workers, enable virtualenv caching and upgrade Postgres, add Event Grid batching, implement a single-task operator that combines metadata fetch, filtering and trigger. Also custom archiving (7‑day retention) and rate‑limit responses to avoid web front end overload.
AI-written summary · about
chapters (13)
- 0:00Introduction to Airflow scaling
- 1:25Event-driven workflow challenges
- 3:31Hardware and parameter tuning
- 7:27Airflow software optimizations
- 8:09DAG complexity reduction
- 9:53Virtual environment optimizations
- 10:37Single-task DAG implementation
- 12:03Database archiving strategy
- 13:27Event filtering improvements
- 14:10Event batching benefits
- 15:13Rate limiting for stability
- 16:18Peak performance results
- 17:45Future strategy and hardware footprint
