Question on buffer.max_size when using "vector" as sink #12869
-
Hello, I needed to understand how the buffering works. Correct me if my understanding is wrong, but I assumed that when buffering is turned on using buffer.max_size, the events will be written to the location pointed out by This is the configuration that I have for the sink
When an event is generated, I notice that the file size in the
I would like to ideally want to be using batch.max_size (with batch.max_size = buffer.max_size), so that we can send all the events together and then clear out the buffer |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @bmallya,
This is not correct, batching and buffering are not connected today. That is to say, when a disk buffer is enabled all events sent to the sink will be written to that buffer and persisted to disk. Batching happens in memory and once the events are batched and successfully sent the buffer will ack that the events sent in the batch can be deleted but the deletion is not immediately done at this time. The delay between acknowledgment and actual deletion of the events in buffer is arbitrary.
The original |
Beta Was this translation helpful? Give feedback.
Hey @bmallya,
This is not correct, batching and buffering are not connected today. That is to say, when a disk buffer is enabled all events sent to the sink will be written to that buffer and persisted to disk.
Batching happens in memory and once the events are batched and successfully sent the buff…