Config Fixes // TraceLite Bench
Lean GlitchTip Docker Compose Sizing (1.8–6.5 GB Envelope)
Running GlitchTip cleanly on a 2-8 GB VPS requires explicit Postgres buffer flags, Redis maxmemory, and bounded Gunicorn/Celery worker counts.
Measured GlitchTip & Sentry Telemetry
Default Docker Compose examples omit memory limits and let Python web/worker processes scale unbounded on multi-core hosts. Explicitly pinning service parameters keeps idle RSS around 1.8 GB and spike RSS below 3.4 GB on 4 GB nodes.
| Subsystem / Signal | Measured Footprint | Operational Impact |
|---|---|---|
| 100k - 1.5M events/mo | 1.8 - 2.6 GB RSS | Fits Vultr HF 2-4 GB or Hostinger KVM 1 |
| 2M - 10M events/mo | 2.8 - 4.5 GB RSS | Fits Vultr HF 4-8 GB or Hostinger KVM 2 |
| 12M - 25M events/mo | 4.8 - 6.5 GB RSS | Fits Vultr HF 8 GB or Hostinger KVM 4 |
Step-by-Step Triage & Compose Remediation
- Use Alpine Postgres 16 & Redis 7: Smaller base images reduce container overhead and boot cleanly.
- Run run-celery-with-beat.sh: Combine Celery worker and Beat scheduler in one container on 2-4 GB VPS to save ~220 MB.
- Pin mem_limit on worker: Keep burst memory inside cgroup bounds so Postgres never suffers OOM.
services:
postgres:
image: postgres:16-alpine
command: ["postgres", "-c", "shared_buffers=512MB", "-c", "work_mem=8MB"]
redis:
image: redis:7-alpine
command: ["redis-server", "--maxmemory", "256mb", "--maxmemory-policy", "noeviction"]
Diagnostic FAQ
Should I run Celery Beat as a separate container?
Only on 8-16 GB HA setups. On 2-4 GB VPS, ./bin/run-celery-with-beat.sh saves an extra Python interpreter footprint.
How fast does GlitchTip boot compared to Sentry?
A 4-container GlitchTip stack boots in ~12-20 seconds vs 4-8 minutes for Sentry.