fluent-plugin-influxdb icon indicating copy to clipboard operation
fluent-plugin-influxdb copied to clipboard

memory leak if influxdb goes down

Open tsorya opened this issue 5 years ago • 3 comments

We are running influxdb plugin with config: <match metrics.*> @type influxdb host 10.47.246.7 port 8086 dbname test use_ssl false time_key time auto_tags time_precision ms retry 3 @type memory # chunk_limit_size 524288 # 512 * 1024 # chunk_limit_records 1024 flush_interval 10 retry_limit 3 retry_wait 1.0 num_threads 1 json

when we stop influxdb we see that fluentd is leaking memory: Screenshot from 2019-07-04 14-12-50

any ideas?

tsorya avatar Jul 04 '19 11:07 tsorya

Use file buffer instead :) This is not memory leak because you use memory buffer. It stores data in memory so this is expected behaviour.

repeatedly avatar Jul 04 '19 11:07 repeatedly

@repeatedly why it doesn't drop them after finishing retrying?

tsorya avatar Jul 04 '19 11:07 tsorya

why it doesn't drop them after finishing retrying?

Your log doesn't contain any retry / drop information?

repeatedly avatar Jul 05 '19 02:07 repeatedly