- kafka-2
- kafka-3
+ u0:
+ image: juplo/toolbox
+ command:
+ - bash
+ - -c
+ - |
+ kafka-producer-perf-test \
+ --topic test \
+ --num-records 10000000 \
+ --record-size 100 \
+ --throughput -1 \
+ --producer.config /tmp/client.properties \
+ --producer-props \
+ acks=all \
+ bootstrap.servers=kafka:9092 \
+ buffer.memory=67108864 \
+ batch.size=128000
+ volumes:
+ - ./u0.properties:/tmp/client.properties
+
u1:
image: juplo/toolbox
command:
volumes:
- ./u1.properties:/tmp/client.properties
+ u2:
+ image: juplo/toolbox
+ command:
+ - bash
+ - -c
+ - |
+ kafka-producer-perf-test \
+ --topic test \
+ --num-records 10000000 \
+ --record-size 100 \
+ --throughput -1 \
+ --producer.config /tmp/client.properties \
+ --producer-props \
+ acks=all \
+ bootstrap.servers=kafka:9092 \
+ buffer.memory=67108864 \
+ batch.size=128000
+ volumes:
+ - ./u2.properties:/tmp/client.properties
+
volumes:
zookeeper-data:
zookeeper-log: