Skip to content

Commit 5776db6

Browse files
committed
output: add workaround explanation with stream_buffer_size
It might be better to add explanation about workaround. See fluent/fluentd#5133 Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent 220d0bc commit 5776db6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

output/exec_filter.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Please see the [Configuration File](../configuration/config-file.md) article for
3434

3535
When using the JSON format in `<parse>` section, this plugin uses the `Yajl` library to parse the program output. `Yajl` buffers data internally so the output is not always instantaneous.
3636

37+
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 `<parse>` section.
38+
3739
## Supported Modes
3840

3941
* Synchronous

parser/json.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Here is a simple comparison:
3030

3131
Set the buffer size that Yajl will use when parsing streaming input.
3232

33+
If you specify the smaller buffer size, you could get outcome response instantaneously in exchange for performance penalty.
34+
3335
See also: [Method: Yajl::Parser\#parse](https://www.rubydoc.info/github/brianmario/yajl-ruby/Yajl%2FParser:parse)
3436

3537
### `time_type`

0 commit comments

Comments
 (0)