Google Cloud IoT testeting code with Paho and LocustIO
Code to execute stress test:
locust -f stresslocust.py
And then you have to control test using web browser.
To create a cluster of instances to increase test with more virtual devices:
Master instance (load this first)
locust -f stresslocust.py --master
Slave instances
locust -f stresslocust.py --slave --master-host=ip_of_master
And then you have to control test using web browser.
http://ip_of_master:8089