Implement lab3 grade 4: balanced API replicas, shared idempotency and failure tests

This commit is contained in:
2026-11-02 20:54:35 +03:00
parent 0ab3a341aa
commit 5332cda400
55 changed files with 102293 additions and 19 deletions
+4
View File
@@ -0,0 +1,4 @@
$ python tests/resilience.py --mode failover --base-url http://127.0.0.1:8080 --action-script scripts/stop-one.cmd
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 112, "failed_attempts": 2, "first_recovery_seconds": 1.852}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.