forked from mtusi2026/mtusi2026lab3
295 lines
6.3 KiB
JSON
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": [
|
|
"a21409fffeec",
|
|
"c4c5ae5b0949"
|
|
],
|
|
"rounds": [
|
|
{
|
|
"target_instance": "a21409fffeec",
|
|
"mode": "kill",
|
|
"lb_up_before": [
|
|
"api1",
|
|
"api2"
|
|
],
|
|
"stop_hook_seconds": 1.01,
|
|
"lb_detect_down_seconds": 2.53,
|
|
"target_last_served_after_stop_seconds": 0.5,
|
|
"target_served_after_hook_returned": false,
|
|
"errors_during_outage": 0,
|
|
"error_kinds": [],
|
|
"error_window_seconds": 0.0,
|
|
"restore_hook_seconds": 7.09,
|
|
"lb_back_up_seconds": 1.45,
|
|
"target_back_in_rotation_seconds": 7.06,
|
|
"windows": {
|
|
"before": {
|
|
"from_s": 0,
|
|
"to_s": 5.0,
|
|
"requests": 1178,
|
|
"ok": 1178,
|
|
"errors": 0,
|
|
"error_ratio": 0.0,
|
|
"ok_rps": 235.6,
|
|
"write_ok_rps": 137.8,
|
|
"latency_ms_ok": {
|
|
"p50": 16.0,
|
|
"p95": 78.0,
|
|
"p99": 110.0
|
|
},
|
|
"instances": [
|
|
"a21409fffeec",
|
|
"c4c5ae5b0949"
|
|
]
|
|
},
|
|
"outage_first_10s": {
|
|
"from_s": 5.0,
|
|
"to_s": 15.0,
|
|
"requests": 761,
|
|
"ok": 761,
|
|
"errors": 0,
|
|
"error_ratio": 0.0,
|
|
"ok_rps": 76.1,
|
|
"write_ok_rps": 46.0,
|
|
"latency_ms_ok": {
|
|
"p50": 78.0,
|
|
"p95": 187.0,
|
|
"p99": 1015.0
|
|
},
|
|
"instances": [
|
|
"a21409fffeec",
|
|
"c4c5ae5b0949"
|
|
]
|
|
},
|
|
"outage_rest": {
|
|
"from_s": 15.0,
|
|
"to_s": 20.01,
|
|
"requests": 454,
|
|
"ok": 454,
|
|
"errors": 0,
|
|
"error_ratio": 0.0,
|
|
"ok_rps": 90.5,
|
|
"write_ok_rps": 53.8,
|
|
"latency_ms_ok": {
|
|
"p50": 78.0,
|
|
"p95": 110.0,
|
|
"p99": 203.0
|
|
},
|
|
"instances": [
|
|
"c4c5ae5b0949"
|
|
]
|
|
},
|
|
"after_restore": {
|
|
"from_s": 20.01,
|
|
"to_s": 30.44,
|
|
"requests": 1527,
|
|
"ok": 1527,
|
|
"errors": 0,
|
|
"error_ratio": 0.0,
|
|
"ok_rps": 146.5,
|
|
"write_ok_rps": 85.9,
|
|
"latency_ms_ok": {
|
|
"p50": 16.0,
|
|
"p95": 110.0,
|
|
"p99": 188.0
|
|
},
|
|
"instances": [
|
|
"a21409fffeec",
|
|
"c4c5ae5b0949"
|
|
]
|
|
}
|
|
},
|
|
"lb_timeline": [
|
|
[
|
|
0.03,
|
|
[
|
|
"api1",
|
|
"api2"
|
|
]
|
|
],
|
|
[
|
|
7.53,
|
|
[
|
|
"api1"
|
|
]
|
|
],
|
|
[
|
|
21.47,
|
|
[
|
|
"api1",
|
|
"api2"
|
|
]
|
|
],
|
|
[
|
|
21.94,
|
|
[
|
|
"api1"
|
|
]
|
|
],
|
|
[
|
|
24.48,
|
|
[
|
|
"api1",
|
|
"api2"
|
|
]
|
|
]
|
|
],
|
|
"data": {
|
|
"confirmed_writes": 2318,
|
|
"stored_messages": 2318,
|
|
"missing_or_altered": 0,
|
|
"duplicate_ids": 0,
|
|
"duplicate_texts": 0,
|
|
"same_key_retries": 0,
|
|
"ok": true
|
|
}
|
|
},
|
|
{
|
|
"target_instance": "c4c5ae5b0949",
|
|
"mode": "kill",
|
|
"lb_up_before": [
|
|
"api1",
|
|
"api2"
|
|
],
|
|
"stop_hook_seconds": 0.92,
|
|
"lb_detect_down_seconds": 2.38,
|
|
"target_last_served_after_stop_seconds": 0.44,
|
|
"target_served_after_hook_returned": false,
|
|
"errors_during_outage": 0,
|
|
"error_kinds": [],
|
|
"error_window_seconds": 0.0,
|
|
"restore_hook_seconds": 7.25,
|
|
"lb_back_up_seconds": 1.45,
|
|
"target_back_in_rotation_seconds": 7.19,
|
|
"windows": {
|
|
"before": {
|
|
"from_s": 0,
|
|
"to_s": 5.02,
|
|
"requests": 1355,
|
|
"ok": 1355,
|
|
"errors": 0,
|
|
"error_ratio": 0.0,
|
|
"ok_rps": 270.1,
|
|
"write_ok_rps": 156.9,
|
|
"latency_ms_ok": {
|
|
"p50": 16.0,
|
|
"p95": 78.0,
|
|
"p99": 109.0
|
|
},
|
|
"instances": [
|
|
"a21409fffeec",
|
|
"c4c5ae5b0949"
|
|
]
|
|
},
|
|
"outage_first_10s": {
|
|
"from_s": 5.02,
|
|
"to_s": 15.02,
|
|
"requests": 783,
|
|
"ok": 783,
|
|
"errors": 0,
|
|
"error_ratio": 0.0,
|
|
"ok_rps": 78.3,
|
|
"write_ok_rps": 47.5,
|
|
"latency_ms_ok": {
|
|
"p50": 78.0,
|
|
"p95": 187.0,
|
|
"p99": 1016.0
|
|
},
|
|
"instances": [
|
|
"a21409fffeec",
|
|
"c4c5ae5b0949"
|
|
]
|
|
},
|
|
"outage_rest": {
|
|
"from_s": 15.02,
|
|
"to_s": 20.02,
|
|
"requests": 439,
|
|
"ok": 439,
|
|
"errors": 0,
|
|
"error_ratio": 0.0,
|
|
"ok_rps": 87.8,
|
|
"write_ok_rps": 52.4,
|
|
"latency_ms_ok": {
|
|
"p50": 78.0,
|
|
"p95": 125.0,
|
|
"p99": 203.0
|
|
},
|
|
"instances": [
|
|
"a21409fffeec"
|
|
]
|
|
},
|
|
"after_restore": {
|
|
"from_s": 20.02,
|
|
"to_s": 30.56,
|
|
"requests": 1579,
|
|
"ok": 1579,
|
|
"errors": 0,
|
|
"error_ratio": 0.0,
|
|
"ok_rps": 149.7,
|
|
"write_ok_rps": 89.7,
|
|
"latency_ms_ok": {
|
|
"p50": 16.0,
|
|
"p95": 110.0,
|
|
"p99": 188.0
|
|
},
|
|
"instances": [
|
|
"a21409fffeec",
|
|
"c4c5ae5b0949"
|
|
]
|
|
}
|
|
},
|
|
"lb_timeline": [
|
|
[
|
|
0.03,
|
|
[
|
|
"api1",
|
|
"api2"
|
|
]
|
|
],
|
|
[
|
|
7.39,
|
|
[
|
|
"api2"
|
|
]
|
|
],
|
|
[
|
|
21.47,
|
|
[
|
|
"api1",
|
|
"api2"
|
|
]
|
|
],
|
|
[
|
|
21.58,
|
|
[
|
|
"api2"
|
|
]
|
|
],
|
|
[
|
|
24.11,
|
|
[
|
|
"api1",
|
|
"api2"
|
|
]
|
|
]
|
|
],
|
|
"data": {
|
|
"confirmed_writes": 2474,
|
|
"stored_messages": 2474,
|
|
"missing_or_altered": 0,
|
|
"duplicate_ids": 0,
|
|
"duplicate_texts": 0,
|
|
"same_key_retries": 0,
|
|
"ok": true
|
|
}
|
|
}
|
|
],
|
|
"pass": true
|
|
}
|