Files
mtusi2026lab3/evidence/failover-metrics.txt
T
2026-10-15 00:24:46 +03:00

26 lines
2.3 KiB
Plaintext

python student-tests/failover_metrics.py
api replicas: ['4e5560c6d072', '7740e49a1d8c']; load: 4 writers without pauses + 1 reader, client timeout 2 s, retry with the same Idempotency-Key; 3 s before and 10 s after the failure
--- stop 4e5560c6d072 ...
docker stop: 4.11 s; HAProxy excluded it after 0.83 s; errors: 0 {}, last error ended 0.0 s after the failure
write RPS before 231.0 -> after 112.4; p95 after 78.0 ms, max 282.0 ms; answers from the stopped replica after stop: 0
confirmed 1817, in history 1817, lost 0, duplicates 0; back in the balancer 4.01 s after docker start
--- kill 4e5560c6d072 ...
docker kill: 0.75 s; HAProxy excluded it after 0.2 s; errors: 4 {'502': 4}, last error ended 0.11 s after the failure
write RPS before 184.7 -> after 98.0; p95 after 93.0 ms, max 156.0 ms; answers from the stopped replica after stop: 0
confirmed 1536, in history 1536, lost 0, duplicates 0; back in the balancer 4.01 s after docker start
--- stop 7740e49a1d8c ...
docker stop: 4.24 s; HAProxy excluded it after 1.27 s; errors: 0 {}, last error ended 0.0 s after the failure
write RPS before 204.0 -> after 110.7; p95 after 78.0 ms, max 125.0 ms; answers from the stopped replica after stop: 0
confirmed 1719, in history 1719, lost 0, duplicates 0; back in the balancer 4.91 s after docker start
--- kill 7740e49a1d8c ...
docker kill: 0.83 s; HAProxy excluded it after 0.17 s; errors: 2 {'502': 2}, last error ended 0.11 s after the failure
write RPS before 151.7 -> after 103.7; p95 after 78.0 ms, max 1031.0 ms; answers from the stopped replica after stop: 0
confirmed 1492, in history 1492, lost 0, duplicates 0; back in the balancer 4.17 s after docker start
replica mode cmd,s lb_out,s errors errors_end,s rps_before rps_after p95_after,ms rejoin,s
4e5560c6d072 stop 4.11 0.83 0 0.0 231.0 112.4 78.0 4.01
4e5560c6d072 kill 0.75 0.2 4 0.11 184.7 98.0 93.0 4.01
7740e49a1d8c stop 4.24 1.27 0 0.0 204.0 110.7 78.0 4.91
7740e49a1d8c kill 0.83 0.17 2 0.11 151.7 103.7 78.0 4.17
PASS: every replica was stopped (stop, kill) and restored; no lost or duplicated messages; saved evidence/failover-metrics.json