https://github.com/prashanth-sams/locust-workshop
Exercise locust with sample programs
https://github.com/prashanth-sams/locust-workshop
docker grafana influxdb load-testing locust locust-docker locust-tests performace python python3 testing
Last synced: over 1 year ago
JSON representation
Exercise locust with sample programs
- Host: GitHub
- URL: https://github.com/prashanth-sams/locust-workshop
- Owner: prashanth-sams
- Created: 2021-01-21T13:00:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-10T11:07:25.000Z (over 5 years ago)
- Last Synced: 2025-02-28T11:49:30.217Z (over 1 year ago)
- Topics: docker, grafana, influxdb, load-testing, locust, locust-docker, locust-tests, performace, python, python3, testing
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Locust Boilerplate
> Exercise locust with sample programs

### Prerequisites
python3 -m venv venv/
source venv/bin/activate
pip3 install -r requirements.txt
### Execution
- Web Interface
```
locust -f src/test/task/hooks.py
```
- Headless Mode
```
locust -f src/test/task/weightage.py MobileUser -u 5 -r 1 -t 10s --headless --logfile logs/output.log --loglevel DEBUG --only-summary
```
> Docker Execution
```
docker run -p 8089:8089 -v $(pwd):/mnt/locust locustio/locust:master -f /mnt/locust/src/test/task/hooks -u 4 -r 1
```
> Scale up slaves
```
docker-compose up --scale worker=4
```