Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-11-10 08:09:17 -05:00
pkg-proxy/internal/httpclient
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Simon Chrzanowski 3935ccd6f7 Share upstream rate-limit holds across instances
Holds placed by the rate limit gate are written to a new upstream_holds
table, and each instance reads that table at most every two seconds and
refuses requests to a host any instance holds. Before, every replica had
to get its own 429 before it stopped sending.

Instances waiting on a fetch lease reread the holds when the fetch fails,
so when the holder was rate limited they answer 503 with its Retry-After
instead of each sending one more request to the limited host.
2026-10-25 17:34:08 +01:00
..
access_log.go Add JSONL access logging (#269) 2026-08-16 18:07:39 +01:00
access_log_test.go Add JSONL access logging (#269) 2026-08-16 18:07:39 +01:00
shared_holds.go Share upstream rate-limit holds across instances 2026-10-25 17:34:08 +01:00
shared_holds_test.go Share upstream rate-limit holds across instances 2026-10-25 17:34:08 +01:00
token_scope_test.go Send registry tokens only to the token service's own registry 2026-10-24 08:00:48 +02:00
transport.go Bound the registry token and challenge caches 2026-10-24 08:02:10 +02:00
transport_test.go Bound the registry token and challenge caches 2026-10-24 08:02:10 +02:00