Skip to content
Discussion options

You must be logged in to vote

Your measurements match the 0.56.0 read loop.

There is no file-source scheduling setting that changes this behavior. After a successful read, the backoff resets to 1 ms. Each empty poll then doubles it until it reaches 2,048 ms. glob_minimum_cooldown_ms only affects file discovery, and max_read_bytes only affects how much is read once data is available.

So yes, a naturally busy file stays on the fast path and will usually have much lower polling delay. A sparse file eventually reaches the 2,048 ms sleep, so a new line can wait close to two seconds before Vector sees it. I would not add artificial heartbeat lines just to keep the reader active, since that changes the log stream and only wo…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ArkIiii-9526
Comment options

@paulodearaujo
Comment options

Answer selected by ArkIiii-9526
@ArkIiii-9526
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
source: file Anything `file` source related
2 participants