Repository navigation
feat(review): record each backend's busy time and concurrency in review profiles - #566
Merged
Merged
Conversation
…ew profiles Profiles counted calls per backend, not how long each backend was busy or how many calls it had in flight, so a benchmark could not show whether a routing change spread the load across the LLM pool. The profiler places each served call on its backend's timeline from the call's duration, and each stage records per backend the calls, busy seconds (their union), call seconds and peak concurrency. Benchmark summaries keep each backend's median busy share and peak, and the benchmark table shows them. Direct model requests now report their duration. The pool's busy share over a window moves to #546, whose metrics it reads. Closes #557
dan-petty
enabled auto-merge (squash)
September 25, 2026 02:11
…ackend-activity # Conflicts: # docs/ROADMAP.md
This was referenced Sep 25, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Profiles counted calls per backend, not how long each backend was busy or how many calls it had in flight at once. So #545's imbalance had to be measured with a script sampling
nvidia-smi, and a benchmark could not show whether a routing change spread the load.ai/review/profile.py). Each served call is placed on its backend's timeline: it ends when the observer sees it and started its duration earlier. Per stage and backend, the profile records:busy_seconds, the union of the calls, so overlapping calls count once;call_seconds;peak_concurrency;mean_concurrency.devops review benchmarktable gains a column, e.g.vllm 60% ×4, ollama-0 10% ×1. Saved summaries carry the fields, so Evaluation history, comparison and regression checks #555's comparisons can read them.Tests
tests/test_review_backend_activity.pycovers:uv run devops ci --force: 13/13 gates pass.Closes #557