8000 GitHub - alfredfrancis/chatbot-load-testing: Load test chatbot using locust
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

alfredfrancis/chatbot-load-testing

Repository files navigation

Chatbot Stress Testing

Setup

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

Docker-compose Setup

start a master node and 4 workers using the following command:

docker-compose up --scale worker=4

Using Locust Admin Panel

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

About

Load test chatbot using locust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0