TUNING 01
Understand how Mem_Buf_Limit caps input ingestion per plugin and why summing multiple [INPUT] sections plus chunk metadata must fit under cgroup limits.
Formula: Sum(Mem_Buf_Limit) * 1.35 + 24 MB Base <= Pod Limit
TUNING 02
Size storage.max_chunks_up so hot chunks stay in RAM for speed while excess 2 MB .flb chunks spill transparently to SSD/NVMe during sink outages.
2 MB / Chunk · 128 Chunks = ~256 MB Hot RAM · Disk Spillover
TUNING 03
Eliminate "Buffer_Max_Size reached" truncation errors on verbose Kubernetes and GraphQL logs without wasting per-file tail memory.
64k Initial Chunk · 256k-512k Max · Skip_Long_Lines On
TUNING 04
Compare Fluent Bit input pausing, Vector when_full="block" vs "drop_newest", and disk spillover so upstream apps never deadlock on stdout pipes.
App Safety: Disk Spillover > Block > Drop Newest
TUNING 05
Move TLS handshakes and gzip compression off the single C event loop by configuring Workers 2-6 on HTTP, Loki, S3, and ClickHouse sinks.
1 Event Loop + 4 Sink Workers = +340% HTTP/TLS Throughput
TUNING 06
Size Vector disk_v2 ring buffers cleanly against outage duration, VRL expansion ratios, and minimum 256 MiB / multi-GB allocation rules.
disk_v2 CRC32 · >= 256 MiB Floor · 1.25x Raw Outage Size
TUNING 07
Benchmark CPU cycles per 10k EPS between Onigmo regex log parsers and structured JSON emitters using Fluent Bit jsmn / simdjson.
JSON Parse: 0.12 vCPU @ 10k EPS vs Regex: 0.78 vCPU (-84% CPU)
TUNING 08
Stop infinite exponential retry queues from locking up buffer chunks for days by enforcing finite Retry_Limit 5-10 with dead-letter fallback.
Retry_Limit 5 (~155s Backoff) · Zero Zombie Chunks
TUNING 09
Resolve "Too many open files" and stalled container log tails by tuning fs.inotify.max_user_watches, max_user_instances, and Rotate_Wait.
max_user_watches 524288 · LimitNOFILE 65535 · Rotate_Wait 5
TUNING 10
Quantify the $0.10/GB ingest plus $1.70/M indexed event compounding curve and cut 80-98% of log spend using edge filtering and ClickHouse/S3.
1.3 TB/day: $3,900+/mo Ingest -> $24/mo InterServer 4-Slice