Skip to content

Instantly share code, notes, and snippets.

@almet
Created April 9, 2015 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almet/5158a62c72514ceec192 to your computer and use it in GitHub Desktop.
Save almet/5158a62c72514ceec192 to your computer and use it in GitHub Desktop.
Loadtest your python app

First, prepare your env:

virtualenv .venv
.venv/bin/pip install pexpect configparser==3.3.0r2 gevent git+git://github.com/mozilla-services/loads.git

Then write your tests and run them:

.venv/bin/loads-runner --config=./config/megabench.ini --user-id=mat --server-url=http://some-server.tld loadtest.TestCase.test_all
[loads]
users = 80
duration = 1800
include_file = loadtest
agents = 5
detach = true
ssh = ubuntu@loads.services.mozilla.com
python-dep = put your deps here if needed (separated by new lines)
no-dns-resolve = true
broker = tcp://172.31.44.86:7780
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment