Introduction
This article mainly introduces the clusterList and clusterRT commands
command
clusterList: View the cluster list
clusterRT: Test the response time of the cluster
example
clusterList
1) Help
./mqadmin clusterList -h
2) View the basic information of the cluster
./mqadmin clusterList -n nameserver1:9876
3) View more information about the cluster
./mqadmin clusterList -n nameserver1:9876 -m
4) Query cluster information, refresh the current information every 10 seconds.
./mqadmin clusterList -n nameserver1:9876 -m -i 10
clusterRT
bug: The -s parameter must be specified, the command cannot be executed without specifying it
1) Help
./mqadmin clusterRT -h
2) View the response time of the specified cluster (each time a message is sent, the size of a single message is 10Bytes)
#RT is the response time (unit: ms), successCount is the successful transmission, and failCount is the failed transmission.
./mqadmin clusterRT -n nameserver1:9876 -c CLUSTERNAME -s 10 -a 1
3) View the response time of the specified cluster (5 messages each time, the size of a single message is 100Bytes)
#RT is the response time (unit: ms), successCount is the successful transmission, and failCount is the failed transmission.
./mqadmin clusterRT -n nameserver1:9876 -c CLUSTERNAME -s 100 -a 5
4) View the response time of the specified cluster (5 messages are sent each time, the size of a single message is 100Bytes, refreshed every 10s)
#RT is the response time (unit: ms), successCount is the successful transmission, and failCount is the failed transmission.
./mqadmin clusterRT -n nameserver1:9876 -c CLUSTERNAME -s 100 -a 5 -i 10
5) Print data in tlog format (-p parameter)
./mqadmin clusterRT -n nameserver1:9876 -c QMQ -s 100 -a 5 -i 10 -p true
博主:测试生财
座右铭:专注测试与自动化,致力提高研发效能;通过测试精进完成原始积累,通过读书理财奔向财务自由。
csdn:https://blog.csdn.net/ccgshigao