Azure / fluentd-plugin-mdsd

Azure Linux monitoring agent (mdsd) output plugin for fluentd
Other
27 stars 16 forks source link

If the connection to mdsd is broken, there's no way to reconnect short of restarting the plug-in #45

Open jasonzio opened 6 years ago

jasonzio commented 6 years ago

Both the writer and reader code will catch the "socket exception" thrown when mdsd exits/crashes, but the plug-in can't recover from that situation. When the plug-in is configured to queue writes (letting them be handled by the resender thread), the fix isn't overly complicated:

If the plug-in is configured for direct writes without the resender thread, recovery may involve turning on queue-for-resend to avoid data loss.