Skip to content

feat(k8s): GPU thresholds set embedding-only and per-GPU tiers #3501

Description

@dan-petty

Problem

Embedding calls have no errors, but they wait. In 72 h, the gateway answered 4,715 /v1/embeddings calls with 200 and none with a failure. In 48 h, ollama-48gib answered embeddings with a p95 of 37 s and a maximum of 60 s, because the tier also serves chat models. ollama-64gib had a p95 of 6 s.

ollama-48gib-slow runs one Ollama instance on two Quadro P6000 GPUs, holds a chat model of 22 GB, and is an order 2 embedding target. An idle P6000 embeds a batch of 32 chunks (12,886 tokens) in 2.1 s.

Nothing states which GPU architectures are too old for chat, or which must run one instance per GPU.

Expected

Two thresholds, both pascal by default, name a GPU architecture:

  • Embedding: a tier at or below the threshold serves only embedding models, and LiteLLM sends embeddings to it first.
  • Multi-GPU: a tier at or below the threshold runs one Ollama instance per GPU.

A tier newer than a threshold runs as it does today.

Acceptance criteria

  • k8s/llm/profiles/gpu-thresholds.yaml holds the two values. Argo CD tracks main, so config.yaml cannot set them.
  • devops ai gateway render writes the manifests and routes from the values, and a test fails when the tracked manifests differ from its output.
  • ollama-48gib-slow becomes ollama-24gib-embed-gpu0 and -gpu1, each with nvidia.com/gpu: 1, each with one LiteLLM deployment at order 1.
  • devops-background moves off the tier, to ollama-64gib-standard.
  • A threshold newer than the architectures of every tier template is refused, and a chat route on an embedding-only tier is refused.

Evidence

Measured on ollama/ollama:0.40.12, device plugin 0.16.2, on temporary pods:

  • Two pods with nvidia.com/gpu: 1 each saw one different P6000.
  • OLLAMA_NUM_PARALLEL 1, 2 and 4 gave 0.49, 0.49 and 0.47 batches/s on one GPU. num_batch up to 8192 gave no gain.
  • Two instances gave 0.99 batches/s, and one gave 0.50. The longest wait at 4 streams went from 8.0 s to 4.2 s.
  • Cosine of a vector from a P6000 to a vector from a Tesla V100 was 0.99945, and to an RTX 3090 was 0.99951.

Existing tool considered

Helm can compare the values in a template, and Argo CD reads a chart. A chart means rewriting 1,340 lines of profiles, the Services and the LiteLLM ConfigMap, and about 20 tests that read those files. Kustomize has no comparison. devops ai gateway render is already the render step of this configuration.

Related

Related: #3485, #1389, #2396

Activity

  1. added
    source/agent
    type/feature
    scope/k8s
    status/new
    value/medium
    effort/medium
    on Nov 4, 2026
  2. dan-petty commented on Nov 4, 2026

    @dan-petty
    OwnerAuthor

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

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. Reduces embedding latency on old GPUs but does not block a release or fix a broken path.
    • Value: Medium. Cuts p95 embedding wait from 37 s to roughly 6 s on the slow tier, a clear gain for RAG users.
    • Effort: Medium. Requires a new config file, render-command changes, tier split into two instances, workload move, and validation rules.
    • Related: feat(k8s): place vLLM and Ollama by GPU architecture behind an authenticated LLM gateway #453, which asks for a different change. Both place workloads by GPU architecture; #453 delivered initial placement, the candidate adds threshold-based embedding-only and per-GPU rules on top.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 4, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 4, 2026
  5. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-04 21:19 UTC

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

    effort/mediumpriority/p2-mediumscope/k8ssource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions