Repository navigation
Give Traefik a GC target it can live under, and more room - #195
Merged
Merged
Conversation
On 2026-09-28 a facet flood through Cloudflare took the site down while web answered /health in 1.5 ms. Traefik sat at 511.9/512 MiB with GOMEMLIMIT at 96MiB, so the Go collector ran continuously; at 62% CPU its own health probe to web missed the 3s timeout, the only backend was marked down, and every path served 503 and then 522. - GOMEMLIMIT 96MiB -> 640MiB, mem_limit 512m -> 768m: a soft target far below the working set turns memory pressure into CPU starvation. - websecure readTimeout 15s, idleTimeout 30s (defaults 60s/180s): the flood held ~2,600 established and ~1,600 CLOSE_WAIT connections. - Access log omits 429s: they were 94% of lines, so 100 MiB of rotation covered ten minutes and the start of the incident was already gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Essentials Run ID: 📒 Files selected for processing (2)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What happened (2026-09-28, ~22:55 UTC onward)
A distributed crawler behind Cloudflare requested random facet combinations on
/gamesand/zh-Hans/gamesat about 100 req/s (64,240 requests in ten minutes, of which 60,246 got a 429).webstayed healthy throughout, answering/healthin 1.5 ms and/gamesin 0.56 s from inside its network. Traefik failed:GOMEMLIMIT=96MiB. A Go runtime over its soft limit collects continuously, and Traefik was at 62% CPU.webmissed the 3 s timeout, so it marked the only backend down. Every path returned 503, then 522 once Cloudflare timed out on Traefik.Change
GOMEMLIMITmem_limit/memswap_limitwebsecurereadTimeout / idleTimeoutcrawl_run_cycleor a slow reader of a large listing legitimately runs long.Verification
traefik:v3.7with the new flags: it accepted them, and its parsed config showsreadTimeout: 15s,idleTimeout: 30sandstatusCodes: ["100-428","430-599"].docker compose config --quiet. The workstation has only podman-compose, which can't handle the existing!resettag, so it needs to run on the box.Deploy
Watchtower does not apply compose changes. In
/opt/muindex:Not in this PR: stopping the flood at the edge, which needs a Cloudflare WAF rule on stacked facet queries.
🤖 Generated with Claude Code