RocketMQ Cluster命令【实战笔记】

1.查看集群信息
bin/mqadmin clusterList -n localhost:9876

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
Cluster Name     Broker Name                      BID  Addr                  Version                    InTPS     OutTPS
AdpMqCluster      broker-a                          0     192.168.1.x:10911     V3_4_6                     2819.22     1077.39
AdpMqCluster      broker-b                          0     192.168.1.x:10911     V3_4_6                     2839.42     1070.89
AdpMqCluster      broker-c                          0     192.168.1.x:10919     V3_4_6                     2800.12     1058.39
AdpMqCluster      broker-d                          0     192.168.1.x:10915     V3_4_6                     2897.04     1126.04
AdpMqCluster      broker-e                          0     192.168.1.x:10919     V3_4_6                     2987.20     1181.88
AdpMqCluster      broker-f                          0     192.168.1.x:10915     V3_4_6                     3010.40     1187.08
2.创建Topic
bin/mqadmin updateTopic -n localhost:9876 -c DefaultCluster -t zto-example
3.删除Topic
bin/mqadmin deleteTopic -n localhost:9876 -c DefaultCluster -t zto-example

作者老梁,哈啰出行高级技术专家,参与了《RocketMQ技术内幕》审稿工作。专注后端中间件方向,已陆续发表RocketMQ系列、Kafka系列、gRPC系列、Sentinel系列、Java NIO系列。其中RocketMQ系列已发表40余篇。源码、实战、原理、调优期待与你一起学习。


公众号.jpg

个人微信.png

你可能感兴趣的:(RocketMQ Cluster命令【实战笔记】)