-
-
Save rberg32/02006860abbe2c6e1c69 to your computer and use it in GitHub Desktop.
Installing Locust on Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install -y python-pip | |
sudo apt-get install -y python-dev | |
sudo apt-get install -y libzmq-dev | |
# For testing https with strict encryption and prevent locust errors | |
# https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning | |
sudo apt-get install python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev | |
sudo pip install virtualenv | |
virtualenv venv | |
source venv/bin/activate | |
pip install locustio | |
pip install pyzmq | |
# For testing https with strict encryption and prevent locust errors | |
# https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning | |
pip install --upgrade ndg-httpsclient | |
# If you plan on spawning more than 1000 users per Locust instance, you will need to modify the following files and reboot | |
# Add the following lines to /etc/sysctl.conf | |
fs.file-max = 10000 | |
fs.nr_open = 10000 | |
# Add the following lines to /etc/security/limits.conf | |
* soft nofile 10000 | |
* hard nofile 10000 | |
root soft nofile 10000 | |
root hard nofile 10000 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment