Producer
command: kafka-producer-perf-test --topic _perf-test --num-records 10000000 --record-size 1000 --throughput 10000000 --producer-props bootstrap.servers=192.168.198.128:9092 --producer.config /etc/kafka/kafka-tools.properties
消息大小(byte) | 性能 |
100 | 400k/second |
1k | 48k/second |
10k | 4.8k/second |
Consumer
command: kafka-consumer-perf-test --broker-list 192.168.198.128:9092 --topic _perf-test --group _perf_nobuffer_cg --messages 10000000 --threads 1 --show-detailed-stats --reporting-interval 5000 --consumer.config /etc/kafka/kafka-tools.properties
消息大小(byte) | 性能 |
1k | 90k/second |
1k message + 100k buffer | Doesn't change much |