Skip to content

fluentbit: Add support for hot_reload.timeout and hot_reload.ensure_thread_safety in FluentBitConfig #1925

@devodev

Description

@devodev

Is your feature request related to a problem? Please describe.

I would like to be able to configure the hot reload timeout.
This configuration defaults to unset and causes unbounded hot reloads, which can cause inifinite wait on output tasks that don't cooperate.

Example stuck hot reload log output:

[2026/04/17 13:17:16.210961315] [ info[] [engine] pending chunk count: memory=31, filesystem=0; grace_timer=1331
[2026/04/17 13:17:16.210981756] [ info[] [task] tail/tail.0 has 0 pending task(s):
[2026/04/17 13:17:16.210992065] [ info[] [task] emitter/emitter_for_rewrite_tag.0 has 29 pending task(s):
[2026/04/17 13:17:16.211000726] [ info[] [task]   task_id=47 still running on route(s): null/null.1 http/http.2 http/http.3 http/http.4 http/http.5 http/http.6 http/http.7 http/http.8 http/http.9 
[2026/04/17 13:17:16.211007066] [ info[] [task]   task_id=77 still running on route(s): null/null.1 http/http.2 http/http.3 http/http.4 http/http.5 http/http.6 http/http.7 http/http.8 http/http.9 
[2026/04/17 13:17:16.211015446] [ info[] [task]   task_id=117 still running on route(s): null/null.1 http/http.2 http/http.3 http/http.4 http/http.5 http/http.6 http/http.7 http/http.8 http/http.9 
[2026/04/17 13:17:16.211024426] [ info[] [task]   task_id=145 still running on route(s): null/null.1 http/http.2 http/http.3 http/http.4 http/http.5 http/http.6 http/http.7 http/http.8 http/http.9 
[2026/04/17 13:17:16.211032136] [ info[] [task]   task_id=48 still running on route(s): http/http.0 null/null.1 http/http.2 http/http.3 http/http.4 
...

Describe the solution you'd like

Add hotReloadTimeout and hotReloadEnsureThreadSafety fields to FluentBitConfig.service and ClusterFluentBitConfig.service.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions