Pipeline Presets
Kubernetes DaemonSet Pod w/ Strict 128 MB Memory Limit
Run Fluent Bit on every worker node inside a 128 MiB cgroup ceiling using storage.type=filesystem, max_chunks_up=32, and cri multiline parsing.
22-68 MB RSS · cgroup 128 MiB Safe · Zero Pod OOMKill
Why DaemonSets Get OOMKilled Under Default Settings
Leaving storage.max_chunks_up at its 128-chunk default allows up to 256 MB of hot chunk buffers in RAM, immediately triggering Kubernetes cgroup OOMKill (exit 137) on pods capped at 128 MiB or 256 MiB.
Spilling Backlog Safely to hostPath NVMe
Mounting /var/log/flb-storage onto hostPath SSD with storage.max_chunks_up=32 keeps DaemonSet RSS predictable under 70 MB even when Loki or ClickHouse experiences a 20-minute rolling restart.
Measured Parameters & Shipper Configuration Directives
| Directive / Parameter | Recommended Setting | Operational Reason |
|---|---|---|
| storage.max_chunks_up | 32 (~64 MB hot RAM ceiling) | Keeps total up-chunks well below the 128 MiB pod limit |
| Mem_Buf_Limit | 10MB (when memory-only) | Pauses tail input immediately when downstream stalls |
| storage.backlog.mem_limit | 5M | Caps memory spent replaying hostPath .flb backlog chunks |
| Kubernetes Filter | Merge_Log On, Keep_Log Off, Buffer_Size 32k | Enriches pod labels without doubling JSON memory allocation |