Components: Kafka

Description: Kafka is one of the most important transport layer in project - almost every interconnection between services organized with Kafka.

Provision script (Puppet manifest): kafka.pp

Additional info: Kafka site

To create Kafka cluster I have used 3 machines and Zookeeper ensemble - all states in Kafka broker are under monitoring (see Monitoring Links). Of course it’s necessary to monitore also producer and consumer - but I will make it later. You can read some nterresting links about monitoring Kafka and collecting metrics with help of jmxtrans in those links:

Hot commands:

To manually create necessary topics you need to execute such commands:

bin/kafka-topics.sh --create --replication-factor 2 --partitions 2 --zookeeper localhost:2181 --topic crawler-events
bin/kafka-topics.sh --create --replication-factor 2 --partitions 2 --zookeeper localhost:2181 --topic crawler-commands

You always can see existing topics:

bin/kafka-topics.sh --list --zookeeper localhost:2181

Table of content: