Pinterest’s Migration Journey
summary
Pinterest migrates 3000+ workflows and 45,000+ tasks into an Airflow-based system by building a migration layer that translates legacy DSLs at schedule time, a token-fetcher service, and a Pinboard-on-Kubernetes operator so most workflows require no user code changes. The setup uses a custom Kubernetes executor, serialized/dynamic DAG support to snapshot layouts, CI/CD with ~8 min native and ~1 hr migration integration runs, and succeeds after tuning pod warm-up, resource sizing and reparenting for long jobs.
AI-written summary · about
chapters (20)
- 0:00Intro
- 1:32Pain Points
- 2:53Available Approaches
- 4:33Migration Layer
- 5:37PinterestDagBag
- 8:07PinboardOnK8sOperator
- 10:03DynamicDag
- 12:10Migration Tooling
- 19:32Kubernetes Integration - Pod Gen
- 22:01Pod Customization & Smart Tooling
- 25:22Kubernetes Security
- 26:39CI/CD Pipeline Overview
- 29:29Workflow Validation Checks
- 30:36Dag File Syncing
- 31:21Scheduler Dag Partitioning (Tier Based)
- 32:07Spinner Cluster Specs
- 33:23System Level SLO
- 34:31Process Health Checks
- 38:56Takeaways
- 41:20Airflow * Summit 2021
