ЛР3 на 4: HAProxy, реплики API, Idempotency-Key и failover.

Общие Redis-сессии и Postgres, X-Instance-Id, REPORT и DEFENSE.
This commit is contained in:
2026-12-01 21:54:37 +03:00
parent 51dae8c44a
commit 41af01ecad
45 changed files with 3519 additions and 692 deletions
+5
View File
@@ -0,0 +1,5 @@
=== test-failover 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": 116, "failed_attempts": 1, "first_recovery_seconds": 2.779}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.