=== 2026-10-23T17:26:38Z ===
--- состояние контейнеров ДО ---
SERVICE    STATUS
api        Up 11 minutes (healthy)
api        Up 59 seconds (healthy)
lb         Up 2 hours
minio      Up 9 minutes (healthy)
postgres   Up 11 minutes (healthy)
redis      Up 11 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": 101, "failed_attempts": 2, "first_recovery_seconds": 5.344}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.

--- состояние контейнеров ПОСЛЕ ---
SERVICE    STATUS
api        Up 12 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 10 minutes (healthy)
postgres   Up 12 minutes (healthy)
redis      Up 12 minutes (healthy)
