Error Diagnostics // TraceLite Bench
Session Replay & Attachment Blob Memory/Storage Surge
Enabling SDK session replays multiplies payload size 10x-30x compared to plain JSON exception stacktraces, straining both ingestion memory and NVMe disk.
Measured GlitchTip & Sentry Telemetry
Standard error JSON payloads average 4-18 KB, whereas DOM replay chunks range from 80 KB to 600+ KB per incident. Enabling replays without sampling rates inflates PostgreSQL I/O, Celery deserialization RAM, and NVMe storage consumption.
| Subsystem / Signal | Measured Footprint | Operational Impact |
|---|---|---|
| Standard Exception Payload | 4 - 18 KB / event | ~2.6 GB disk per 1M events |
| With Session Replay / Blobs | 80 - 600 KB / event | ~4.8 - 12 GB disk per 1M events |
| Recommended SDK Sample Rate | replaysOnErrorSampleRate: 0.1 | Caps spike blast radius cleanly |
Step-by-Step Triage & Compose Remediation
- Audit payload sizes in Postgres: Check average event size before enabling replays across all production web apps.
- Lower SDK error replay sampling: Set replaysSessionSampleRate to 0 and replaysOnErrorSampleRate to 0.1-0.25.
- Use NVMe VPS with >=100 GB: Move to Vultr HF 4-8 GB (128-256 GB NVMe) or Hostinger KVM 2 (100 GB NVMe).
Sentry.init({
dsn: "https://key@errors.yourdomain.com/1",
replaysSessionSampleRate: 0.0,
replaysOnErrorSampleRate: 0.15,
});
Diagnostic FAQ
How much extra RAM should I budget if replays are enabled?
TraceLite Bench budgets +680 MB across Gunicorn, Celery, and Postgres buffers, plus roughly double the NVMe disk space.
Can I disable replays globally on the GlitchTip server?
Yes, set EVENT_STORE_REPLAYS=False in .env to reject heavy replay blobs at ingest.