Добавить две реплики API за HAProxy и проверку отказа одной из них.

Общие сессии и ключ идемпотентности позволяют продолжать чтение и запись, когда одна реплика остановлена.
This commit is contained in:
2026-11-06 17:31:40 +03:00
parent 4303783848
commit d065cffb4e
31 changed files with 980 additions and 109 deletions
+4
View File
@@ -0,0 +1,4 @@
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": 120, "failed_attempts": 1, "first_recovery_seconds": 2.435}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.