Skip to content

fix(k8s): Ollama model pulls stall through squid because ranged blob requests are fetched from byte 0 #460

Closed

Description

@dan-petty

Problem

Ollama cannot pull models through the squid proxy. Pulls hang for hours and retry forever; the gateway aliases that depend on those models (devops-chat, devops-embedding) fail with model not found, so every gateway fallback chain ends in a broken tier.

Ollama downloads each blob from Cloudflare R2 as many parallel byte ranges. squid runs range_offset_limit -1, which answers a ranged request by fetching the whole object from byte 0. Every range beyond the start waits for the full prefix, Ollama's stall detection aborts it after ~30 s, and the pull restarts. Over 54 minutes squid logged 1,498 ranged GETs to R2, all TCP_MISS_ABORTED, delivering 0 bytes.

Single-stream downloads (vLLM weights from Hugging Face) are unaffected because they start at byte 0.

Proposal

Forward ranged requests to Ollama's blob storage (.r2.cloudflarestorage.com) unchanged (range_offset_limit 0 for that domain) and keep whole-object fetching for everything else. Partial responses are not cacheable, so Ollama blobs stop being cached, which they never were in practice.

Acceptance criteria

  • ollama pull completes through squid.
  • Hugging Face downloads keep whole-object caching.
  • A test pins the range handling order in k8s/squid/configmap.yaml.

Activity

  1. added this to the v0.2.23 milestone on Sep 23, 2026
  2. added
    type/bug
    scope/k8s
    priority/p1-high
    status/in-progress
    on Sep 23, 2026
  3. added a commit that references this issue on Sep 23, 2026
    4dd4b36
  4. dan-petty commented on Sep 23, 2026

    @dan-petty
    OwnerAuthor

    Closed by #461, 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
  6. removed
    status/in-progress
    on Oct 30, 2026
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/p1-highscope/k8stype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions