116 lines
5.4 KiB
Plaintext
116 lines
5.4 KiB
Plaintext
date: 2026-11-05T23:25:41Z commit: cf41f7c64dcf1dea6da0643f5793bd2e5dd1f03e
|
|
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-grades-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/sqlalchemy-2026-11-06/grade4", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
|
$ sh scripts/load-evidence.sh
|
|
date: 2026-11-05T23:25:42Z commit: cf41f7c64dcf1dea6da0643f5793bd2e5dd1f03e network: hlpipe-lab4-grades-20261106_edge
|
|
# make load-evidence (scripts/load-evidence.sh): закрытый контур tests/load.py, 64 потока, 8 с, все записи
|
|
# прогона в один новый чат, 3 повтора с паузой 15 с; клиент — одноразовый контейнер в сети <проект>_edge
|
|
# стенда (2 CPU, 512 MiB, базовый образ API по digest, tests/, contracts/ и lab.json только для чтения,
|
|
# tcp_tw_reuse=1), адрес http://lb:8080. На 4-й секунде — docker stats; после прогона — request.handled реплик.
|
|
$ docker ps --format '{{.Names}}' | grep -v '^hlpipe-lab4-grades-20261106-' # чужие контейнеры на VM во время серии
|
|
$ client() { docker run --rm --name hlpipe-lab4-grades-20261106-load-client --network hlpipe-lab4-grades-20261106_edge --cpus 2 --memory 512m --sysctl net.ipv4.tcp_tw_reuse=1 -v "$PWD/tests:/w/tests:ro" -v "$PWD/contracts:/w/contracts:ro" -v "$PWD/lab.json:/w/lab.json:ro" -v "$PWD/evidence/sqlalchemy-2026-11-06/grade4/load:/out" python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d python /w/tests/load.py "$@"; }
|
|
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run1.json
|
|
exit 0
|
|
{
|
|
"lab": 4,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 8.0,
|
|
"elapsed_seconds": 8.217,
|
|
"concurrency": 64,
|
|
"successful_requests": 12080,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1470.074,
|
|
"successful_latency_ms": {
|
|
"p50": 39.79,
|
|
"p95": 93.452,
|
|
"p99": 151.516
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
$ docker stats --no-stream # 4-я секунда прогона: контейнер CPU% память
|
|
api-1 89.96% 303.4MiB / 512MiB
|
|
api-2 89.30% 304.2MiB / 512MiB
|
|
lb-1 49.87% 28.32MiB / 128MiB
|
|
load-client 57.80% 83.67MiB / 512MiB
|
|
postgres-1 158.15% 152.3MiB / 1GiB
|
|
s3-1 3.54% 305.3MiB / 512MiB
|
|
valkey-1 4.45% 14.4MiB / 128MiB
|
|
$ docker compose logs --since 2026-11-05T23:25:42Z api | request.handled: статус метод маршрут число
|
|
200 GET /health/live 1
|
|
200 GET /health/ready 23
|
|
201 POST /api/v1/auth/sessions 3
|
|
201 POST /api/v1/chats 1
|
|
201 POST /api/v1/chats/{chat_id}/messages 12080
|
|
201 POST /api/v1/users 3
|
|
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run2.json
|
|
exit 0
|
|
{
|
|
"lab": 4,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 8.0,
|
|
"elapsed_seconds": 8.231,
|
|
"concurrency": 64,
|
|
"successful_requests": 12586,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1529.186,
|
|
"successful_latency_ms": {
|
|
"p50": 35.17,
|
|
"p95": 95.152,
|
|
"p99": 125.557
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
$ docker stats --no-stream # 4-я секунда прогона: контейнер CPU% память
|
|
api-1 91.79% 304.9MiB / 512MiB
|
|
api-2 93.46% 305.7MiB / 512MiB
|
|
lb-1 54.02% 35.44MiB / 128MiB
|
|
load-client 62.65% 83.86MiB / 512MiB
|
|
postgres-1 161.36% 162.3MiB / 1GiB
|
|
s3-1 3.47% 310.1MiB / 512MiB
|
|
valkey-1 3.13% 13.96MiB / 128MiB
|
|
$ docker compose logs --since 2026-11-05T23:26:06Z api | request.handled: статус метод маршрут число
|
|
200 GET /health/live 1
|
|
200 GET /health/ready 24
|
|
201 POST /api/v1/auth/sessions 3
|
|
201 POST /api/v1/chats 1
|
|
201 POST /api/v1/chats/{chat_id}/messages 12586
|
|
201 POST /api/v1/users 3
|
|
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run3.json
|
|
exit 0
|
|
{
|
|
"lab": 4,
|
|
"workload": "closed-loop POST messages; no automatic retries",
|
|
"requested_duration_seconds": 8.0,
|
|
"elapsed_seconds": 8.161,
|
|
"concurrency": 64,
|
|
"successful_requests": 12644,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1549.329,
|
|
"successful_latency_ms": {
|
|
"p50": 32.996,
|
|
"p95": 95.973,
|
|
"p99": 132.35
|
|
},
|
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
|
}
|
|
$ docker stats --no-stream # 4-я секунда прогона: контейнер CPU% память
|
|
api-1 93.75% 305.2MiB / 512MiB
|
|
api-2 93.88% 306MiB / 512MiB
|
|
lb-1 52.91% 35.45MiB / 128MiB
|
|
load-client 63.78% 83.7MiB / 512MiB
|
|
postgres-1 178.75% 169MiB / 1GiB
|
|
s3-1 0.09% 311.9MiB / 512MiB
|
|
valkey-1 4.11% 13.28MiB / 128MiB
|
|
$ docker compose logs --since 2026-11-05T23:26:30Z api | request.handled: статус метод маршрут число
|
|
200 GET /health/live 1
|
|
200 GET /health/ready 23
|
|
201 POST /api/v1/auth/sessions 3
|
|
201 POST /api/v1/chats 1
|
|
201 POST /api/v1/chats/{chat_id}/messages 12644
|
|
201 POST /api/v1/users 3
|
|
$ docker compose exec -T postgres psql -c 'SELECT count(*) FROM messages'
|
|
37474
|
|
exit_code: 0 elapsed_seconds: 57.752
|