Mirko Lazarevic
07/08/2026, 5:59 PMRetry_Limit is set to no_limits?
I'm trying to understand whether there is any engine-level behavior that causes an output (or input) plugin to stop sending new logs when the retry queue is full, effectively waiting until there's enough space for the next retry task.
If such a mechanism exists, could you point me to the relevant documentation or source code? Thanks!Leonardo
07/08/2026, 8:21 PMLeonardo
07/08/2026, 8:23 PMLeonardo
07/08/2026, 8:24 PMLeonardo
07/08/2026, 8:25 PMLeonardo
07/08/2026, 8:25 PMMirko Lazarevic
07/08/2026, 8:59 PM#define FLB_CONFIG_DEFAULT_TASK_MAP_SIZE_LIMIT 16384
This is a task map size limit. I believe it is used as fluent-bit engine's task-ID allocation pool. Now, my understanding is that when 16 384 tasks are live (a mix of in-flight flushes and pending retries), the dispatch loop stops converting input chunks into tasks. New input records pile up and are not dispatched. Since retrying tasks hold slots until their retry succeeds, a flood of failed retries under no_limits can exhaust all 16 384 slots and block new data from being flushed entirely. Is my understanding correct?Leonardo
07/08/2026, 9:05 PMLeonardo
07/08/2026, 9:07 PMLeonardo
07/08/2026, 9:07 PMLeonardo
07/08/2026, 9:08 PMMirko Lazarevic
07/08/2026, 9:20 PMRetry_Limit false and intentionally made my endpoint fail, so it continuously retries sending data, just as you observed. I also configured a dummy input to continuously generate data and let it run for a while.
Fluent Bit is configured to use filesystem storage.
After some time, Fluent Bit stops sending data altogether, and the dummy input plugin also stops generating new data. These are the last few log messages I see before everything appears to stall:
[2026/07/08 22:37:04.276] [ warn] [engine] failed to flush chunk '98347-1783541861.892249000.flb', retry in 681 seconds: task_id=4429, input=dummy.1 > output=logger-agent-plugin.0 (out_id=0)
[2026/07/08 22:37:09.279] [ info] [task] re-schedule retry=0xb50186e50 9048 in the next 160 seconds
[2026/07/08 22:37:09.279] [ info] [task] re-schedule retry=0xb501369a0 8428 in the next 268 seconds
[2026/07/08 22:37:09.287] [ info] [task] re-schedule retry=0xb500d5c50 7688 in the next 320 seconds
[2026/07/08 22:37:09.287] [ info] [task] re-schedule retry=0xb500b8600 7408 in the next 296 seconds
[2026/07/08 22:37:09.287] [ info] [task] re-schedule retry=0xb500d61f0 7698 in the next 577 seconds
[2026/07/08 22:37:09.287] [ info] [task] re-schedule retry=0xb5006aa00 6868 in the next 15 seconds
[2026/07/08 22:37:09.287] [ info] [task] re-schedule retry=0xb5010a6d0 8068 in the next 160 seconds
[2026/07/08 22:37:09.287] [ info] [task] re-schedule retry=0xb501b9ce0 9388 in the next 170 secondsMirko Lazarevic
07/08/2026, 9:21 PM2026-07-08T20:37:04.255776008Z fluentbit_output_chunk_available_capacity_percent{name="logger-agent-plugin.0"} = 95.416056400000002
95% still availableMirko Lazarevic
07/08/2026, 9:22 PMokMirko Lazarevic
07/08/2026, 9:23 PMLeonardo
07/08/2026, 9:23 PMLeonardo
07/08/2026, 9:23 PMMirko Lazarevic
07/08/2026, 9:25 PMMirko Lazarevic
07/08/2026, 9:28 PM[SERVICE]
Flush 1
Log_Level info
Daemon off
Parsers_File /Users/mila/dev/fluent-bit/conf
Plugins_File /Users/mila/dev/logger-agent-plugin/plugins.conf
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_Port 2020
Hot_Reload On
Health_Check On
HC_Errors_Count 5
HC_Retry_Failure_Count 5
HC_Period 60
storage.path /Users/mila/tmp/fluent-bit-cache
storage.max_chunks_up 250
storage.metrics On
[INPUT]
Name dummy
Dummy {"message": "{\"msg\":\"TEST MESSAGE 00\"}"}
Rate 10
storage.type filesystem
[OUTPUT]
Name logger-agent-plugin
Match *
Retry_Limit false
# Connection
Target_Host localhost
Target_Port 8081
Target_Path /v1/logs
# Buffer storage
storage.total_limit_size 500M
storage.type filesystem
The output plugin is really simple, it establishes ws connection against my server and sends Compressed PackedForwardMessage, nothing else.Mirko Lazarevic
07/08/2026, 9:33 PM2026-07-08T19:14:50.362581899Z fluentbit_output_errors_total{name="logger-agent-plugin.0"} = 0
2026-07-08T20:37:04.255776008Z fluentbit_output_retries_total{name="logger-agent-plugin.0"} = 77773
2026-07-08T19:14:50.362581899Z fluentbit_output_retries_failed_total{name="logger-agent-plugin.0"} = 0
2026-07-08T19:14:50.362581899Z fluentbit_output_dropped_records_total{name="logger-agent-plugin.0"} = 0
2026-07-08T20:37:04.255776008Z fluentbit_output_retried_records_total{name="logger-agent-plugin.0"} = 576029
2026-07-08T20:37:04.275847100Z fluentbit_storage_chunks = 11897
2026-07-08T20:37:04.275847100Z fluentbit_storage_mem_chunks = 10797
2026-07-08T20:37:04.275847100Z fluentbit_storage_fs_chunks = 1100
2026-07-08T20:37:04.275847100Z fluentbit_storage_fs_chunks_up = 249
2026-07-08T20:37:04.275847100Z fluentbit_storage_fs_chunks_down = 851
If I count number of *.flb files in my storage path it shows 1100Leonardo
07/08/2026, 9:41 PMLeonardo
07/08/2026, 9:41 PMLeonardo
07/08/2026, 9:41 PMLeonardo
07/08/2026, 9:41 PMLeonardo
07/08/2026, 9:42 PMLeonardo
07/08/2026, 9:42 PMLeonardo
07/08/2026, 9:42 PMLeonardo
07/08/2026, 9:43 PMLeonardo
07/08/2026, 9:43 PMLeonardo
07/08/2026, 9:43 PMLeonardo
07/08/2026, 9:44 PMworkers to 1Leonardo
07/08/2026, 9:45 PMthreaded attribute to on which you can but don't do it at the same time as the previous test so you can isolate the changes and make it easier to pinpoint which one changes the outcome)Mirko Lazarevic
07/08/2026, 9:48 PMOne thing that's really peculiar is that you say that when the fault state is reached ingestion is also pausedYes, so no more logs, no more retries and no new records generated at least according to fluent-bit metrics (
curl loclhost:8081/api/v2/metrics )Mirko Lazarevic
07/08/2026, 9:48 PMLeonardo
07/08/2026, 9:49 PMLeonardo
07/08/2026, 9:49 PMMirko Lazarevic
07/08/2026, 9:49 PMLeonardo
07/08/2026, 9:49 PMMirko Lazarevic
07/08/2026, 9:50 PMLeonardo
07/09/2026, 1:21 PMMirko Lazarevic
07/09/2026, 2:37 PMworkers to 1. I wasn't able to reproduce the issue. I didn't observe any pipeline stalls, and I can see that the filesystem storage is gradually filling up (with less and less free space available).Leonardo
07/09/2026, 4:01 PMLeonardo
07/09/2026, 4:01 PMLeonardo
07/09/2026, 4:02 PMLeonardo
07/09/2026, 4:03 PM