forked from mtusi2026/mtusi2026lab4
149 lines
4.0 KiB
JSON
149 lines
4.0 KiB
JSON
{
|
|
"scenario": "sequential failover of each api replica",
|
|
"resources_under_load": [
|
|
"messenger-lab4-api-1 cpu=44.15% mem=105MiB / 256MiB",
|
|
"messenger-lab4-api-2 cpu=49.51% mem=122.1MiB / 256MiB",
|
|
"messenger-lab4-lb-1 cpu=13.85% mem=15.72MiB / 64MiB",
|
|
"messenger-lab4-postgres-1 cpu=26.52% mem=65.75MiB / 512MiB",
|
|
"messenger-lab4-reconciler-1 cpu=0.00% mem=32.57MiB / 128MiB",
|
|
"messenger-lab4-redis-1 cpu=1.89% mem=8.105MiB / 128MiB",
|
|
"messenger-lab4-s3-1 cpu=0.09% mem=248.8MiB / 512MiB"
|
|
],
|
|
"replicas": [
|
|
{
|
|
"container": "/messenger-lab4-api-1 running image=0387c3cfc941",
|
|
"action": "docker kill (SIGKILL)",
|
|
"before": {
|
|
"seconds": 5.0,
|
|
"successful_writes": 789,
|
|
"failed_attempts": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 157.8,
|
|
"latency_ms_successful": {
|
|
"p50": 11.3,
|
|
"p95": 80.0,
|
|
"p99": 117.2
|
|
},
|
|
"max_write_gap_seconds": 0.155,
|
|
"instances": [
|
|
"0900a35b199d",
|
|
"bb4424f819bb"
|
|
]
|
|
},
|
|
"stop_command_seconds": 0.444,
|
|
"target_last_success_after_stop_seconds": null,
|
|
"outage_window": {
|
|
"seconds": 10.444,
|
|
"successful_writes": 828,
|
|
"failed_attempts": 2,
|
|
"error_ratio": 0.0024,
|
|
"successful_rps": 79.3,
|
|
"latency_ms_successful": {
|
|
"p50": 13.4,
|
|
"p95": 92.9,
|
|
"p99": 1012.3
|
|
},
|
|
"max_write_gap_seconds": 0.916,
|
|
"instances": [
|
|
"0900a35b199d"
|
|
]
|
|
},
|
|
"restore_until_healthy_seconds": 5.742,
|
|
"restore_until_serving_seconds": 3.928,
|
|
"after_restore": {
|
|
"seconds": 5.027,
|
|
"successful_writes": 791,
|
|
"failed_attempts": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 157.4,
|
|
"latency_ms_successful": {
|
|
"p50": 11.9,
|
|
"p95": 74.7,
|
|
"p99": 85.1
|
|
},
|
|
"max_write_gap_seconds": 0.143,
|
|
"instances": [
|
|
"0900a35b199d",
|
|
"bb4424f819bb"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"container": "/messenger-lab4-api-2 running image=0387c3cfc941",
|
|
"action": "docker kill (SIGKILL)",
|
|
"before": {
|
|
"seconds": 5.0,
|
|
"successful_writes": 790,
|
|
"failed_attempts": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 158.0,
|
|
"latency_ms_successful": {
|
|
"p50": 11.9,
|
|
"p95": 74.7,
|
|
"p99": 85.1
|
|
},
|
|
"max_write_gap_seconds": 0.143,
|
|
"instances": [
|
|
"0900a35b199d",
|
|
"bb4424f819bb"
|
|
]
|
|
},
|
|
"stop_command_seconds": 0.444,
|
|
"target_last_success_after_stop_seconds": null,
|
|
"outage_window": {
|
|
"seconds": 10.444,
|
|
"successful_writes": 670,
|
|
"failed_attempts": 2,
|
|
"error_ratio": 0.003,
|
|
"successful_rps": 64.2,
|
|
"latency_ms_successful": {
|
|
"p50": 14.1,
|
|
"p95": 95.5,
|
|
"p99": 1010.9
|
|
},
|
|
"max_write_gap_seconds": 0.989,
|
|
"instances": [
|
|
"bb4424f819bb"
|
|
]
|
|
},
|
|
"restore_until_healthy_seconds": 5.757,
|
|
"restore_until_serving_seconds": 4.112,
|
|
"after_restore": {
|
|
"seconds": 5.032,
|
|
"successful_writes": 720,
|
|
"failed_attempts": 0,
|
|
"error_ratio": 0.0,
|
|
"successful_rps": 143.1,
|
|
"latency_ms_successful": {
|
|
"p50": 13.2,
|
|
"p95": 77.0,
|
|
"p99": 90.7
|
|
},
|
|
"max_write_gap_seconds": 0.082,
|
|
"instances": [
|
|
"0900a35b199d",
|
|
"bb4424f819bb"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"dataset": {
|
|
"messages_in_db_before": 7276,
|
|
"messages_in_db_after": 12641
|
|
},
|
|
"history": {
|
|
"confirmed": 5365,
|
|
"stored": 5365,
|
|
"lost_confirmed": 0,
|
|
"duplicates": 0
|
|
},
|
|
"load": {
|
|
"workers": 4,
|
|
"model": "closed loop, POST message",
|
|
"warmup_seconds": 5,
|
|
"client_timeout_seconds": 2,
|
|
"retry": "same Idempotency-Key until success"
|
|
},
|
|
"date": "2026-11-05T14:08:00Z"
|
|
}
|