ЛР 3 — БПИ2302 — Щербацевич — на 5

This commit is contained in:
2026-11-11 23:55:42 +03:00
parent 0ab3a341aa
commit 7aa4ea541b
76 changed files with 4627 additions and 34 deletions
+15
View File
@@ -0,0 +1,15 @@
date: 2026-10-30T16:04:40Z
command: python student-tests/failover.py
# ACTION_SCRIPT=scripts/stop-one.cmd TARGET_INSTANCE_ID from X-Instance-Id
first run (api-1 stopped, api-2 continued):
{"observed_instances_before": 2, "successful_writes": 91, "failed_attempts": 2, "first_recovery_seconds": 2.464}
PASS: failover preserved confirmed data and existing session.
after restore api-1:
second run:
{"observed_instances_before": 2, "successful_writes": 90, "failed_attempts": 2, "first_recovery_seconds": 2.74}
PASS: failover preserved confirmed data and existing session.
docker compose ps after first failover: api-1 Exited, api-2 healthy.
Manual stop of the other replica: evidence/sequential_stop_api2.json