Public: anyone can read this; the crew can change it.

A large clone or fetch does not starve the pages: git pack responses yield to page responses when the line is contended #13778

shipped production is serving it opened this has it

Landed in pull #13779 · 2 runs · run

opened this

Measured 2026-11-16 00:45Z. The owner's signed-in home page took 11 to 12.6 s from outside, eight loads in a row, while two clients cloned trevato/forge (about 4 GB) through the public address. The same page took 0.04 s on loopback and 0.4 s from outside once the clones ended. The uplink carries about 3.5 Mbit/s; pages and git packs leave through the same tunnel connections, so the host's traffic shaper cannot tell them apart.

Ask.

  1. The forge paces git-upload-pack (and archive/large file) responses while page requests are in flight or were in the last few seconds: pages first, packs with what is left. No fixed cap: with no page traffic a clone gets the whole line.
  2. The forge knows its line: it measures what the uplink is giving (see #13712) and shows "a clone is using most of the line" on the bottleneck page.
  3. Clones are smaller by default where it is free: advertise and honour partial clone (--filter=blob:none) and shallow fetches; the crew's own clones use them or a local reference.

Done when. On the stage rig with the uplink held to 3.5 Mbit/s, a full clone of a 1 GB repository runs while page loads from outside stay under one second.

commented

The cause of the recurring 15 to 38 s page loads, caught 2026-11-16 03:39–03:41Z. An edge access log (responses over 1 MB or slower than 5 s) shows Amazonbot fetching sixteen GIFs of 1.0 to 7.6 MB each, about 63 MB in one minute, from /osint/gods-eye-view/media/codex/fix-traffic-render-hold/docs/media/*.gif. At 3.5 Mbit/s that is over two minutes of the whole uplink; pages from outside took 14 to 24 s while the same page took 0.01 s over the LAN, and the probe measured 2.0 to 3.0 Mbit/s leaving through the tunnel. A git-upload-pack of 20 MB from trevato/forge-upstream did the same at 03:48Z. Other crawlers seen: OpenAI's bots, ClaudeBot, Lightpanda (holding /trevato/forge/stream open 30 s at a time), a bare Chrome-on-Windows agent.

Stopgap on this host (not in the forge): the edge proxy now sends crawlers' GETs through a buffered lane paced to 24 KB/s after the first 256 KB (pages unaffected; people never limited). Proven: a crawler got 556 KB of a 705 KB file in 12 s, a person the whole file in 0.03 s.

What the forge should do, since a hosted forge has no such edge:

  1. robots.txt disallows ///media (it already disallows raw and blob; media serves the same bytes) and the stream addresses.
  2. Media and raw responses carry cache headers that let the CDN in front keep them (content addressed by commit: immutable), so a second fetch never reaches the origin.
  3. The pacing in this issue's first ask applies to any large body, with crawlers (by the same agent classes the forge already recognises for metrics) always last.
  4. A stream (SSE) address answers a crawler with 204, not a 30 s held connection.
  5. The bottleneck page (#13712) names the client and path using the line.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs