Config Fixes // TraceLite Bench
Redis maxmemory & Safe Celery Broker Queue Guardrails
Setting --maxmemory with --maxmemory-policy noeviction guarantees Redis fails loudly at the edge rather than silently dropping in-flight Celery queues or starving Postgres.
Measured GlitchTip & Sentry Telemetry
By default, Redis containers run without an upper memory limit. If downstream workers stall, Redis can swallow gigabytes of RAM. Pairing a 256-512 MB cap with Redis healthchecks isolates the broker cleanly.
| Subsystem / Signal | Measured Footprint | Operational Impact |
|---|---|---|
| 2-4 GB VPS Redis Cap | 256 MB (--maxmemory 256mb) | Handles ~120k queued burst events |
| 8-16 GB VPS Redis Cap | 512 MB (--maxmemory 512mb) | Handles ~250k+ queued burst events |
| Mandatory Broker Policy | noeviction | Preserves Celery task integrity |
Step-by-Step Triage & Compose Remediation
- Configure Redis command flags: Add --maxmemory and --maxmemory-policy noeviction to the redis service.
- Disable unnecessary RDB snapshots: For pure ephemeral burst queues, --save "" cuts background fork COW memory spikes.
- Verify broker ping & memory: Confirm redis-cli CONFIG GET maxmemory matches your target tier.
redis: image: redis:7-alpine command: ["redis-server", "--maxmemory", "256mb", "--maxmemory-policy", "noeviction", "--save", ""]
Diagnostic FAQ
Why disable RDB --save "" on GlitchTip Redis?
During bgsave forks, Linux copy-on-write can temporarily double Redis RAM if keys mutate rapidly during an event storm.
What if I want Redis persistence?
Leave RDB enabled on 8 GB+ nodes, or keep --save "" if your priority is zero memory spikes on 2-4 GB VPS.