Files
mtusi2026lab3/evidence/make-load-action-go.txt
T

125 lines
9.8 KiB
Plaintext

> docker compose up -d --wait
[+] up 7/7
✔ Network mtusi2026lab3_default Created 0.0s
✔ Container mtusi2026lab3-redis-1 Healthy 13.1s
✔ Container mtusi2026lab3-postgres-1 Healthy 13.1s
✔ Container mtusi2026lab3-migrate-1 Exited 12.9s
✔ Container mtusi2026lab3-api-2 Healthy 12.9s
✔ Container mtusi2026lab3-api-1 Healthy 12.9s
✔ Container mtusi2026lab3-load_balancer-1 Healthy 12.7s
> docker compose ps -a api
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab3-api-1 mtusi-messenger:lab3 "/app/server" api 15 seconds ago Up 7 seconds (healthy) 8080/tcp
mtusi2026lab3-api-2 mtusi-messenger:lab3 "/app/server" api 15 seconds ago Up 7 seconds (healthy) 8080/tcp
> make load-action-go LOAD_DURATION=30s REPLICA=1 ACTION_AT=10s
go test -tags=load,action ./student-tests/... -run TestLoadWithAction -v -args \
-base-url=http://localhost:8080 -duration=30s \
-replica=1 \
-action=/mnt/c/Users/kamywek10/Documents/Gitea/mtusi2026lab3/scripts/stop-one.sh \
-action-at=10s
=== RUN TestLoadWithAction
load_action_test.go:139: t= 0s ok= 380 err= 0
load_action_test.go:139: t= 1s ok= 400 err= 0
load_action_test.go:139: t= 2s ok= 400 err= 0
load_action_test.go:139: t= 3s ok= 400 err= 0
load_action_test.go:139: t= 4s ok= 400 err= 0
load_action_test.go:139: t= 5s ok= 400 err= 0
load_action_test.go:139: t= 6s ok= 400 err= 0
load_action_test.go:139: t= 7s ok= 400 err= 0
load_action_test.go:139: t= 8s ok= 400 err= 0
load_action_test.go:139: t= 9s ok= 400 err= 0
load_action_test.go:139: t=10s ok= 103 err= 0
load_action_test.go:139: t=11s ok= 314 err= 0
load_action_test.go:139: t=12s ok= 400 err= 0
load_action_test.go:139: t=13s ok= 400 err= 0
load_action_test.go:139: t=14s ok= 400 err= 0
load_action_test.go:139: t=15s ok= 400 err= 0
load_action_test.go:139: t=16s ok= 400 err= 0
load_action_test.go:139: t=17s ok= 400 err= 0
load_action_test.go:139: t=18s ok= 400 err= 0
load_action_test.go:139: t=19s ok= 400 err= 0
load_action_test.go:139: t=20s ok= 400 err= 0
load_action_test.go:139: t=21s ok= 400 err= 0
load_action_test.go:139: t=22s ok= 400 err= 0
load_action_test.go:139: t=23s ok= 400 err= 0
load_action_test.go:139: t=24s ok= 400 err= 0
load_action_test.go:139: t=25s ok= 400 err= 0
load_action_test.go:139: t=26s ok= 400 err= 0
load_action_test.go:139: t=27s ok= 400 err= 0
load_action_test.go:139: t=28s ok= 400 err= 0
load_action_test.go:139: t=29s ok= 400 err= 0
load_action_test.go:139: t=30s ok= 0 err= 0
load_action_test.go:142: action: started at 10.00s, finished at 10.47s
load_action_test.go:143: total ok=11597 errors=0, successful RPS=386.56
load_action_test.go:146: recovery time: 0s (no errors after action start)
--- PASS: TestLoadWithAction (30.43s)
PASS
ok mtusi2026-messenger/student-tests 30.436s
> docker compose ps -a api
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab3-api-1 mtusi-messenger:lab3 "/app/server" api 53 seconds ago Exited (0) 23 seconds ago
mtusi2026lab3-api-2 mtusi-messenger:lab3 "/app/server" api 53 seconds ago Up 46 seconds (healthy) 8080/tcp
> docker compose up -d --wait
[+] up 6/6
✔ Container mtusi2026lab3-postgres-1 Healthy 7.0s
✔ Container mtusi2026lab3-redis-1 Healthy 7.0s
✔ Container mtusi2026lab3-load_balancer-1 Healthy 7.0s
✔ Container mtusi2026lab3-api-2 Healthy 7.0s
✔ Container mtusi2026lab3-migrate-1 Exited 6.4s
✔ Container mtusi2026lab3-api-1 Healthy 5.7s
> make load-action-go LOAD_DURATION=30s REPLICA=2 ACTION_AT=10s
go test -tags=load,action ./student-tests/... -run TestLoadWithAction -v -args \
-base-url=http://localhost:8080 -duration=30s \
-replica=2 \
-action=/mnt/c/Users/kamywek10/Documents/Gitea/mtusi2026lab3/scripts/stop-one.sh \
-action-at=10s
=== RUN TestLoadWithAction
load_action_test.go:139: t= 0s ok= 380 err= 0
load_action_test.go:139: t= 1s ok= 400 err= 0
load_action_test.go:139: t= 2s ok= 400 err= 0
load_action_test.go:139: t= 3s ok= 400 err= 0
load_action_test.go:139: t= 4s ok= 400 err= 0
load_action_test.go:139: t= 5s ok= 400 err= 0
load_action_test.go:139: t= 6s ok= 400 err= 0
load_action_test.go:139: t= 7s ok= 400 err= 0
load_action_test.go:139: t= 8s ok= 400 err= 0
load_action_test.go:139: t= 9s ok= 400 err= 0
load_action_test.go:139: t=10s ok= 161 err= 0
load_action_test.go:139: t=11s ok= 259 err= 0
load_action_test.go:139: t=12s ok= 400 err= 0
load_action_test.go:139: t=13s ok= 400 err= 0
load_action_test.go:139: t=14s ok= 400 err= 0
load_action_test.go:139: t=15s ok= 400 err= 0
load_action_test.go:139: t=16s ok= 400 err= 0
load_action_test.go:139: t=17s ok= 400 err= 0
load_action_test.go:139: t=18s ok= 400 err= 0
load_action_test.go:139: t=19s ok= 400 err= 0
load_action_test.go:139: t=20s ok= 400 err= 0
load_action_test.go:139: t=21s ok= 400 err= 0
load_action_test.go:139: t=22s ok= 400 err= 0
load_action_test.go:139: t=23s ok= 400 err= 0
load_action_test.go:139: t=24s ok= 400 err= 0
load_action_test.go:139: t=25s ok= 400 err= 0
load_action_test.go:139: t=26s ok= 400 err= 0
load_action_test.go:139: t=27s ok= 400 err= 0
load_action_test.go:139: t=28s ok= 400 err= 0
load_action_test.go:139: t=29s ok= 400 err= 0
load_action_test.go:139: t=30s ok= 0 err= 0
load_action_test.go:142: action: started at 10.00s, finished at 10.52s
load_action_test.go:143: total ok=11600 errors=0, successful RPS=386.66
load_action_test.go:146: recovery time: 0s (no errors after action start)
--- PASS: TestLoadWithAction (30.34s)
PASS
ok mtusi2026-messenger/student-tests 30.348s
> docker compose ps -a api
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab3-api-1 mtusi-messenger:lab3 "/app/server" api About a minute ago Up 42 seconds (healthy) 8080/tcp
mtusi2026lab3-api-2 mtusi-messenger:lab3 "/app/server" api About a minute ago Exited (0) 23 seconds ago
> docker compose up -d --wait
[+] up 6/6
✔ Container mtusi2026lab3-redis-1 Healthy 7.0s
✔ Container mtusi2026lab3-load_balancer-1 Healthy 7.0s
✔ Container mtusi2026lab3-api-1 Healthy 7.0s
✔ Container mtusi2026lab3-postgres-1 Healthy 7.0s
✔ Container mtusi2026lab3-migrate-1 Exited 6.5s
✔ Container mtusi2026lab3-api-2 Healthy 5.8s