[Ops] Add worker/beat healthchecks, container resource limits, and Redis AOF persistence #84
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
docker-compose.ymldefines healthchecks for db (:21), redis (:32), backend (:55), and bot (:124) — but none for worker (:63-78), beat (:80-94), or frontend (:96-107). No service hasmem_limit/cpusanywhere.redis:7-alpine(:29) runs with default RDB-snapshot-only persistence while holding user sessions (DB 0), the Celery broker (DB 1) with scheduled tasks queued up to 7 days out, and results (DB 2). The bot'sdepends_ongates backend only onservice_started(:117-119).Current behavior
docker compose ps— reminders and transcription silently stop.Fix / Spec
celery -A app.tasks.celery_app inspect ping -d celery@$$HOSTNAME(or equivalent that pings only the local worker), sensible interval/timeout/retries/start_period.--appendonly yesto the redis command; add a note indocs/OPERATIONS.mdon the durability-vs-IO trade-off (appendfsync everysecdefault is fine).depends_on.backendfromservice_startedtoservice_healthy(docker-compose.yml:117-119)./).docker-compose.prod.ymlcomposes cleanly with these additions.Acceptance criteria
docker compose psshows health status for worker and beat.docker pause/SIGSTOP on the worker flips it to unhealthy within a few intervals.docker compose restart redis.References
docker-compose.yml:21,:32,:55,:124(existing healthchecks)docker-compose.yml:63-78(worker),:80-94(beat),:96-107(frontend),:28-37(redis),:117-119(bot depends_on)Filed from the July 2026 full-project review.