Skip to main content
HUD LOGCHUNK SYSTEMS // LOKI 3.X SINGLE-BINARY TSDB & ZSTD TELEMETRY SCHEMA: TSDB-SHIPPER V13 | ZSTD 6X-11X | BASELINE 2026-11-13
GrafanaLokiRAM
GrafanaLokiRAM Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
TSDB & RAM Tuning

Tuning chunk_idle_period & max_chunk_age to Prevent OOM Kills

Balance active ingester heap memory against ZSTD compression efficiency by tuning how long chunks stay open in RAM.

15m Idle = -28% RAM · 30m Idle = Balanced · 1h Idle = Max Ratio

Tuning chunk_idle_period & max_chunk_age to Prevent OOM Kills
Telemetry baseline verified 2026-11-13 by LogChunk Systems.

Why Sparse Streams Exhaust RAM

If 20,000 containers emit one line every 10 minutes and chunk_idle_period is set to 1h, Loki holds 20,000 open chunk buffers in RAM simultaneously.

Set chunk_target_size Near 1.5 MB

Keep chunk_target_size at 1572864 bytes (1.5 MB) so high-throughput streams flush cleanly on size while low-rate streams flush on chunk_idle_period.

Measured Thresholds & Loki TSDB Parameters

Chunk PolicyIngester RAM ImpactZSTD Density Impact
15m idle / 1h max_age-28% active heap RAMSlightly smaller blocks (~6-8x)
30m idle / 2h max_ageBaseline 1.0x heapOptimal 8-9x ZSTD block size
1h idle / 4h max_age+38% active heap RAMPeak 10-11x compression on sparse streams
15m Idle = -28% RAM · 30m Idle = Balanced · 1h Idle = Max Ratio InterServer $6/TB SliceUltaHost VDS ($37.50+/mo)