﻿# OpenShift vLLM autoscaling: KEDA, Knative and metric definitions

Read Red Hat’s full autoscaling comparison with its multiple triggers, vLLM timing implementation, cache-metric naming discrepancy and incomplete-request policy.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/openshift-vllm-keda-knative-autoscaling-metric-evidence/
Language: en

## Recover the actual comparison

Red Hat's [OpenShift AI autoscaling report](https://developers.redhat.com/articles/2025/11/26/autoscaling-vllm-openshift-ai-model-serving) compares concurrency-based Knative scaling with a KEDA-backed KServe deployment. The workload uses Llama-3.1-8B and vLLM v0.6.6 on seven L4 GPUs. These are results from a particular serving configuration, not a general proof that one controller always wins.

The original report is available despite intermittent page-loading failures. Its complete setup matters: the KEDA configuration includes latency, waiting-request and KV-cache signals. The study therefore compares configured systems. It does not isolate the causal contribution of a latency-only trigger.

## Separate the objective from the configured threshold

The stated objective is system-wide median token latency no greater than 75 ms. The latency trigger uses a lower threshold of 70 ms. An internal trigger and an acceptance objective serve different roles; crossing the trigger is not itself proof that the external objective has failed or been restored.

The report observes that a high Knative concurrency target does not trigger scaling in this workload, while a more sensitive target does. This is evidence about the tested settings. It does not establish that concurrency-based control is inherently unable to scale other workloads or that a latency target removes the need for tuning.

## Inspect the metric behind the ITL label

The published Prometheus expression estimates a median from the time_per_output_token_seconds histogram over a five-minute rate window. In the matching [vLLM metric definitions](https://raw.githubusercontent.com/vllm-project/vllm/v0.6.6/vllm/engine/metrics.py), this is the output-token timing histogram. The [engine code](https://raw.githubusercontent.com/vllm-project/vllm/v0.6.6/vllm/engine/llm_engine.py) supplies decode observations from get_last_latency; the [sequence implementation](https://raw.githubusercontent.com/vllm-project/vllm/v0.6.6/vllm/sequence.py) computes elapsed time since the previously recorded token time and updates that timestamp.

This supports a server-side token-timing interpretation for the inspected version. It is not a direct trace of every gap received by the client, nor a per-request guarantee. A median over pooled histogram observations can hide slow requests and long pauses. Describe the aggregation and observation point alongside the report's ITL terminology.

There is also a reproducibility discrepancy: the example queries gpu_cache_utilization_percent, while the inspected upstream version exposes gpu_cache_usage_perc, documented with unity meaning full use. An unshown recording rule or deployment customization could explain this, but the report does not establish it. Do not silently assume the published query matches an unchanged upstream endpoint.

## Keep workload and failure accounting visible

The homogeneous and heterogeneous profiles differ in output-length assumptions as well as variability. Their contrast therefore does not isolate variance alone. Preserve each profile when comparing replica histories or request outcomes.

The report excludes incomplete requests because the benchmark stops outstanding work at its end. That policy should remain explicit. It does not prove those requests would all have succeeded. Report completed, failed and unfinished work separately before calculating a success fraction, following the [goodput accounting guide](/journal/llm-goodput-vs-tokens-per-second/).

## What the result can inform

[KEDA documentation](https://keda.sh/docs/2.18/concepts/scaling-deployments/) explains that it feeds metrics to HPA; controller behavior and application readiness still form distinct parts of the scaling path. The [HPA stabilization guide](/journal/guide-ks-hpa-stabilization/) helps interpret replica changes without confusing recommendation history with model loading.

The study supports examining server-level signals and testing multiple workload shapes. Reuse requires resolving metric names, checking the exact query and retaining all triggers, timing windows and cache conditions. Its reported comparison is useful evidence once those conditions remain attached; it is not a deployment-independent latency guarantee.
