Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-11-09 15:49:16 -05:00
pkg-proxy/internal/metrics
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Giles Westwood b2955ef458 Keep holds through late successes and away from the circuit breaker
A response arriving during a hold was sent before it began, so a late
success no longer releases the host; only one after the hold has ended
does.

Artifact fetches check RateLimitGate.Held before calling the fetcher, so
held cache misses fail with the HeldError without counting as failures
in the host's circuit breaker.

Every handler that answers an upstream fetch error with 502 now answers
a held request with 503 and Retry-After instead.

OnHold and RecordUpstreamRateLimitHold drop the unused duration.
2026-10-15 13:35:12 +01:00
..
analytics_test.go Drop unused registry from TestUpdateEcosystemStatsSumsAliasedRows 2026-10-02 10:42:59 +01:00
failures.go Isolate the recent failure history in tests 2026-10-12 18:44:12 +02:00
failures_test.go Isolate the recent failure history in tests 2026-10-12 18:44:12 +02:00
metrics.go Keep holds through late successes and away from the circuit breaker 2026-10-15 13:35:12 +01:00
metrics_test.go Hold requests to an upstream that rate limits the proxy 2026-10-14 21:35:17 +01:00
snapshot.go Add the /ui/analytics page 2026-10-01 16:15:03 +02:00
snapshot_test.go Isolate the recent failure history in tests 2026-10-12 18:44:12 +02:00