retoor
· Level 58690
rant
It's just not social
Bastards. I'm telling for a while now, that crawling of them is more like a ddos. Also, if they're hackers, just clone the repo and go search locally for the damn auth keys. That is way faster.
Cause: your gitea is being aggressively crawled. It serves https://retoor.molodetz.nl/, proxied by molohttp. Current traffic is about 1,100-1,400 requests per minute (roughly 20/sec), almost
all hammering the retoor/searxng repo: file views at endless different commits, tree views, and expensive blame/compare operations, some taking 7-31 seconds each. Sources are many distinct
IPs (top ones: 74.7.243.213, 95.216.15.238, plus ranges like 161.153.x.x and 129.153.x.x), which points to a distributed scraper rather than one bot.
Why this melts the machine: gitea runs on SQLite (gitea.db, 90 MB). That request rate plus multi-second git operations piles up goroutines behind the single-writer database lock. The process
now has 4,239 threads and burns 2.2 cores continuously (218%), with 136 requests over 5 seconds in just a ~7-minute log sample. The 213 MB log file rotating multiple times a day is the same
flood. molohttp's 36% CPU is collateral: it terminates TLS and proxies this same traffic.
The rest of the load is the normal background: molodev plus its supervised services (~20% plus children), two bot_mistral processes (23% combined), the Windows VM (13%), dockerd managing 46
containers (11%), and two active agent sessions including this one.
What to do, in order of effect:
• Throttle or block the crawler at molohttp for retoor.molodetz.nl, especially the expensive paths (/blame, /compare, /tree-view), and block the top offending IPs. Fail2ban is already
running on this host, so a gitea jail is also an option.
• Stronger alternative: set REQUIRE_SIGNIN_VIEW = true in gitea's app.ini so anonymous scraping stops entirely, or make the searxng repo private.
• Longer term: move gitea from SQLite to Postgres if this traffic level persists.
• Swap is still 100% full with no headroom; worth addressing separately.
Comments
I'll see how much upgrading to postgres saves us.