Skip to content

Commit 1cfae77

Browse files
installation: sources: build-and-install : Add Optimization options. (fluent#786)
Adding a new `Optimization Options` section under `Build Options`. Addind documentation about new build parameters to control the memory usage of the msgpack to json conversion in the function flb_msgpack_raw_to_json_sds. The parameters are : - FLB_MSGPACK_TO_JSON_INIT_BUFFER_SIZE - FLB_MSGPACK_TO_JSON_REALLOC_BUFFER_SIZE Signed-off-by: Francisco Valente <[email protected]>
1 parent f5e797a commit 1cfae77

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

installation/sources/build-and-install.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ Fluent Bit provides certain options to CMake that can be enabled or disabled whe
101101
| FLB\_TESTS | Enable tests | No |
102102
| FLB\_BACKTRACE | Enable backtrace/stacktrace support | Yes |
103103

104+
### Optimization Options
105+
106+
| option | description | default |
107+
| :--- | :--- | :--- |
108+
| FLB\_MSGPACK\_TO\_JSON\_INIT\_BUFFER\_SIZE | Determine initial buffer size for msgpack to json conversion in terms of memory used by payload. | 2.0 |
109+
| FLB\_MSGPACK\_TO\_JSON\_REALLOC\_BUFFER\_SIZE | Determine percentage of reallocation size when msgpack to json conversion buffer runs out of memory. | 0.1 |
110+
104111
### Input Plugins
105112

106113
The _input plugins_ provides certain features to gather information from a specific source type which can be a network interface, some built-in metric or through a specific input device, the following input plugins are available:

0 commit comments

Comments
 (0)