# Лабораторная 3 — тест отказа (failover), прогон 2 (целевая реплика отличается от прогона 1) # Дата: 2026-10-07 # Commit: a34c6e8 # Хост: Windows 10, Docker Desktop (бэкенд WSL2) # Команда: make test-failover ACTION_SCRIPT=scripts/stop-one.cmd # Пороги: first_recovery_seconds <= 10; observed_instances_before >= 2 # Цель: доказать, что остановить можно любую реплику, а не только первую python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.cmd" --base-url "http://localhost:8080" Executing explicit failover hook; hook output suppressed to avoid leaking secrets. {"observed_instances_before": 2, "successful_writes": 92, "failed_attempts": 2, "first_recovery_seconds": 2.487} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.