TSDB & RAM Tuning
ZSTD Chunk Compression Ratios (6x-11x) Across Log Formats
Measure exact disk savings across verbose OpenTelemetry JSON, Kubernetes stdout, Nginx access logs, and firewall syslogs.
OTel JSON 6-7x · K8s JSON 8-9x · Nginx/Syslog 10-11x
Why ZSTD Beats Snappy and Gzip for Loki
ZSTD delivers 25-35% tighter chunk sizes than Snappy at comparable decompression speed, directly extending retention windows on fixed InterServer Storage Slices.
Factoring 18% Compaction Headroom
Never fill storage disks to 99%. Compactor merges and WAL segments require at least 18% free space above steady-state compressed volume.
Measured Thresholds & Loki TSDB Parameters
| Log Payload Type | Observed ZSTD Ratio | 180 GB/Day Disk/Month |
|---|---|---|
| High-Entropy OTel JSON | 6x - 7x | 770 - 900 GB + index |
| Standard K8s App Logs | 8x - 9x | 600 - 675 GB + index |
| Syslog / Nginx Access | 10x - 11x | 490 - 540 GB + index |