Autoscaling Flink at Netflix
summary
Autoscaling routers that consume a single Kafka topic are implemented as a separate Mantis job that polls Atlas every minute, uses statistical short-term prediction (linear or quadratic regression) with 3σ spike detection, and maps a computed target throughput to capacity via a performance table. Rescale pauses and a two-minute metric delay force conservative policies and cooldowns. Deployment reduces fleet CPU usage 25–45% and cuts on‑call pages; future work targets eager scale‑ups, downscale optimization, and multi-source topologies.
AI-written summary · about
chapters (38)
- 0:00Intro
- 0:13Problem Definition
- 0:25Our Pain
- 1:36Definitions
- 2:51Solution Space
- 4:08Limitations
- 5:21Assumptions
- 6:27Desirable Characteristics
- 7:18Approaches
- 8:31Autoscaling - High Level Steps
- 9:52Metrics Collection
- 10:25Pre-Decision Policy
- 10:52Decide - Scale Up
- 12:12Decide - Scale Down
- 13:51Predict Workload
- 17:17Spike Detection - First Outlier
- 17:34Spike Detection - Outliers
- 18:00Spike Detection - Baseline Reset
- 18:35Compute Target Processing Rate
- 21:56Cluster Size Lookup - The Performance Table
- 23:20Cluster Size Lookup - Corner Case
- 24:02Cluster Size Lookup - Complexities
- 25:00Calculate Size Scale Up vs Scale Down
- 25:27Post-Decision Policy
- 26:31Running In Production
- 28:42Autoscaling Architecture
- 29:46Sine Wave
- 30:10Linear Spikey
- 30:29Production Router
- 30:47Fleet Resource Usage
- 31:28Additional Considerations
- 32:38Partition Balancing
- 34:51Outlier Containers
- 35:44Future Work
- 35:54Eager Scale Up
- 36:35Downscale Optimization
- 37:12Complex DAGS
- 37:40Acknowledgements
related talks
20mAutoscaling Apache Flink Applications
43mDynamic Scaling - How Apache Flink adapts to changing workloads
37mSpark and Flink Running Scalable in Kubernetes #bbuzz
30mDemystifying Deployments: Applications or Clusters, Active and Reactive Scaling - What is it about?
32mFlink architecture and automation in Intesa Sanpaolo
37mBuilding and operating large-scale streaming applications at King
37mStateful Stream Processing with Apache Flink 1.5 and beyond
19mKeynote: Making and Keeping Netflix Highly Available
