forked from mtusi2026/mtusi2026lab3
47 lines
1.8 KiB
JSON
47 lines
1.8 KiB
JSON
{
|
||
"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"
|
||
}
|
||
]
|
||
}
|