mqtt-stresser
mqtt-stresser copied to clipboard
How to use mqtt-stresser to publish a json message
I am asking how we can start mqtt stresser to generate
- 50 users with 50 mqtt connect message
- maximum of publish on /api/test topic with publish message in josn
{ "test:" "this is lodaing test message"}
I have right now:
docker run --rm inovex/mqtt-stresser -broker tcp://xxxxxxx:8883 -num-clients 50 -num-messages 150 -rampup-delay 1s -rampup-size 10 -global-timeout 180s -timeout 20s -username xxxx -password xxx -skip-tls-verification true
Use the constant-payload
flag: https://github.com/inovex/mqtt-stresser/blob/master/main.go#L33
docker run --rm inovex/mqtt-stresser -broker tcp://xxxxxxx:8883 -num-clients 50 -num-messages 150 -rampup-delay 1s -rampup-size 10 -global-timeout 180s -timeout 20s -username xxxx -password xxx -skip-tls-verification true -constant-payload='{ "test:" "this is lodaing test message"}'
Thanks @hikhvar , I am getting this pb
Any idea or a test that i can i do to detetct the pb I used python mqtt paho and it works.