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

Reduce delay before flush when large timekey and small timekey_wait a… #2291

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

iwasakims
Copy link
Contributor

When large timekey and relatively small timekey_wait are given, the delay before flush could be too long. The cause is running interval of enqueue thread which is set as timekey / 11.0. If timekey is 86400 (1 day), the interval is 7854 seconds. Even if timekey_wait is set to 600 seconds in this case, the actual delay before flush could be up to 600+7854 seconds. Taking timekey_wait into account for deciding enqueue thread interval would mitigate this.

…re given.

Signed-off-by: Masatake Iwasaki <iwasakims@gmail.com>
@repeatedly
Copy link
Member

Thanks. Will check soon.

@repeatedly repeatedly merged commit 7b6d176 into fluent:master Feb 19, 2019
@repeatedly
Copy link
Member

Looks good. Thanks!

@iwasakims
Copy link
Contributor Author

Thanks for reviewing and merging.

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

Successfully merging this pull request may close these issues.

None yet

2 participants