mqtt-stresser icon indicating copy to clipboard operation
mqtt-stresser copied to clipboard

How to use mqtt-stresser to publish a json message

Open carlosjpr-collab opened this issue 3 years ago • 2 comments

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                                                                                

carlosjpr-collab avatar Jul 29 '21 15:07 carlosjpr-collab

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"}'

hikhvar avatar Jul 29 '21 18:07 hikhvar

Thanks @hikhvar , I am getting this pb image

Any idea or a test that i can i do to detetct the pb I used python mqtt paho and it works.

carlosjpr-collab avatar Jul 29 '21 19:07 carlosjpr-collab