# failover: public failover test for every replica, file downloaded via the other one (make test-failover) # date: 2026-11-07 19:45:00, commit: 20afc2c + uncommitted changes # command: python.exe student-tests/run_failover.py # exit code: 0, 46.3 s hook: scripts\stop-one.cmd; api replicas: ['0c7893e1043d', 'b7f37f051ba1'] === run 1: api containers before SERVICE CONTAINER ID STATUS api b7f37f051ba1 Up 49 seconds (healthy) api 0c7893e1043d Up 49 seconds (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": 5.453} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. api containers after SERVICE CONTAINER ID STATUS api b7f37f051ba1 Up About a minute (healthy) api 0c7893e1043d Exited (0) 11 seconds ago the hook stopped 0c7893e1043d (the replica behind TARGET_INSTANCE_ID, mapped from its alias); other api containers kept running, postgres/redis/lb were not touched restored: docker start 0c7893e1043d -> healthy and back in HAProxy === run 2: api containers before SERVICE CONTAINER ID STATUS api b7f37f051ba1 Up About a minute (healthy) api 0c7893e1043d Up 5 seconds (healthy) Executing explicit failover hook; hook output suppressed to avoid leaking secrets. {"observed_instances_before": 2, "successful_writes": 125, "failed_attempts": 0, "first_recovery_seconds": 5.313} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. api containers after SERVICE CONTAINER ID STATUS api b7f37f051ba1 Exited (0) 11 seconds ago api 0c7893e1043d Up 23 seconds (healthy) the hook stopped b7f37f051ba1 (the replica behind TARGET_INSTANCE_ID, mapped from its alias); other api containers kept running, postgres/redis/lb were not touched restored: docker start b7f37f051ba1 -> healthy and back in HAProxy PASS: public failover test passed 2 times; every api replica was stopped once and restored