简体   繁体   中英

Kafka Java client handle connection,server issue

I'm using Kafka Java client and sometimes we have some down time in Kafka Server. We need to send alarm to monitoring system that the Kafka server is not available.

What is the best way to make health check for Kafka server from Java client?

If your main goal is to check whether Kafka broker cluster is up you can check via

  1. Kafka broker port is available
  2. Watch Zookeeper node for broker to check is any child node is available.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM