> ## Documentation Index
> Fetch the complete documentation index at: https://docs.infercrane.com/llms.txt
> Use this file to discover all available pages before exploring further.

# InferCrane on top of AIBrix

> Keep AIBrix for routing and autoscaling, and use InferCrane to observe its engine pods, record the traffic shape, and check a routing, scaling, or engine change before it ships. No adapter exists; each step says whether it was tested.

# InferCrane on top of AIBrix

[AIBrix](https://github.com/vllm-project/aibrix) runs vLLM and SGLang on Kubernetes: its gateway
picks a pod for each request, and its controllers scale replicas, load adapters, and manage the KV
cache. InferCrane doesn't replace any of that. On top of it, InferCrane can show whether a change to
the stack holds before it reaches all your traffic:

* a new routing strategy;
* a new autoscaling policy;
* a new engine release in the pods AIBrix runs.

> [!WARNING]
>
> There is no AIBrix adapter. InferCrane does not install, configure, or write any AIBrix resource,
> and it cannot stand up an AIBrix variant for you. The steps below use InferCrane features that work
> on plain vLLM and SGLang servers; none has been run against an AIBrix install, so each is marked
> **untested** here. `infercrane integrations --output json` lists `aibrix` as a registered boundary
> whose real-cluster qualification is deferred.

## Who owns what

| Concern | Owner |
| - | - |
| Gateway, routing strategy, autoscaling, KV cache, model and adapter lifecycle | AIBrix |
| Engine pods and their placement | AIBrix and Kubernetes |
| Observation, the recorded traffic shape, answer checks, the verdict and its evidence | InferCrane |
| Which version of the stack gets your traffic | You, through AIBrix |

## The change you want to check

Stand up the change beside your current stack: a second AIBrix model deployment with the new
routing strategy, scaling policy, or engine image, on its own GPUs. InferCrane then compares the
two. Keep everything else equal: model and revision, GPU type and count, and the load you measure
at.

## 1. Observe the engine pods (untested with AIBrix)

Install the [agent](https://docs.infercrane.com/architecture/agent.md) in the cluster
([Install on your GPU cluster](https://docs.infercrane.com/integrations/kubernetes-install.md#agent-only)) and name the engine
servers it should watch, one per Service:

```bash Observe an engine behind AIBrix theme={"theme":"css-variables"}
helm install agent deploy/helm/infercrane-agent -n models \
  --set controlPlane.url=https://YOUR-CONTROL-PLANE \
  --set 'agent.servers[0]=http://ENGINE-SERVICE.NAMESPACE.svc:8000' \
  --set agent.endpointName=current-stack --set agent.model=YOUR/MODEL
```

* Name a Service with one engine pod behind it. The control plane accepts an engine's metrics only
  when the current scrape and its baseline come from one engine process; a Service that balances
  across several pods mixes them.
* The agent registers each server observe-only and reads its version, models, health, and engine
  metrics. It never sends traffic to the server unless you make it serve the endpoint.
* Pointing the agent at the AIBrix gateway instead gives health and models at most: the gateway's
  own metrics are not engine metrics. Whether the gateway passes the agent's health probe is
  untested.

## 2. Record the traffic shape (untested with AIBrix)

Import the gateway's request log as content-free observations: start time, latency, token counts,
and status, never prompt or answer text. Then capture the trace:

```bash Import request shapes and capture the trace theme={"theme":"css-variables"}
curl -fsS -X POST "$INFERCRANE_URL/api/v1/endpoints/current-stack/traffic-observations" \
  -H "Authorization: Bearer $INFERCRANE_API_KEY" -H 'Content-Type: application/json' \
  -d @observations.json
infercrane migrate capture current-stack --window 24h
```

The format is in [telemetry](https://docs.infercrane.com/features/telemetry.md#import-existing-production-telemetry). Whether your
AIBrix gateway's log carries token counts depends on how its access log is configured; check before
you rely on it.

## 3. Check the answers (untested through the AIBrix gateway)

A routing or scaling change should not change answers. An engine upgrade can. Read how far the new
stack's next-token distribution moved from the current one's on the same prompts:

```bash Compare answers between the two stacks theme={"theme":"css-variables"}
infercrane evaluation divergence --reference http://CURRENT-GATEWAY/ --candidate http://NEW-GATEWAY/ \
  --model YOUR/MODEL --eval-set eval-set.json --output json
```

This works between any two OpenAI-compatible servers that return prompt log probabilities, which vLLM
and SGLang do. Whether the AIBrix gateway passes `prompt_logprobs` through is untested; if it does
not, point both sides at one engine Service each. See
[divergence of a precision change](https://docs.infercrane.com/features/semantic-quality.md#divergence-of-a-precision-change).

## 4. Read a verdict per load (untested with AIBrix)

Measure both stacks with [AIPerf](https://docs.infercrane.com/integrations/aiperf.md) at each load you care about, the current
stack before and after the new one, and write the output tokens per second into a content-free
screen summary. Write its two rules first: how far the current stack's two runs may differ, and the
smallest gain that counts. Then:

```bash Read the verdict theme={"theme":"css-variables"}
infercrane optimize band-verdict --file screen.json
```

The verdict says, per load band, whether the new stack wins, loses, or can't be told from the
current one. It reads the numbers you give it; it doesn't measure them and isn't signed, so it is a
screen, not a proof. See [a verdict per load band](https://docs.infercrane.com/features/optimization.md#a-verdict-per-load-band).

## 5. Roll out

Moving traffic is AIBrix's job here. InferCrane's guarded rollout and automatic rollback apply only to
traffic InferCrane routes, so they do not cover a change AIBrix rolls out.

## What is tested and what is not

| Step | State |
| - | - |
| Observing a vLLM or SGLang server with the agent, metric relay, content-free records | Tested on plain servers, including on Amazon EKS ([record](https://docs.infercrane.com/testing/aws-real-evidence.md#eks-customer-install-on-one-a10g-27-nov-2026)). Untested with AIBrix's pods and runtime sidecar |
| Importing request shapes and capturing a trace | Covered by InferCrane's API tests. Untested with an AIBrix gateway log |
| Divergence between two servers | Covered by InferCrane's tests against test servers. Untested through the AIBrix gateway |
| Band verdict from a screen summary | Covered by InferCrane's tests. Untested on AIBrix variants |
| An InferCrane run that starts the AIBrix variant, measures it, and rolls it out | Not built. Runs on an agent's endpoint start plain servers only |

## Next

* If you want InferCrane to run the whole check for you, use a plain vLLM or SGLang server as the
  measured setup: see [optimization runs on an agent's endpoint](https://docs.infercrane.com/architecture/agent.md#optimization-runs-on-an-agent%E2%80%99s-endpoint).
* For a serving graph InferCrane can deploy, see [NVIDIA Dynamo](https://docs.infercrane.com/integrations/dynamo.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.