Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

promtail: Use ticker instead of timer for batch wait #969

Merged
merged 1 commit into from
Sep 5, 2019
Merged

promtail: Use ticker instead of timer for batch wait #969

merged 1 commit into from
Sep 5, 2019

Conversation

ctrox
Copy link
Contributor

@ctrox ctrox commented Sep 5, 2019

What this PR does / why we need it:
The current implementation does not match the description of the client.batch-wait flag. Instead it only sends a batch if it has not received a log entry in the time being. I observed this as an issue with a really minimal scrape config, I would only get logs after a really long time (until the default batchSize was reached) because I just had one pod continually output write some lines.

Which issue(s) this PR fixes:
Fixes #280

@CLAassistant
Copy link

CLAassistant commented Sep 5, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree the behavior should match the description, I believe the behavior most people would desire is to set the max time before any batch is sent regardless of it being full or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misleading client.batch-wait flag
3 participants