=== 2026-10-23T17:25:16Z ===
--- состояние контейнеров ДО ---
SERVICE    STATUS
api        Up 10 minutes (healthy)
api        Up 9 minutes (healthy)
lb         Up 2 hours
minio      Up 8 minutes (healthy)
postgres   Up 10 minutes (healthy)
redis      Up 10 minutes (healthy)
--- LB видит обе реплики ---
X-Instance-Id: 54992a38015c
X-Instance-Id: c0f8bc0ada76

--- запуск failover-хука через .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": 63, "failed_attempts": 4, "first_recovery_seconds": 5.481}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.

--- состояние контейнеров ПОСЛЕ (одна api должна быть Exited) ---
SERVICE    STATUS
api        Up 10 minutes (healthy)
api        Exited (0) 11 seconds ago
lb         Up 2 hours
mc-init    Exited (0) About a minute ago
migrate    Exited (0) About a minute ago
minio      Up 8 minutes (healthy)
postgres   Up 10 minutes (healthy)
redis      Up 10 minutes (healthy)
