Closed donghyun-ji closed 8 years ago
Telegraf has its own issue tracker over at https://github.com/influxdata/telegraf/issues
The issue here sounds like socket buffer size. If the UDP buffer fills up before the app drains it, packets will be dropped. The allowed_pending_messages
setting controls a different buffer inside the application, one that comes after the OS socket buffer. Telegraf does not have a way of controlling this socket buffer.
But if reliability is a concern, you probably want to use a reliable protocol like TCP instead. While changes could be made to telegraf to decrease the liklihood of packets being dropped, it'll never be completely preventable as long as you are still using UDP.
I think I agree with @phemmer here. This question may be better suited for the mailing list though. Since you're using UDP, you should also expect no guarantee that all points will reach their destination. If you need reliability, use TCP.
Directions
I am carrying out test how much data into the influxDB per a unit second by using the Telegraph.
Bug report
System Info
1) OS : Ubuntu 14.04 2) InfluxDB : v1.0 3) Telegraf : v1.0 4) Telegraf input : udp_listener 5) UDP application : python 6) Hard Disk Drive(HDD)
The telegraf input was set to udp _listen and It was execute a Python program that udp communications
After, I was counting that inserted to InfluxDB. A result data has been lost.(10,000 of data inserted, but went only 9866) On the other hand not a loss occurs when it is tested in the solid state drive(SSD).
Why does the loss of data? Is performance of a hard disk related to loss of data?
Setting telegraf agent
Setting telegraf input