Starting and stopping your cluster in the right order

To avoid exceptions during processing, start and stop the components of your Apache Kafka cluster in the specified order.

When you want to start the cluster, start the components in the following order:
  1. Apache ZooKeeper servers
  2. Apache Kafka brokers
  3. Receiver Logstash servers
  4. HAProxy service
  5. Sender Logstash servers
When you want to stop the cluster, stop the components in the following order:
  1. Sender Logstash servers
  2. Receiver Logstash servers
  3. HAProxy service
  4. Apache Kafka brokers
  5. Apache ZooKeeper servers