lwclover opened a new issue #3308:
URL: https://github.com/apache/rocketmq/issues/3308
最近使用RocketMQ pull API做了消息同步的功能,也就是将指定topic消息从一个集群同步到另外一个集群。
考虑到性能因素,第一印象就是使用pull API。
这个功能在编写的过程中,发现simple里的demo并不适用于生产环境。
使用PULL API应该考虑一下几点:
1.消息队列的负载均衡
2.消费进度的存储
3.PullResult的处理
4.性能监控
性能测试结果:
条件:
1. 配置为2c 4g容器
2. 消息大小500字节
3. 注册了16个topic
4. 从一个mq集群拉取消息发送到另外一个集群
结果:tps 10w+

注:
RocketMQ压测时发现,当内存有消息堆积时,也就是free接近0,大部分内存都被pagecache占用时,发送性能降低非常多
拉取消息时,如果是从磁盘拉取,一次只能返回8个消息
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]