This tutorial works on the assumption you are using ubuntu 14.04
Run the following command:
sudo apt-get update && sudo apt-get -y install python-pip python-dev libxml2-dev libxslt-dev
sudo pip install locustio && sudo pip install pyzmq
ulimit -n 9999
A test can be run on one server, but as soon as you reach the hardware limitations, you will need to scale horizontally.
To exec a test just one server:
locust -f ./test.py --host=http://somedomain.io --master
You will have a master slave setup where only one master exists.
Run the "running a test" steps on each node you want to have as part of the testing cluster but on each slave you should exec this instead:
locust -f ./test.py --host=http://somedomain.io --slave --master-host=x.x.x.x
Where x.x.x.x is the ip of the master you would have set up in the "running a test" section.
You will only need to use the one admin interface provided my the master. It should report whether the slaves are correctly setup and activey serving traffic.
Play Blokr Now FREE!
blokr.io the web game where you can eat other blocks!