---
title: "Tech Tip #5: Forecast load before you scale"
description: "A simple maths model beat neural networks at predicting server load."
url: https://greencode.ai/tech-tips/5-forecast-before-you-scale/
---

# Tech Tip #5: Forecast load before you scale

**A simple maths model beat neural networks at predicting server load.**

[Watch the video](https://media.greencode.ai/shorts/forecast-before-you-scale-be3824616f58.mp4)

Video created by [explainapaper.com](https://explainapaper.com/?utm_source=greencode.ai&utm_medium=film&utm_campaign=made-by)

### The problem

Reactive autoscaling adds capacity after latency has already risen, so teams keep big safety margins running all day. Proactive scaling can size ahead of demand, and it doesn't need a heavy model.

### The fix you can use today

- Forecast CPU from request volume with a lightweight model.
- Try exponential smoothing before anything neural.
- Scale ahead of predicted peaks and shrink the standing safety margin.

GreenCode researchers found that a simple maths model predicted load better than neural networks.

### Tools that help

- [KEDA](https://keda.sh/?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): event-driven autoscaling for Kubernetes, including scaling a workload to zero when there is nothing to do
- [Kepler](https://github.com/sustainable-computing-io/kepler?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): exports energy estimates per pod and container on Kubernetes, using eBPF and hardware counters

### How GreenCode helps

GreenCode helps tackle this by mapping your running systems and tracing their energy and CO2e to the services that cause it. It shows services running hot, and services barely running at all. [More on this](https://greencode.ai/feature/infrastructure-carbon-footprint-assessment/).

### Tags

#kubernetes#autoscaling#cloud

### Sources

- [Comparing neural and statistical time-series models for proactive auto-scaling in Kubernetes (SOSE 2025)](https://greencode.ai/publications/comparing-neural-and-statistical-time-series-models-for-proactive-auto-scaling-i/)

[All GreenCode Tech Tips](https://greencode.ai/tech-tips/)

#### Key Facts

- Tip **#5**
- For **Ops and infrastructure**
- Category **Containers, Kubernetes and serverless**
- Format **short video**
![GreenCode](https://greencode.ai/wp-content/uploads/2024/12/greencode-logo-website-small-colours-2.webp)

Want this checked on your own system? Talk to the GreenCode team.

[Get in touch](https://greencode.ai/contact/)
