2018-06-14 20:26:41 +03:00
|
|
|
# Firefox Monitor Loadtests
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
- Python 3.6
|
|
|
|
- pip
|
2018-06-15 06:22:19 +03:00
|
|
|
- virtualenv
|
2018-06-14 20:26:41 +03:00
|
|
|
|
|
|
|
## Setup
|
|
|
|
|
2018-06-15 06:22:19 +03:00
|
|
|
```sh
|
|
|
|
$ virtualenv venv -p python3
|
|
|
|
$ source ./venv/bin/activate
|
|
|
|
$ pip install -r requirements.txt
|
2018-06-14 20:26:41 +03:00
|
|
|
```
|
2018-06-15 06:22:19 +03:00
|
|
|
|
|
|
|
## Running the load tests
|
|
|
|
|
2018-08-28 21:52:10 +03:00
|
|
|
Dev server:
|
|
|
|
```sh
|
|
|
|
locust --host=https://fx-breach-alerts.herokuapp.com
|
|
|
|
```
|
2018-06-15 06:22:19 +03:00
|
|
|
|
2018-08-28 21:52:10 +03:00
|
|
|
Stage server (Note: ask breach-alerts@mozilla.com first):
|
|
|
|
```sh
|
|
|
|
locust --host=https://blurts-server.stage.mozaws.net/
|
2018-06-14 20:26:41 +03:00
|
|
|
```
|