Hi, I am facing few problem with td agent. All the files from last few months are piling up in buffer path. and now it is failed to flush the buffer. I try to increase the buffer limit and queue limit but not sure why file are still stored in buffer path.
- Chef td agent version 2.2.0.
- ubuntu 14.04.
- My current match config for collector is
<match component.*>
@type copy
<store>
@type s3
aws_key_id xxx
aws_sec_key xxx
s3_bucket xxx
s3_region xxx
s3_object_key_format %{path}/${tag}_%{time_slice}_%{index}.%{file_extension}
path logs/component/
compress gzip
buffer_path /var/log/td-agent/buffer/s3_component
time_slice_format %Y-%m-%d/%H/%M
time_slice_wait 1m
flush_interval 15m
buffer_chunk_limit 32m
buffer_queue_limit 4098
retry_wait 1s
max_retry_wait 5s
disable_retry_limit true
storage_class REDUCED_REDUNDANCY
</store>
</match>
- I am getting following error
`2016-11-10 19:59:47 +0000 [warn]: temporarily failed to flush the buffer. next_retry=2016-11-10 19:59:41 +0000 error_class="Errno::EMFILE" error="Too many open files @ rb_sysopen - /tmp/s3-20161110-24004-k538mh" plugin_id="object:3ff2cc3db8"
2016-11-10 19:59:47 +0000 [warn]: suppressed same stacktrace
2016-11-10 19:59:47 +0000 [warn]: temporarily failed to flush the buffer. next_retry=2016-11-10 19:59:42 +0000 error_class="Errno::EMFILE" error="Too many open files @ rb_sysopen - /tmp/s3-2016-11-10-24004-w5sf44" plugin_id="object:3ff2c8e6d4"
2016-11-10 19:59:47 +0000 [warn]: suppressed same stacktrace
2016-11-10 19:59:47 +0000 [warn]: temporarily failed to flush the buffer. next_retry=2016-11-10 19:59:52 +0000 error_class="Errno::EMFILE" error="Too many open files @ rb_sysopen - /tmp/s3-20161110-24004-1q9pt5r" plugin_id="object:3ff2c8d6a8"
2016-11-10 19:59:47 +0000 [warn]: suppressed same stacktrace
2016-11-10 19:59:47 +0000 [warn]: temporarily failed to flush the buffer. next_retry=2016-11-10 19:59:52 +0000 error_class="Errno::EMFILE" error="Too many open files @ rb_sysopen - /tmp/s3-20161110-24004-1x1u77o" plugin_id="object:3ff2c9d1d6"`