Files
mtusi2026lab6-fork/docs/lab5/evidence/failover_series.json
T

295 lines
6.3 KiB
JSON

{
"scenario": "stop each API replica in turn under load, restore before the next",
"load": {
"writers": 4,
"readers": 2,
"client_timeout_s": 2.0,
"write_retry": "same Idempotency-Key and body until 201"
},
"replicas": [
"3a0e06f14a63",
"4b1faad0399c"
],
"rounds": [
{
"target_instance": "3a0e06f14a63",
"mode": "stop",
"lb_up_before": [
"api1",
"api2"
],
"stop_hook_seconds": 4.47,
"lb_detect_down_seconds": 1.88,
"target_last_served_after_stop_seconds": 1.83,
"target_served_after_hook_returned": false,
"errors_during_outage": 0,
"error_kinds": [],
"error_window_seconds": 0.0,
"restore_hook_seconds": 6.72,
"lb_back_up_seconds": 0.95,
"target_back_in_rotation_seconds": 6.72,
"windows": {
"before": {
"from_s": 0,
"to_s": 5.0,
"requests": 1083,
"ok": 1083,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 216.6,
"write_ok_rps": 125.0,
"latency_ms_ok": {
"p50": 16.0,
"p95": 94.0,
"p99": 188.0
},
"instances": [
"3a0e06f14a63",
"4b1faad0399c"
]
},
"outage_first_10s": {
"from_s": 5.0,
"to_s": 15.0,
"requests": 1238,
"ok": 1238,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 123.8,
"write_ok_rps": 74.0,
"latency_ms_ok": {
"p50": 31.0,
"p95": 109.0,
"p99": 188.0
},
"instances": [
"3a0e06f14a63",
"4b1faad0399c"
]
},
"outage_rest": {
"from_s": 15.0,
"to_s": 20.0,
"requests": 531,
"ok": 531,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 106.2,
"write_ok_rps": 60.8,
"latency_ms_ok": {
"p50": 63.0,
"p95": 109.0,
"p99": 391.0
},
"instances": [
"4b1faad0399c"
]
},
"after_restore": {
"from_s": 20.0,
"to_s": 29.98,
"requests": 1831,
"ok": 1831,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 183.4,
"write_ok_rps": 110.1,
"latency_ms_ok": {
"p50": 16.0,
"p95": 94.0,
"p99": 171.0
},
"instances": [
"3a0e06f14a63",
"4b1faad0399c"
]
}
},
"lb_timeline": [
[
0.0,
[
"api1",
"api2"
]
],
[
6.88,
[
"api1"
]
],
[
20.95,
[
"api1",
"api2"
]
],
[
21.92,
[
"api1"
]
],
[
24.47,
[
"api1",
"api2"
]
]
],
"data": {
"confirmed_writes": 2768,
"stored_messages": 2768,
"missing_or_altered": 0,
"duplicate_ids": 0,
"duplicate_texts": 0,
"same_key_retries": 0,
"ok": true
}
},
{
"target_instance": "4b1faad0399c",
"mode": "stop",
"lb_up_before": [
"api1",
"api2"
],
"stop_hook_seconds": 4.55,
"lb_detect_down_seconds": 2.05,
"target_last_served_after_stop_seconds": 1.97,
"target_served_after_hook_returned": false,
"errors_during_outage": 0,
"error_kinds": [],
"error_window_seconds": 0.0,
"restore_hook_seconds": 7.06,
"lb_back_up_seconds": 2.08,
"target_back_in_rotation_seconds": 7.06,
"windows": {
"before": {
"from_s": 0,
"to_s": 5.0,
"requests": 1346,
"ok": 1346,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 269.2,
"write_ok_rps": 160.4,
"latency_ms_ok": {
"p50": 16.0,
"p95": 78.0,
"p99": 109.0
},
"instances": [
"3a0e06f14a63",
"4b1faad0399c"
]
},
"outage_first_10s": {
"from_s": 5.0,
"to_s": 15.0,
"requests": 1371,
"ok": 1371,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 137.1,
"write_ok_rps": 82.7,
"latency_ms_ok": {
"p50": 31.0,
"p95": 94.0,
"p99": 187.0
},
"instances": [
"3a0e06f14a63",
"4b1faad0399c"
]
},
"outage_rest": {
"from_s": 15.0,
"to_s": 20.0,
"requests": 564,
"ok": 564,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 112.8,
"write_ok_rps": 66.8,
"latency_ms_ok": {
"p50": 62.0,
"p95": 109.0,
"p99": 188.0
},
"instances": [
"3a0e06f14a63"
]
},
"after_restore": {
"from_s": 20.0,
"to_s": 30.38,
"requests": 1657,
"ok": 1657,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 159.7,
"write_ok_rps": 90.8,
"latency_ms_ok": {
"p50": 16.0,
"p95": 94.0,
"p99": 188.0
},
"instances": [
"3a0e06f14a63",
"4b1faad0399c"
]
}
},
"lb_timeline": [
[
0.0,
[
"api1",
"api2"
]
],
[
7.05,
[
"api2"
]
],
[
22.08,
[
"api1",
"api2"
]
],
[
23.05,
[
"api2"
]
],
[
25.51,
[
"api1",
"api2"
]
]
],
"data": {
"confirmed_writes": 2905,
"stored_messages": 2905,
"missing_or_altered": 0,
"duplicate_ids": 0,
"duplicate_texts": 0,
"same_key_retries": 0,
"ok": true
}
}
],
"pass": true
}