thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ make check python3 scripts/check_contract.py PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ make validate python3 scripts/validate_openapi.py PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested. thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ docker compose --env-file .env config --quiet thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ docker compose --env-file .env up --build --scale api=2 ^Ccanceled thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ docker compose --env-file .env up --build --scale api=2 [+] Running 7/7 ✔ load_balancer Pulled 26.4s ✔ 4f4fb700ef54 Already exists 0.1s ✔ 9824c27679d3 Download complete 11.0s ✔ 659a606929e4 Download complete 5.8s ✔ 88a6cca0d216 Download complete 7.5s ✔ e7c528653130 Download complete 6.0s ✔ 344cf3eba5e5 Download complete 13.7s [+] Building 105.8s (24/24) FINISHED docker:default => [migrate internal] load build definition from Dockerfile 0.4s => => transferring dockerfile: 567B 0.3s => [api internal] load metadata for docker.io/library/python:3.12.11-slim-bookworm 42.2s => [migrate internal] load .dockerignore 0.1s => => transferring context: 216B thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ make test python3 tests/smoke.py --base-url "http://localhost:8080" PASS: lab3 public API scenario; infrastructure and grading evidence remain separate. thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ python3 tests/grade4_checks.py {"distinct_instances": ["21d7ab63f9dc", "3c995d3af7ef"], "parallel_requests": 12, "distinct_message_ids": 1, "changed_body_status": 409, "missing_key_status": 400, "invalid_key_status": 400} PASS: concurrent cross-replica idempotency, key validation, and instance visibility thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ make test-persistence ACTION_SCRIPT=./scripts/restart.sh python3 tests/resilience.py --mode persistence --action-script "./scripts/restart.sh" --base-url "http://localhost:8080" Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ make test-failover ACTION_SCRIPT=./scripts/stop-one.sh python3 tests/resilience.py --mode failover --action-script "./scripts/stop-one.sh" --base-url "http://localhost:8080" Executing explicit failover hook; hook output suppressed to avoid leaking secrets. {"observed_instances_before": 2, "successful_writes": 73, "failed_attempts": 1, "first_recovery_seconds": 3.223} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ (нагрузочная проверка сама по себе, без перезапусков контейнеров) thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ make load python3 tests/load.py --base-url "http://localhost:8080" { "lab": 3, "workload": "closed-loop POST messages; no automatic retries", "requested_duration_seconds": 30, "elapsed_seconds": 30.088, "concurrency": 4, "successful_requests": 1528, "failed_requests": 0, "error_ratio": 0.0, "successful_rps": 50.785, "successful_latency_ms": { "p50": 64.545, "p95": 192.316, "p99": 258.186 }, "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." } thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ bash scripts/rolling-restart.sh [+] Running 6/6 ✔ Container mtusi-lab3-redis-1 Healthy 1.8s ✔ Container mtusi-lab3-postgres-1 Healthy 0.9s ✔ Container mtusi-lab3-migrate-1 Exited 3.8s ✔ Container mtusi-lab3-api-3 Running 0.0s ✔ Container mtusi-lab3-api-4 Running 0.0s ✔ Container mtusi-lab3-api-5 Started 4.1s [+] Running 6/6 ✔ Container mtusi-lab3-redis-1 Healthy 2.1s ✔ Container mtusi-lab3-postgres-1 Healthy 1.3s ✔ Container mtusi-lab3-migrate-1 Exited 5.3s ✔ Container mtusi-lab3-api-4 Running 0.0s ✔ Container mtusi-lab3-api-5 Running 0.0s ✔ Container mtusi-lab3-api-6 Started 6.0s [+] Running 6/6 ✔ Container mtusi-lab3-redis-1 Healthy 2.1s ✔ Container mtusi-lab3-postgres-1 Healthy 1.2s ✔ Container mtusi-lab3-migrate-1 Exited 4.7s ✔ Container mtusi-lab3-api-5 Running 0.0s ✔ Container mtusi-lab3-api-6 Running 0.0s ✔ Container mtusi-lab3-api-7 Started 5.3s [+] Running 6/6 ✔ Container mtusi-lab3-redis-1 Healthy 2.4s ✔ Container mtusi-lab3-postgres-1 Healthy 1.4s ✔ Container mtusi-lab3-migrate-1 Exited 4.3s ✔ Container mtusi-lab3-api-5 Running 0.0s ✔ Container mtusi-lab3-api-6 Running 0.0s ✔ Container mtusi-lab3-api-7 Removed 0.6s PASS: rolling restart completed with 2 healthy API replicas (нагрузочное тестирование во время ролинг рестарт проверки) thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$ make load python3 tests/load.py --base-url "http://localhost:8080" { "lab": 3, "workload": "closed-loop POST messages; no automatic retries", "requested_duration_seconds": 30, "elapsed_seconds": 30.128, "concurrency": 4, "successful_requests": 1839, "failed_requests": 9, "error_ratio": 0.00487, "successful_rps": 61.039, "successful_latency_ms": { "p50": 33.306, "p95": 97.359, "p99": 163.583 }, "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." } thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab3/mtusi2026lab3-fork$