Skip to content

Commit e59392f

Browse files
committed
Feedback
1 parent 9ed9931 commit e59392f

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

load_testing/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
## k6 load testing
22

3-
### Prerequisites
3+
### Usage (Docker)
44

5-
- Install [k6](https://grafana.com/docs/k6/latest/set-up/install-k6/)
5+
```shell
6+
./scripts/k6.sh -e BACKEND_BASE_URL=#### -e FRONTEND_BASE_URL=####
7+
```
68

7-
### Usage
9+
### Usage (local k6)
10+
11+
- Install [k6](https://grafana.com/docs/k6/latest/set-up/install-k6/)
812

913
```shell
1014
k6 run learn.ts -e BACKEND_BASE_URL=#### -e FRONTEND_BASE_URL=####

scripts/k6.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
SCRIPTPATH="$(
4+
cd -- "$(dirname "$0")" >/dev/null 2>&1 || exit
5+
pwd -P
6+
)"
7+
8+
ROOT_DIR="$(dirname $SCRIPTPATH)"
9+
10+
docker run --rm -ti \
11+
-v $ROOT_DIR/load_testing:/app \
12+
--add-host learn.odl.local:host-gateway \
13+
grafana/k6:master-with-browser \
14+
run /app/learn.ts "$@"

0 commit comments

Comments
 (0)