Back to engineering

4ROUTER / Serverless

Scaling with the workload

Matching serving capacity to the shape of demand.

Engineering note

Choose a useful signal

GPU utilization describes device activity, not the caller’s wait. Queue length, delay, active requests and generation pace offer different views. A scaling policy should state which signals it uses and why they represent the workload.

Scaling has a lead time

Collection, policy execution, placement and model loading all take time. Scaling after a traffic spike may not relieve the queue already formed. Capacity planning combines warm resources, queue limits and explicit overload responses.

Drain before scaling down

Stop assigning new work before removing a replica and define how active requests finish. Long generations affect shutdown time. Repeated scaling can waste loading work and destabilize service, so policies need stabilization and explicit minimum capacity.

Before implementation

  • Workload signals
  • Startup lead time and headroom
  • Draining and stabilization

Further reading

Kubernetes · Horizontal autoscaling

4ROUTER / SYSTEMS RESEARCH

Mechanisms and experiment design

Understand how operators, KV state and scheduling shape an inference path.

Read the systems notes in Resources
GEMM / KERNELS

From operators to serving: cuBLAS & cuDNN

Identify the limiting resource before selecting the implementation.

STATE / CAPACITY

KV cache: from tensor shapes to capacity budgets

Context length is a state budget that grows with concurrency.

TIERS / TRANSFER

LMCache: placing KV state in a storage hierarchy

Avoiding prefill requires paying for state access.

Let’s talk infrastructure.

Connect to the platform, or discuss models, performance and deployment.