# Lab3 level 4 evidence — 2026-11-03 Environment: Windows host, Docker Desktop Engine 28.0.1, Compose deployment on one machine, two API replicas limited to 0.75 CPU / 768 MiB each. All requests used Nginx at `http://localhost:8080`; API ports were not published. ## Sequential failover Command: ```text python student_tests/failover_each.py --action-script scripts/stop-one.cmd \ --restore-script scripts/restore-api.cmd --window 15 \ --output evidence/failover-each-2026-11-03.json ``` | Target instance | Successful reads | Successful writes | Errors | Successful RPS | First recovery | | --- | ---: | ---: | ---: | ---: | ---: | | `170796a1dad0` | 81 | 82 | 0 | 10.839 | 1.306 s | | `feb12e05fd43` | 75 | 76 | 0 | 10.014 | 2.672 s | The stopped replica was restored and observed again before the next target was stopped. Confirmed messages remained readable after both failures. ## Shared idempotency `python student_tests/idempotency_concurrent.py` passed: 32 concurrent requests with one key used two API instance IDs and created exactly one message. ## Sequential replacement under load Command: ```text python student_tests/rolling_update.py --action-script scripts/rolling-update.cmd \ --duration 180 --concurrency 4 \ --output evidence/rolling-update-2026-11-03.json ``` - Rolling action: 115.800 s. - Four instance IDs observed: two original and two replacements. - Successful writes: 12,147; failed attempts: 177. - Successful RPS: 67.439; error ratio: 1.4362%. - Successful latency: p50 37.729 ms, p95 189.374 ms, p99 215.986 ms. This is a closed-loop single-host experiment. It includes coordinated omission and client overhead; latency percentiles cover successes only. Brief failures are retained in the result rather than hidden by client retries. PostgreSQL, Nginx and the Docker host remain single points of failure.