0

我需要用 kafka 进行一些性能测试。

我正在使用此处解释的指南: https ://engineering.linkedin.com/kafka/benchmarking-apache-kafka-2-million-writes-second-three-cheap-machines

它使用如下命令: bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=localhost:9092 buffer.memory=67108864 batch.size=8196

我不明白:

题目名称:test7

num_records: 50000000

记录大小:100

server_address: bootstrap.servers=localhost:9092 buffer.memory=67108864

但我不明白以下内容的含义:

-1

确认=1

缓冲区.内存=67108864

批处理大小=8196

有没有人清楚他们的意思?或者你知道这个工具的任何文档吗?

谢谢

4

1 回答 1

1

通过深入查看 Apache Kafka 页面,我找到了包含 Producer 参数含义的表格。它们可以在以下链接中找到:

http://kafka.apache.org/documentation.html#producerconfigs

于 2016-01-11T19:37:58.633 回答