Scale on the queue, not the CPU

Lesson 15 of 28 · Serving and scaling · 2 min Get the course to watch

The default autoscaler watches CPU. For a model server that is nearly meaningless, because the heavy work happens on the GPU, and the CPU sits mostly idle while users queue. Your replicas never grow, and the wait times do.

So you need a signal that says people are waiting. The model server already publishes one, and it is free to scrape, so there is no reason to guess from the CPU.

The rest of this lesson

  • Why utilisation misleads
  • The signal
  • Keda
  • What goes wrong

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Run AI in production on Kubernetes.