лабораторная работа 7

This commit is contained in:
2026-11-18 01:02:09 +03:00
parent 20afc2c790
commit b035b50dbd
298 changed files with 28830 additions and 109 deletions
+6
View File
@@ -0,0 +1,6 @@
# make test-failover: отказ одной API-реплики по HTTPS
# python tests/resilience.py --mode failover --action-script C:\Users\mrend\Desktop\VP_lab7\mtusi2026lab7-fork\scripts\stop-one.cmd --base-url https://localhost:8443 --ca-file C:\Users\mrend\Desktop\VP_lab7\mtusi2026lab7-fork\secrets\pki\ca.crt
# 2026-11-17T23:59:38.0003701+03:00
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 111, "failed_attempts": 0, "first_recovery_seconds": 4.984}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.