feat: support storage.total_limit_size for the fluent-bit forward output

已关闭
#2,126 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@cvas22 已经在做这个了。

开始于 2026年11月11日。

  • #2127 来自 @cvas22 —— 未关闭

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
30/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
go, kubernetes
领域
backend, devops

调研方向

The issue names plugins/output/http_types.go as the reference for the field and rendering, and a linked pull request (#2127) is already open. Read that file and the forward output type and renderer to understand the matching pattern; done means the forward output exposes totalLimitSize and renders it as storage.total_limit_size, with coverage following the existing output tests.

由索引模型根据 Issue 内容生成。

描述

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

With storage.type filesystem on inputs, fluent-bit only bounds the on-disk buffer per output via
storage.total_limit_size. The forward output (ClusterOutput.spec.forward) does not expose this
setting, so there is no way to cap the filesystem buffer for the common fluent-bit → fluentd setup.

We hit this in production: the downstream (fluentd → OpenSearch) was unavailable, fluent-bit kept
buffering with retry_limit: no_limits, the buffer grew to ~40 GB on the host path and filled
the node disks.

Today TotalLimitSize exists on 8 output plugins (es, opensearch, kafka, loki, syslog, http,
opentelemetry, splunk — added one by one, e.g. in #1196, #1318, #1823, #1865, #2009), but not on
forward and 16 others (checked on master 404b514).

Current workaround: replace forward with customPlugin.config and write the whole output section
by hand. This loses the typed CRD fields (tls, networking, secrets) and has to be duplicated in
every overlay that patches the output.

Describe the solution you'd like

Add totalLimitSize to the forward output, rendered as storage.total_limit_size, same as
plugins/output/http_types.go:

// Limit the maximum number of Chunks in the filesystem for the current output logical destination.
TotalLimitSize string `json:"totalLimitSize,omitempty"`
...
plugins.InsertKVString(kvs, "storage.total_limit_size", f.TotalLimitSize)

Alternative: since storage.total_limit_size is a generic option of every fluent-bit output (like
Retry_Limit, which is already on OutputSpec), it could be added once to OutputSpec instead
of per plugin. Happy to go either way.

Additional context

主要语言
Go
星标
689
派生
333
平均合并
2 天 6 小时
30 天内合并 PR
43

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

fluent/fluent-operator 的其他 Issue

查看 fluent/fluent-operator 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。