Repository navigation
Cap the site backend's resources and document manual record lookups - #309
Conversation
A stray `docker exec` search for a nonexistent province.db ran in the production backend for 50 hours at a full core. The backend had no CPU, memory or process limits. Give both sites' backends caps well above normal use, and say in the PostgreSQL ops doc where site records live and how to query them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Backend limits in Compose docker-compose.yml, docker-compose.staging.yml |
Both backend services set a CPU limit of 4, a memory limit of 12 GB and a process limit of 1,024. Comments describe runaway-process containment and approximate normal usage. |
PostgreSQL lookup guidance
| Layer / File(s) | Summary |
|---|---|
Query site records docs/docs/ops/postgresql.md |
The documentation explains that site records are stored in PostgreSQL, warns against recursive filesystem searches and provides a read-only query. It specifies using dev for the Dev site. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Suggested reviewers: ryanbarlow97
Merge Risk: 
Minimal · up to 90b4f
-
The configuration and lookup guidance are ready to merge on the available evidence. Confirm the limits on the running containers after deployment as planned.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Summary
psqlcommand, and warns against recursive filesystem searches.Why
On 2026-10-26 a
docker execintotfmcweb-production-backend-1ranglob.glob('/**/province.db', recursive=True)to look up a Discord link. Python 3.12 follows the looping symlinks under/sys, so the search never ends. It held a full core for 50 hours until it was killed. The file it was looking for doesn't exist anyway.Test plan
docker compose config -qpasses for both compose filespsqlcommand runs against production (select count(*) from discord_links→ 269)docker inspectshows the limits and health checks pass🤖 Generated with Claude Code