TSDB & RAM Tuning
TSDB Shipper v13 Index Overhead & 24-Hour Table Sizing
Replace legacy BoltDB-Shipper v11 bloat with Loki 3.x TSDB v13 tables consuming ~2.2% of raw log volume.
~2.2% Raw Index Ratio · 24h Table Rotation · 4x Faster Lookups
Why Schema v13 Matters for RAM
Schema v13 with tsdb-shipper stores inverted postings in compact 24-hour TSDB files instead of monolithic BoltDB B-trees, reducing memory mapped index spikes during time-range queries.
Always Enable Structured Metadata in v13
Setting allow_structured_metadata: true in schema v13 lets developers attach trace_id, pod_ip, and user_agent per line without exploding TSDB index postings.
Measured Thresholds & Loki TSDB Parameters
| Daily Raw Volume | TSDB v13 Index/Day | 90-Day Index Footprint |
|---|---|---|
| 50 GB/day | 1.1 GB/day | 99 GB (plus compaction margin) |
| 180 GB/day | 4.0 GB/day | 360 GB |
| 600 GB/day | 13.2 GB/day | 1.19 TB |