Repository navigation
Description
Problem
The devops-review pool routes with least-busy and caps each deployment with max_parallel_requests (vllm 8, vllm-single 2, 1 per Ollama node). In LiteLLM v1.102.1, the router picks a deployment first and only then waits on that deployment's max_parallel_requests semaphore. Least-busy counts a request only once it holds the semaphore, so requests queued behind a full deployment are invisible to it:
- A capped deployment never looks busier than its cap. The dual-GPU vLLM server gets a request only while it has fewer in flight than the smallest cap, so it effectively runs about 2 requests at a time instead of 8.
- Once everything is saturated, overflow goes to the lowest count, which is a 1-request Ollama node, and queues there.
The caps protect nothing: vLLM and Ollama each queue the excess themselves.
Measured with 24 concurrent review-style requests (about 1.8K prompt tokens, 200 output tokens):
| Routing | Wall time (runs) | Peak running on dual-GPU vLLM |
|---|---|---|
| least-busy + caps (current) | 47 s, 101 s, 104 s | 2–8 |
| least-busy, no caps | 18.7–27.5 s (5 runs) | 6–10 |
| simple-shuffle, weights 5/3/1/1, no caps | 13.1 s, 13.6 s | 8–11 |
Least-busy without caps still clusters bursts: a review sends about 6 persona calls at once, and they are routed before any in-flight count updates, so they land on the first-listed deployment. Weighted shuffle spreads bursts by expected throughput.
Throughput under weighted shuffle levels off near 2 requests/s from 12 to 48 concurrent requests. A review already keeps about 24 requests in flight (4 file workers × about 6 personas), so review file workers do not need sizing from gateway capacity. The roadmap's remaining item for #458 should say so.
Proposal
routing_strategy: simple-shuffle, with aweighton eachdevops-reviewdeployment in proportion to its throughput: dual-GPU vLLM 5, single-GPU vLLM 3, each Ollama node 1.- Remove
max_parallel_requestsfrom the pool. - Tests pin the weights and the absence of caps. The roadmap records the measurements.
Acceptance criteria
- A full review through
devops-reviewis faster than with the current config, and every server takes part. - Other groups are unaffected: single-deployment groups have nothing to choose between, and the Ollama groups split evenly.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(k8s): weight devops-review routing by backend throughput instead …
dan-petty commentedon Sep 24, 2026
Closed by #468, merged into
release/v0.2.23.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.23 (#681)
feat(ai): the LLM stack dashboard shows latency per output token, and…