kafka集群性能测试问题
kafka
kafka集群性能测试
1. linux服务器配置如下:
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
physical cpu : 2
proccessor: 24
model name : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
2. 启动了三个broker集群,分布在不同服务器上,使用kafka自带的脚本进行测试(./kafka-producer-perf-test.sh)
@ubuntu:/data/svckafka/kafka/bin$ ./kafka-producer-perf-test.sh -h
usage: producer-performance [-h]
[
[
(
This tool is used to verify the producer performance.
optional arguments:
-h,
number of messages to produce
provides delimiter to be used when
be ignored if
throttle maximum message throughput to *approximately* THROUGHPUT messages/sec. Set this to -1 to disable
throttling.
kafka producer related configuration properties like bootstrap.servers,client.id etc. These configs take precedence
over those passed via
producer config properties file.
The transactionalId to use if transaction-duration-ms is > 0. Useful when testing the performance of concurrent
transactions. (default: performance-producer-default-transactional-id)
The max age of each transaction. The commitTransaction will be called after this time has elapsed. Transactions are
only enabled if this value is positive. (default: 0)
either
message size in bytes. Note that you must provide exactly one of
file to read the message payloads from. This works only for UTF-8 encoded text files. Payloads will be read from
this file and a payload will be randomly selected when sending messages. Note that you must provide exactly one of
3. 问题:
(1) 随着分区数的增多,吞吐量应该越来越小,但是我测的结果不一样,如下图:
(2)随着副本数增多,吞吐量也应该越来越小,但我测的结果好像没怎么变化,如下图: