Systems Tuning
Scaling Fluent Bit Threaded Output Workers for 25k-50k EPS
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
Why Single-Threaded Outputs Bottleneck High-EPS Nodes
Without Workers configured on [OUTPUT], network timeouts, DNS lookups, and gzip compression run on Fluent Bit’s main coroutine loop, slowing down input tailing and inflating memory buffers.
Matching Worker Count to vCPU Cores
Each output worker spawns a dedicated OS thread (~6.5 MB stack/buffer footprint). Setting Workers equal to host vCPU count (capped at 6-8) maximizes TLS/gzip throughput without thread contention.
Measured Parameters & Shipper Configuration Directives
| Target EPS Band | Recommended Workers | CPU & Memory Behavior |
|---|---|---|
| 1,000 - 10,000 EPS | Workers 2 | ~13 MB worker overhead; eliminates single-socket stalls |
| 10,000 - 30,000 EPS | Workers 3 - 4 | Matches 2-4 vCPU KVM nodes for parallel gzip + TLS writes |
| 30,000 - 75,000 EPS | Workers 5 - 8 | Saturates multi-core InterServer 4-Slice HTTP bulk inserts |
| Single-Thread Default | Workers 0 (Main Loop) | Only safe below 3k EPS; high latency sinks freeze input tailing |