Skip to content

If buffer event in memory or disk will write to sink before k8s pod shutdown? #10482

Answered by jszwedko
linnaname asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @linnaname !

When using in-memory buffers, Vector will attempt to flush them before shutting down. There is a grace period of 60 seconds. After that, Vector will shutdown and drop any events that were still in-memory.

When using disk buffers, events are buffered to disk as the sink receives them. When shutting down, all events in-flight (in memory) from the source to the sink should be written to the disk buffer. The disk buffer will also attempt to flush events to the sink for up to 60 seconds before fulling shutting down.

Hope this helps! Let me know if you have any additional questions.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@linnaname
Comment options

@linnaname
Comment options

@jszwedko
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