ЛР 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
+46
View File
@@ -0,0 +1,46 @@
{
"date": "2026-10-30T16:06:00Z",
"note": "Поочерёдный останов каждой API-реплики. Окно публичного failover — 15 с (tests/resilience.py). Окно ручного останова api-2 — 12 с. successful_rps = успешные POST / длительность окна. Closed-loop клиент.",
"replicas": {
"mtusi-lab3-api-1": "f383126bd2be",
"mtusi-lab3-api-2": "46e274e33049"
},
"stops": [
{
"target": "mtusi-lab3-api-1",
"instance_id": "from X-Instance-Id via stop-one.cmd",
"command": "python student-tests/failover.py",
"window_seconds": 15,
"successful_writes": 91,
"failed_attempts": 2,
"error_ratio": 0.0215,
"successful_rps": 6.067,
"first_recovery_seconds": 2.464,
"ps_after": "api-1 Exited, api-2 healthy"
},
{
"target": "mtusi-lab3-api-1",
"command": "restore then python student-tests/failover.py",
"window_seconds": 15,
"successful_writes": 90,
"failed_attempts": 2,
"error_ratio": 0.0217,
"successful_rps": 6.0,
"first_recovery_seconds": 2.74,
"note": "Повтор публичного failover после restore; снова остановлен контейнер, который обслужил первое сообщение."
},
{
"target": "mtusi-lab3-api-2",
"instance_id": "46e274e33049",
"command": "docker stop -t 5 mtusi-lab3-api-2 under POST load",
"window_seconds": 12,
"successful_writes": 46,
"failed_attempts": 1,
"error_ratio": 0.0213,
"successful_rps": 3.833,
"first_recovery_seconds": 0.031,
"instances_after_stop": ["f383126bd2be"],
"ps_after": "api-2 Exited, api-1 healthy"
}
]
}