[PR #5962] [MERGED] server: reuse original download URL for images #11974

Closed
opened 2026-04-12 23:44:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5962
Author: @bmizerany
Created: 7/25/2024
Status: Merged
Merged: 7/25/2024
Merged by: @bmizerany

Base: mainHead: bmizerany/getdlurlonce


📝 Commits (5)

  • 7b43b1c server: reuse original download URL for images
  • 274f33d cancel request for direct url after 30s
  • 4957a3e handle backoff error
  • be1a383 better error
  • 88f3c71 Update server/download.go

📊 Changes

2 files changed (+79 additions, -2 deletions)

View changed files

📝 server/download.go (+74 -1)
📝 server/images.go (+5 -1)

📄 Description

This changes the registry client to reuse the original download URL it gets on the first redirect response for all subsequent requests, preventing thundering herd issues when hot new LLMs are released.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5962 **Author:** [@bmizerany](https://github.com/bmizerany) **Created:** 7/25/2024 **Status:** ✅ Merged **Merged:** 7/25/2024 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `bmizerany/getdlurlonce` --- ### 📝 Commits (5) - [`7b43b1c`](https://github.com/ollama/ollama/commit/7b43b1cb85197e810bfd771f87f56b2f40887eb8) server: reuse original download URL for images - [`274f33d`](https://github.com/ollama/ollama/commit/274f33deed5330403f29c1265e793ede543d7ce0) cancel request for direct url after 30s - [`4957a3e`](https://github.com/ollama/ollama/commit/4957a3e837d068216619082e0d334aca8d20522c) handle backoff error - [`be1a383`](https://github.com/ollama/ollama/commit/be1a383cc9fc0050847e45b8278e13d5c3b9aa0a) better error - [`88f3c71`](https://github.com/ollama/ollama/commit/88f3c715fd5bebdd306d7d606fa59b73e18b878e) Update server/download.go ### 📊 Changes **2 files changed** (+79 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/download.go` (+74 -1) 📝 `server/images.go` (+5 -1) </details> ### 📄 Description This changes the registry client to reuse the original download URL it gets on the first redirect response for all subsequent requests, preventing thundering herd issues when hot new LLMs are released. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:44:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11974