We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We use fluentd to transfer line based large log file; about 4GiB / hour and 1495 byte / line.
$ wc apache2.acc.21.log 2949500 242309651 4410569207 apache2.acc.21.log
CPU usage of fluentd is very high. We tried sigdump and it shows this line every time:
fluentd/lib/fluent/plugin/in_tail.rb
Line 735 in 31cd8ca
I feel maxlen=2048 is too small, at least on our case. It reads only one or two lines on each call.
FYI, tail command in coreutils uses BUFSIZ in stdio.h, and BUFSIZ in Debian and Ubuntu is 8192.
BUFSIZ
stdio.h
In case of ruby, overhead of calling io.readpartial will be higher than read in C. Would you change the maxlen to at least 8192?
io.readpartial
read
cat /etc/os-release
uname -r
<source> @type tail path /.../web/%Y-%m-%d/apache2.acc.%H.log pos_file /.../td-agent/web.acc.pos read_from_head tag web.acc format none enable_stat_watcher false </source>
The text was updated successfully, but these errors were encountered:
@nurse Do you see any concern for increasing this value?
Sorry, something went wrong.
@repeatedly Using 8192 sounds reasonable.
@methane Could you send a pull request?
Successfully merging a pull request may close this issue.
We use fluentd to transfer line based large log file; about 4GiB / hour and 1495 byte / line.
CPU usage of fluentd is very high. We tried sigdump and it shows this line every time:
fluentd/lib/fluent/plugin/in_tail.rb
Line 735 in 31cd8ca
I feel maxlen=2048 is too small, at least on our case. It reads only one or two lines on each call.
FYI, tail command in coreutils uses
BUFSIZ
instdio.h
, andBUFSIZ
in Debian and Ubuntu is 8192.In case of ruby, overhead of calling
io.readpartial
will be higher thanread
in C. Would you change the maxlen to at least 8192?cat /etc/os-release
: "Debian GNU/Linux 9 (stretch)"uname -r
: 4.9.0-5-amd64The text was updated successfully, but these errors were encountered: