A tool for testing the performance of Apache RocketMQ.
shell
cargo install mq-workload-generator
Download the binary from release page. Currently, only Linux and macOS are supported. For other platforms, you need to build from source on your own.
send and receive 100 messages per second to the topic test
:
```shell mq-workload-generator --topic test --qps 100
Jul 25 10:38:44.203 INFO[src/main.rs:32:5] Begin generating workload and wait for the server to come online... Jul 25 10:38:44.204 INFO[src/main.rs:82:17] current send tps: 100, receive tps: 100 Jul 25 10:38:45.206 INFO[src/main.rs:82:17] current send tps: 100, receive tps: 100 Jul 25 10:38:46.205 INFO[src/main.rs:82:17] current send tps: 100, receive tps: 100 Jul 25 10:38:47.205 INFO[src/main.rs:82:17] current send tps: 100, receive tps: 100 ```
All available options:
```shell
Usage: mq-workload-generator [OPTIONS] --topic
Options:
-a, --access-point
There is an out-of-the-box Kubernetes manifest file available for deploying the workload generator in Kubernetes.
shell
kubectl apply -f deployment-consumer.yaml
kubectl apply -f deployment-producer.yaml