生产测试kafkaMirrorMaker同步效率
背景:由于需要跨机房迁移kafka集群,进行数据同步的效率测试
-
kafka版本
源端和目的端同为0.9版本kafka -
环境准备
目的端搭建测试kafka单节点一台
机器配置信息:CPU=8;内存=15GMIRRORMAKER消费者参数配置
vi mirror-consumer.properties
zookeeper.connect=ip:2181,ip:2181
#consumer group id
group.id=MirrorGroupTest
auto.offset.reset=largest
#smallest
注意:0.9版本的消费端一些参数是不可用的,可以去掉

MIRRORMAKER生产者参数配置
vi mirror-producer.properties
bootstrap.servers=ip:9092
# specifies whether the messages are sent asynchronously (async) or synchronously (sync)
producer.type=sync
# specify the compression codec for all data generated: none, gzip, snappy, lz4.
# the old config values work as well: 0, 1, 2, 3 for none, gzip