Files
mtusi2026lab6-fork/docs/lab4/evidence/sandbox/failover_series.json
T

269 lines
5.9 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": [
"api-1",
"api-2"
],
"rounds": [
{
"target_instance": "api-1",
"mode": "stop",
"lb_up_before": [
"api-1",
"api-2"
],
"stop_hook_seconds": 5.0,
"lb_detect_down_seconds": 1.3,
"target_last_served_after_stop_seconds": 1.31,
"target_served_after_hook_returned": false,
"errors_during_outage": 0,
"error_kinds": [],
"error_window_seconds": 0.0,
"restore_hook_seconds": 1.86,
"lb_back_up_seconds": 2.91,
"target_back_in_rotation_seconds": 2.87,
"windows": {
"before": {
"from_s": 0,
"to_s": 5.02,
"requests": 1597,
"ok": 1597,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 318.1,
"write_ok_rps": 187.8,
"latency_ms_ok": {
"p50": 16.7,
"p95": 38.6,
"p99": 50.6
},
"instances": [
"api-1",
"api-2"
]
},
"outage_first_10s": {
"from_s": 5.02,
"to_s": 15.02,
"requests": 2392,
"ok": 2392,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 239.2,
"write_ok_rps": 140.9,
"latency_ms_ok": {
"p50": 24.4,
"p95": 39.5,
"p99": 48.8
},
"instances": [
"api-1",
"api-2"
]
},
"outage_rest": {
"from_s": 15.02,
"to_s": 20.02,
"requests": 1057,
"ok": 1057,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 211.4,
"write_ok_rps": 124.2,
"latency_ms_ok": {
"p50": 27.6,
"p95": 44.5,
"p99": 54.8
},
"instances": [
"api-2"
]
},
"after_restore": {
"from_s": 20.02,
"to_s": 26.15,
"requests": 1671,
"ok": 1671,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 272.8,
"write_ok_rps": 160.7,
"latency_ms_ok": {
"p50": 21.2,
"p95": 39.0,
"p99": 49.4
},
"instances": [
"api-1",
"api-2"
]
}
},
"lb_timeline": [
[
0.02,
[
"api-1",
"api-2"
]
],
[
6.32,
[
"api-2"
]
],
[
22.93,
[
"api-1",
"api-2"
]
]
],
"data": {
"confirmed_writes": 3957,
"stored_messages": 3957,
"missing_or_altered": 0,
"duplicate_ids": 0,
"duplicate_texts": 0,
"same_key_retries": 0,
"ok": true
}
},
{
"target_instance": "api-2",
"mode": "stop",
"lb_up_before": [
"api-1",
"api-2"
],
"stop_hook_seconds": 5.23,
"lb_detect_down_seconds": 1.53,
"target_last_served_after_stop_seconds": 1.47,
"target_served_after_hook_returned": false,
"errors_during_outage": 0,
"error_kinds": [],
"error_window_seconds": 0.0,
"restore_hook_seconds": 1.45,
"lb_back_up_seconds": 3.05,
"target_back_in_rotation_seconds": 3.05,
"windows": {
"before": {
"from_s": 0,
"to_s": 5.01,
"requests": 1416,
"ok": 1416,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 282.9,
"write_ok_rps": 164.8,
"latency_ms_ok": {
"p50": 19.4,
"p95": 41.3,
"p99": 53.4
},
"instances": [
"api-1",
"api-2"
]
},
"outage_first_10s": {
"from_s": 5.01,
"to_s": 15.01,
"requests": 2431,
"ok": 2431,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 243.1,
"write_ok_rps": 142.8,
"latency_ms_ok": {
"p50": 24.8,
"p95": 39.6,
"p99": 46.3
},
"instances": [
"api-1",
"api-2"
]
},
"outage_rest": {
"from_s": 15.01,
"to_s": 20.01,
"requests": 1154,
"ok": 1154,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 230.7,
"write_ok_rps": 136.0,
"latency_ms_ok": {
"p50": 25.4,
"p95": 39.9,
"p99": 46.5
},
"instances": [
"api-1"
]
},
"after_restore": {
"from_s": 20.01,
"to_s": 26.3,
"requests": 1851,
"ok": 1851,
"errors": 0,
"error_ratio": 0.0,
"ok_rps": 293.9,
"write_ok_rps": 172.6,
"latency_ms_ok": {
"p50": 19.8,
"p95": 35.8,
"p99": 42.1
},
"instances": [
"api-1",
"api-2"
]
}
},
"lb_timeline": [
[
0.01,
[
"api-1",
"api-2"
]
],
[
6.53,
[
"api-1"
]
],
[
23.06,
[
"api-1",
"api-2"
]
]
],
"data": {
"confirmed_writes": 4020,
"stored_messages": 4020,
"missing_or_altered": 0,
"duplicate_ids": 0,
"duplicate_texts": 0,
"same_key_retries": 0,
"ok": true
}
}
],
"pass": true
}