Giter VIP home page Giter VIP logo

Comments (2)

scholzj avatar scholzj commented on May 9, 2024

I fixed the Zookeeper healthcheck. That seemed to be quite easy and there seems to be only single solution used by almost everyone.

Kafka doesn't seem to have any obvious solutions. I saw several solutions using bin/kafka-broker-api-versions.sh. Do you think that is a good option? It seems better to me than just pinging the TCP port.

WDYT?

from strimzi-kafka-operator.

tombentley avatar tombentley commented on May 9, 2024

The broker doesn't have to do much to return ApiVersionsResponse (it's basically just a static method), but it would test things a little more than just doing a TCP handshake. It would report OK when the broker was an a bad state e.g. unable to write records to disk.

Internally the KafkaHealthCheck uses an ephermal znode in zookeeper, and this is how other brokers know about the health of a broker, but it seems to me this would suffer from the same problem.

A much more thorough test would be where we test producing and consuming to a compacted topic with one partition for each broker, and the partition wasn't replicated (so we knew only a single broker could be handling the produce and fetch requests). This would test something much closer to what producers and consumers actually care about. However using standard tools this would require a metadata request to a bootstrap broker. Perhaps we could write a custom tool to do this.

I would be inclined to implement bin/kafka-broker-api-versions.sh for the time being and do something better when we know more about situations where it is inadequate.

from strimzi-kafka-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.