Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-metrics-auth
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 70a0435814 swarm-metrics-auth: remember a failed lookup briefly so a store outage costs one lookup per burst
After a failed or timed-out store read the responder denies for LOOKUP_FAILURE_WINDOW (3 s) without a new lookup, so a burst of requests during an outage costs one lookup instead of one per request.

Three edits besides the code in main.rs belong to this change:
- swarm-metrics-auth/Cargo.toml gains tokio's test-util dev-dependency because the burst test runs on paused time (start_paused) to let a hanging store sleep past LOOKUP_TIMEOUT without a real 5 s wait.
- docs/swarm/services.md gains the sentence that a failed or timed-out read is denied for three seconds without a retry, which documents the window this change adds.
- docs/swarm/credentials.md gains the clause "every three seconds while the store fails" on the Grafana bearer row, which documents the same window in the secrets table.
2026-10-17 23:36:05 +02:00
..
src swarm-metrics-auth: remember a failed lookup briefly so a store outage costs one lookup per burst 2026-10-17 23:36:05 +02:00
Cargo.toml swarm-metrics-auth: remember a failed lookup briefly so a store outage costs one lookup per burst 2026-10-17 23:36:05 +02:00