Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/featureType feature: a new function
Milestone
Description
During a live review, GPU utilisation was sampled on each devops-review backend every 5 s:
- the 32B vLLM (two GPUs) was busy in 12 of 13 samples;
- the 14B vLLM in none;
- the two Ollama nodes in 0 and 1.
At the end of a stage, all four in-flight calls sat on the 32B server. Roughly half the pool idles while a review waits.
Three causes combine:
- Load-blind routing.
simple-shufflepicks by weight (5:3:1:1), not by what each backend is running, so a burst can land on one server while the others idle. - Small context window. Pre-call checks drop the 14B vLLM from any prompt over its 12,288-token input limit. Numbered review pages (fix(review): review pages carry no line numbers, so reported line ranges are guesses #499) and whole-file verification prompts reach that limit, and the remaining weights send about 71% to the 32B server.
- Few calls in flight. A review runs 4 files at once, a file's pages one after another, and a single call at each stage's tail.
Deliverables
- Route by load. Evaluate LiteLLM's load-aware strategies against the burst problem noted in the gateway config (
least-busycounts a call only once its backend call starts), or dispatch from the client, which knows its own in-flight calls. - Keep review prompts within the smallest backend's window, or give that backend only the prompts that fit, without re-weighting the rest onto one server.
- Keep the pool busy: review a file's pages in parallel, and size review concurrency from the pool's parallel capacity.
- Measure each backend's busy share and review wall time before and after, with the metrics from the LLM-serving metrics issue. Related: feat(ai): llm gateway weights validated against real reviews #476 weights, feat(ai): llm gateway tuning cost from real traffic and no-load capacity estimates #477 and feat(ai): llm gateway tuning render and apply configuration with rollback #478 tuning, feat(review): review page size against quality and speed #480 page size.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
docs(roadmap): plan LLM load balance and cluster observability integr…
feat(k8s): fix devops-review weights and context window in llm gateway (
dan-petty commentedon Sep 28, 2026
Closed by #644, 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.