What is the best way to health check a kafka connection from within an producer java application

2,789 views
Skip to first unread message

Vijaya Narayanan Paul

unread,
Apr 4, 2016, 10:15:06 PM4/4/16
to kafka-clients
I am working on a kafka producer application that needs to know when kafka goes down. I am looking for some kind of health check option thru which i can frequently poll and alert the system about kafka failure.

gerard...@dizzit.com

unread,
Apr 8, 2016, 5:30:50 AM4/8/16
to kafka-clients
I think the best way is to have some kind of hartbeat topic running, and expect every x time to get an event from it. Then you handle al possible errors. Another option is to monitor the broker with jmx, and set a trigger on produce failed and/or when you lose connection.
Reply all
Reply to author
Forward
0 new messages