Skip to content

fix(k8s): devops-review routing throttles the largest server to the smallest server's request limit #467

Closed

Description

@dan-petty

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 a weight on each devops-review deployment in proportion to its throughput: dual-GPU vLLM 5, single-GPU vLLM 3, each Ollama node 1.
  • Remove max_parallel_requests from the pool.
  • Tests pin the weights and the absence of caps. The roadmap records the measurements.

Acceptance criteria

  • A full review through devops-review is 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.

Activity

  1. added this to the v0.2.23 milestone on Sep 23, 2026
  2. added
    type/bug
    scope/ai
    scope/k8s
    priority/p2-medium
    on Sep 23, 2026
  3. added a commit that references this issue on Sep 23, 2026
    54a410d
  4. dan-petty commented on Sep 24, 2026

    @dan-petty
    OwnerAuthor

    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.

  5. added a commit that references this issue on Sep 28, 2026
    ea49d6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/aiscope/k8stype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions