Capacity Forecasting
ML approaches to predicting resource needs before they become incidents — Prophet for seasonal decomposition, ARIMA/SARIMA for stationary series, STL residual forecasting. Covers Netflix Scryer, Uber Argos scale patterns, confidence intervals for pre-scaling decisions, and connecting forecasts to cloud cost optimization.
Overview
From reactive to predictive
Static capacity alerts fire when a resource is already constrained; forecasting says when it will be, with lead time to act. 'Your disk will fill in 18 hours' versus 'your disk is now full' is the difference between a planned maintenance window and a 3am P1.
A forecasting system runs as a loop.
- It reads the metric history and fits a forecast model with confidence bands.
- It asks whether the upper band will breach capacity inside the lead time of a scaling mechanism. If it will, automated scaling acts.
- If the breach sits in a wider window, it becomes scheduled capacity work.
- Either way, the forecast's MAPE (Mean Absolute Percentage Error) is measured weekly per service, and the model is retuned when it drifts.
Interview questions
- How would you build a capacity forecasting system for a 200-service microservices platform?
- Explain how Prophet handles seasonality and when the model fails in practice.
- How does capacity forecasting connect to auto-scaling and pre-scaling decisions?
- What is the Uber Argos approach to capacity forecasting and what makes it different from a single-service Prophet model?
- How do you integrate capacity forecasting with FinOps to reduce cloud costs without sacrificing reliability?
Sign up free to read the full topic
More AIOps topics
Start free on Cariara · Coding problems · System design studio