Skip to content

Question on buffer.max_size when using "vector" as sink #12869

Answered by spencergilbert
bmallya asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @bmallya,

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 data_dir and once the batch age meets batch.timeout_secs, it will be flushed out. When this is done, the events will no longer be available in the local buffer. Is this correct?

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…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bmallya
Comment options

@spencergilbert
Comment options

@bmallya
Comment options

@spencergilbert
Comment options

Answer selected by jszwedko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants