TSDB & RAM Tuning
Configuring ingestion_rate_mb & ingestion_burst_size_mb Safely
Calculate per-second MB throughput from daily GB volume and set burst ceilings that stop runaway pods without dropping deploys.
Avg MB/s = GB*1024/86400 · Burst = 8.4x Steady Rate
Why Daily Averages Lie During Incident Loops
A crash-looping microservice can spike log volume 6x-10x over 5 minutes. Set ingestion_burst_size_mb to at least 2x ingestion_rate_mb while capping max_streams_per_user.
Alloy Client-Side 429 Backoff
Grafana Alloy automatically retries HTTP 429 responses using exponential backoff, buffering short bursts in agent memory rather than dropping lines.
Measured Thresholds & Loki TSDB Parameters
| Daily Volume | Avg Rate (MB/s) | Recommended Rate / Burst Limit |
|---|---|---|
| 50 GB/day | 0.59 MB/s | ingestion_rate_mb: 8 / burst: 16 |
| 180 GB/day | 2.13 MB/s | ingestion_rate_mb: 12 / burst: 24 |
| 600 GB/day | 7.11 MB/s | ingestion_rate_mb: 32 / burst: 64 |