Skip to content

fix(k8s): the gateway spreads embedding batches over both order 1 tiers, not only the first #2027

Closed

Description

@dan-petty

Problem

After the gateway restart for #1987 on 2026-10-23 at 23:47 UTC, all 91 embedding requests went to ollama-48gib. ollama-64gib-standard holds qwen3-embedding:0.6b and got none. The gateway's qwen3-embedding:0.6b group has two order 1 deployments and uses routing_strategy: least-busy. With sequential batches, every deployment has zero requests in flight, so the router picks the same deployment each time. With parallel batches, the batches wait in the one slot of that tier.

The #2011 work found this in the gateway and Ollama logs.

Proposed fix

  • Confirm in LiteLLM 1.103.0's router source how least-busy breaks a tie between deployments with zero requests in flight.
  • If it always picks the first, choose a strategy that spreads ties, for example simple-shuffle for the embedding group alone if LiteLLM supports a per-group strategy, or set rpm or weight on the order 1 deployments.

Acceptance criteria

  • A run of devops ai rag index sends embedding requests to both order 1 tiers, as kubectl -n llm logs of each tier shows.

Activity

  1. added
    type/bug
    scope/k8s
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

  3. added a commit that references this issue on Oct 27, 2026
    b0f58ac
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

    scope/k8stype/bug

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions