The fetchOpenPredictions function had an unbounded query building a pair frequency map for rivalry detection. With thousands of bots and matches, this could return tens of thousands of rows and cause OOMKill. - Add ORDER BY COUNT(*) DESC to prioritize most common pairings - Add LIMIT 1000 - sufficient to detect rivalries (pairs with >= 3 matches) This fixes the 45-day CrashLoopBackOff with 4700+ restarts. Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acb-api | ||
| acb-enrichment | ||
| acb-evolver | ||
| acb-index-builder | ||
| acb-local | ||
| acb-map-evolver | ||
| acb-mapgen | ||
| acb-maps-loader | ||
| acb-matchmaker | ||
| acb-wasm | ||
| acb-worker | ||