Is it possible to use Litmus to test kafka

9/27/2018

Is it possible to use Litmus to test kafka? basically some test to figure out what happens in various scenarios. Initial thoughts are:

  • deploying confluent helm chart for kafka and checking brokers gets Storage bound successfully
  • Kill broker and ensure it comes back
  • kill zookeeper pod and ensure it comes back
  • kill consumer pods (my own apps) and ensure they come a back and doesn't miss message
  • kill producer pod and ensure it comes back and ensure all messages get sent.
-- Ranjith Raveendran
automated-tests
chaos
kubernetes
openebs

1 Answer

9/27/2018

I assume that you mean a Litmus test as in a mini chaos engineering test and I'm also assuming that you mean to do in Kubernetes. Yes, you should be able to do as long as you have all your pods defined in a higher level abstraction like a Deployment, DaemonSet, and StatefulSet that inherently creates a ReplicaSet.

In the Kubernetes world to force this test you can just delete the pod where your Kafka/Zookeeper workload is running and they should be brought up by the ReplicaSet on to of your pods.

-- Rico
Source: StackOverflow