python -m venv venv
source venv/bin/activate
Install the dependencies:
install -r requirements.txt
Configure your socket.io configuration in chatbot_test_script.py
:
ws_url = "https://bots.cogniassist.com/61126f22624f978214b20966/default/socket.io"
Fire up Locust.io
locust --host 127.0.0.1 --port 8080 --locustfile chatbot_test_script.py
start a master node and 4 workers using the following command:
docker-compose up --scale worker=4
Now browse to your local machine
http://localhost:8080
You'll be presented with the New Swarm window. Set the number of hosts, and hatch rate, and then click Start Swarming You can see from the dashboard, how many users are spawned, how many connections are made, and how many failures. All being well, you can then browse to the Charts menu and see how your swarm is doing