117 lines
5.5 KiB
Plaintext
117 lines
5.5 KiB
Plaintext
date: 2026-11-06T09:16:16Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
|
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
|
$ make load-evidence
|
|
sh scripts/load-evidence.sh
|
|
date: 2026-11-06T09:16:17Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082 network: hlpipe-lab4-forward-final-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-forward-final-20261106-' # чужие контейнеры на VM во время серии
|
|
$ client() { docker run --rm --name hlpipe-lab4-forward-final-20261106-load-client --network hlpipe-lab4-forward-final-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/forward-final-2026-11-06/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.238,
|
|
"concurrency": 64,
|
|
"successful_requests": 11768,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1428.577,
|
|
"successful_latency_ms": {
|
|
"p50": 40.163,
|
|
"p95": 100.062,
|
|
"p99": 141.558
|
|
},
|
|
"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.26% 271.2MiB / 512MiB
|
|
api-2 89.65% 307.4MiB / 512MiB
|
|
lb-1 46.78% 30.14MiB / 128MiB
|
|
load-client 60.53% 83.66MiB / 512MiB
|
|
postgres-1 157.07% 151.1MiB / 1GiB
|
|
s3-1 0.76% 69.52MiB / 512MiB
|
|
valkey-1 3.81% 13.9MiB / 128MiB
|
|
$ docker compose logs --since 2026-11-06T09:16:17Z api | request.handled: статус метод маршрут число
|
|
200 GET /health/live 1
|
|
200 GET /health/ready 22
|
|
201 POST /api/v1/auth/sessions 3
|
|
201 POST /api/v1/chats 1
|
|
201 POST /api/v1/chats/{chat_id}/messages 11768
|
|
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.229,
|
|
"concurrency": 64,
|
|
"successful_requests": 11984,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1456.338,
|
|
"successful_latency_ms": {
|
|
"p50": 37.442,
|
|
"p95": 98.948,
|
|
"p99": 134.678
|
|
},
|
|
"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 90.89% 272.5MiB / 512MiB
|
|
api-2 75.30% 310.1MiB / 512MiB
|
|
lb-1 39.94% 30.58MiB / 128MiB
|
|
load-client 46.50% 83.65MiB / 512MiB
|
|
postgres-1 121.64% 158.2MiB / 1GiB
|
|
s3-1 0.77% 69.37MiB / 512MiB
|
|
valkey-1 3.02% 13.87MiB / 128MiB
|
|
$ docker compose logs --since 2026-11-06T09:16:41Z 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 11984
|
|
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.21,
|
|
"concurrency": 64,
|
|
"successful_requests": 12555,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 1529.32,
|
|
"successful_latency_ms": {
|
|
"p50": 33.478,
|
|
"p95": 98.475,
|
|
"p99": 138.028
|
|
},
|
|
"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 100.60% 273.6MiB / 512MiB
|
|
api-2 99.12% 310.2MiB / 512MiB
|
|
lb-1 58.14% 30.39MiB / 128MiB
|
|
load-client 66.66% 83.66MiB / 512MiB
|
|
postgres-1 168.89% 167.2MiB / 1GiB
|
|
s3-1 0.80% 71.19MiB / 512MiB
|
|
valkey-1 4.31% 13.5MiB / 128MiB
|
|
$ docker compose logs --since 2026-11-06T09:17:05Z 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 12555
|
|
201 POST /api/v1/users 3
|
|
$ docker compose exec -T postgres psql -c 'SELECT count(*) FROM messages'
|
|
36448
|
|
exit_code: 0 elapsed_seconds: 57.764
|