Skip to content

Instantly share code, notes, and snippets.

@rberg32
Forked from heyman/gist:95ee0df663b2d4b9d6fb
Last active June 20, 2018 14:16
Show Gist options
  • Save rberg32/02006860abbe2c6e1c69 to your computer and use it in GitHub Desktop.
Save rberg32/02006860abbe2c6e1c69 to your computer and use it in GitHub Desktop.
Installing Locust on Ubuntu 14.04
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