kafka性能压测(kafka内置压测工具)

//生产压测
bin/kafka-producer-perf-test.sh --topic test_perf --num-records 1000 --record-size 2000 --throughput 10 --producer-props bootstrap.servers=localhost:9092

//消费压测
bin/kafka-consumer-perf-test.sh --broker-list localhost:9092 --topic test_perf --fetch-size 10 --messages 1000 --threads 2

猜你喜欢

转载自blog.csdn.net/Felix_CB/article/details/85335152