# failover: public failover test for every replica, file downloaded via the other one (make test-failover) # date: 2026-11-01 20:43:39, commit: 470d9d6 + uncommitted changes # command: python.exe student-tests/run_failover.py # exit code: 0, 42.0 s hook: scripts\stop-one.cmd; api replicas: ['171a473b0d28', '1db2fedff78f'] === run 1: api containers before SERVICE CONTAINER ID STATUS api 171a473b0d28 Up 41 seconds (healthy) api 1db2fedff78f Up 41 seconds (healthy) Executing explicit failover hook; hook output suppressed to avoid leaking secrets. {"observed_instances_before": 2, "successful_writes": 127, "failed_attempts": 0, "first_recovery_seconds": 4.75} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. api containers after SERVICE CONTAINER ID STATUS api 171a473b0d28 Exited (0) 11 seconds ago api 1db2fedff78f Up 58 seconds (healthy) the hook stopped 171a473b0d28 (X-Instance-Id of that replica = container ID); other api containers kept running, postgres/redis/lb were not touched restored: docker start 171a473b0d28 -> healthy and back in HAProxy === run 2: api containers before SERVICE CONTAINER ID STATUS api 171a473b0d28 Up 2 seconds (healthy) api 1db2fedff78f Up About a minute (healthy) Executing explicit failover hook; hook output suppressed to avoid leaking secrets. {"observed_instances_before": 2, "successful_writes": 126, "failed_attempts": 0, "first_recovery_seconds": 4.578} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. api containers after SERVICE CONTAINER ID STATUS api 171a473b0d28 Up 19 seconds (healthy) api 1db2fedff78f Exited (0) 11 seconds ago the hook stopped 1db2fedff78f (X-Instance-Id of that replica = container ID); other api containers kept running, postgres/redis/lb were not touched restored: docker start 1db2fedff78f -> healthy and back in HAProxy PASS: public failover test passed 2 times; every api replica was stopped once and restored