From 5776db6cdf99b175428cebc683bd73760df30ba5 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Thu, 4 Dec 2025 16:23:55 +0900 Subject: [PATCH] output: add workaround explanation with stream_buffer_size It might be better to add explanation about workaround. See https://github.com/fluent/fluentd/issues/5133 Signed-off-by: Kentaro Hayashi --- output/exec_filter.md | 2 ++ parser/json.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/output/exec_filter.md b/output/exec_filter.md index da040e81..9aab2e76 100644 --- a/output/exec_filter.md +++ b/output/exec_filter.md @@ -34,6 +34,8 @@ Please see the [Configuration File](../configuration/config-file.md) article for When using the JSON format in `` section, this plugin uses the `Yajl` library to parse the program output. `Yajl` buffers data internally so the output is not always instantaneous. +If the buffering by `Yajl` parser is problematic for you even though you expect instantaneous response, you can tweak [`stream_buffer_size`](../parser/json.md) parameter in `` section. + ## Supported Modes * Synchronous diff --git a/parser/json.md b/parser/json.md index 242a5cb6..c22bda6f 100644 --- a/parser/json.md +++ b/parser/json.md @@ -30,6 +30,8 @@ Here is a simple comparison: Set the buffer size that Yajl will use when parsing streaming input. +If you specify the smaller buffer size, you could get outcome response instantaneously in exchange for performance penalty. + See also: [Method: Yajl::Parser\#parse](https://www.rubydoc.info/github/brianmario/yajl-ruby/Yajl%2FParser:parse) ### `time_type`