Code Monkey home page Code Monkey logo

Comments (3)

solsson avatar solsson commented on August 27, 2024

Sounds very interesting. Increased test coverage is priority 1 for this repo, and in particular the form of resilience tests that you describe.

Tests based on the concept in #51 are essentially a way to document how to "smoke test" a resource. It works well for exploring things like the REST addon. The scope should be sanity checks and documentation. The benefit, but also the limitation, is that they don't require a dedicated image and don't depend on anyone's local environment.

That limitation is quite clear when testing for #78 using #79. Thus I'm working on a Java API based test for the same thing, currently in https://github.com/Yolean/kafka-test-failover.

All sorts of tests are welcome. How easy they are to adopt for others probably depend on:

  • Do they have any local dependencies? Or is it just kubectl apply -f?
  • What assumptions do they make about the kafka setup? Are they specific to some hosting provider?
  • Do they require new docker images?

For new images, are those builds automated at Docker Hub, like https://hub.docker.com/r/solsson/kafka/? Automated builds are easy to fork, and to build in minikube using eval $(minikube docker-env).

How would you want to package your tests? Separate repositories, bridged to the kafka setup using kubectl, would be an interesting approach for complex setups.

from kubernetes-kafka.

solsson avatar solsson commented on August 27, 2024

I've tried to see if Kafka's own tests could be used here. They are nicely dockerized, but they require control over brokers. I see no obvious way to identify tests that are applicable with arbitrary bootstrap.servers. There's also https://cwiki.apache.org/confluence/display/KAFKA/System+Test+Improvements.

from kubernetes-kafka.

solsson avatar solsson commented on August 27, 2024

Found https://github.com/linkedin/kafka-monitor now. I'll give it a try.

The status of https://github.com/Yolean/kafka-test-failover is that I can't get enough value out of it to motivate further development at this stage. I would like to test how it affects clients when broker pods are moved between nodes, for example at cluster upgrades, because I think this is quite unusual given the manual and broker-per-server approach of traditional Kafka ops (my interpretation of http://shop.oreilly.com/product/0636920044123.do).

from kubernetes-kafka.

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.