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

Not to call IO#truncate to avoid too many IO flush #2551

Merged
merged 2 commits into from
Aug 16, 2019

Conversation

ganmacs
Copy link
Member

@ganmacs ganmacs commented Aug 12, 2019

Which issue(s) this PR fixes:
Fixes #

What this PR does / why we need it:

IO#truncate call IO#flush internally. this cause heavy IO in case file buffer of fluentd.
so I change file buffer metadata format not to call IO#truncate.

Docs Changes:

Release Note*:

same as title.

@ganmacs ganmacs force-pushed the avoid-truncate-to-reduce-IO branch 2 times, most recently from 4b56048 to b4f9304 Compare August 12, 2019 08:57
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
@ganmacs ganmacs force-pushed the avoid-truncate-to-reduce-IO branch from b86541b to aef6dcb Compare August 12, 2019 10:10
@ganmacs ganmacs marked this pull request as ready for review August 12, 2019 10:14
@ganmacs ganmacs added the enhancement Feature request or improve operations label Aug 14, 2019
@ganmacs ganmacs self-assigned this Aug 16, 2019
@repeatedly repeatedly merged commit d7dcda5 into fluent:master Aug 16, 2019
@repeatedly
Copy link
Member

Good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants