# 2026-11-09T13:40:58Z
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh (run 1)
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": 131, "failed_attempts": 0, "first_recovery_seconds": 1.997}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
mtusi-lab6-api-1-1 Up 47 hours (healthy)
$ docker compose start api-1 api-2
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh (run 2)
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": 128, "failed_attempts": 0, "first_recovery_seconds": 0.903}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
mtusi-lab6-api-2-1 Up 41 seconds (healthy)
$ docker compose start api-1 api-2
FAILOVER_DONE
