Files
mtusi2026lab3/evidence/grade4/results.json
T
2026-10-23 16:20:43 +03:00

676 lines
15 KiB
JSON

{
"schema_version": 1,
"environment": {
"utc_started_at": "2026-10-23T12:31:12.749687+00:00",
"git_commit": "34618bd4237bbb8bf6a3a303056fc95d799577f9",
"working_tree_dirty": true,
"logical_cpu_count": 8,
"host_memory_mib": 3813.6,
"docker_engine": "29.7.2",
"docker_compose": "5.5.0",
"container_limits": [
{
"service": "api",
"nano_cpus": 500000000,
"memory_limit_bytes": 268435456
},
{
"service": "api",
"nano_cpus": 500000000,
"memory_limit_bytes": 268435456
},
{
"service": "load-balancer",
"nano_cpus": 250000000,
"memory_limit_bytes": 134217728
},
{
"service": "postgres",
"nano_cpus": 1000000000,
"memory_limit_bytes": 536870912
},
{
"service": "redis",
"nano_cpus": 250000000,
"memory_limit_bytes": 134217728
}
]
},
"methodology": {
"base_url": "http://localhost:8080",
"concurrency": 8,
"baseline_seconds": 12,
"action_after_seconds": 3,
"post_action_seconds": 8,
"warmup_requests": 12,
"workload": "closed-loop POST messages via Nginx; no automatic retries"
},
"phases": [
{
"name": "baseline",
"elapsed_seconds": 12.574,
"successful_requests": 4017,
"failed_requests": 0,
"error_ratio": 0.0,
"errors": {},
"successful_rps": 319.463,
"successful_latency_ms": {
"p50": 16.799,
"p95": 55.515,
"p99": 93.803
},
"instances": [
"0b933a46fccb",
"55aaffcf508a"
],
"recovery_seconds": null,
"action": null,
"per_second": {
"0": {
"successful": 118,
"failed": 0
},
"1": {
"successful": 308,
"failed": 0
},
"2": {
"successful": 386,
"failed": 0
},
"3": {
"successful": 378,
"failed": 0
},
"4": {
"successful": 344,
"failed": 0
},
"5": {
"successful": 322,
"failed": 0
},
"6": {
"successful": 316,
"failed": 0
},
"7": {
"successful": 384,
"failed": 0
},
"8": {
"successful": 380,
"failed": 0
},
"9": {
"successful": 402,
"failed": 0
},
"10": {
"successful": 377,
"failed": 0
},
"11": {
"successful": 288,
"failed": 0
},
"12": {
"successful": 14,
"failed": 0
}
},
"resources": {
"api": {
"cpu_percent_avg": 28.453,
"cpu_percent_max": 36.1,
"memory_mib_avg": 42.413,
"memory_mib_max": 66.07
},
"load-balancer": {
"cpu_percent_avg": 17.448,
"cpu_percent_max": 20.8,
"memory_mib_avg": 9.214,
"memory_mib_max": 9.559
},
"postgres": {
"cpu_percent_avg": 85.888,
"cpu_percent_max": 105.25,
"memory_mib_avg": 97.975,
"memory_mib_max": 100.8
},
"redis": {
"cpu_percent_avg": 2.552,
"cpu_percent_max": 5.79,
"memory_mib_avg": 8.796,
"memory_mib_max": 11.74
}
}
},
{
"name": "failover-1",
"elapsed_seconds": 15.324,
"successful_requests": 4613,
"failed_requests": 1,
"error_ratio": 0.000217,
"errors": {
"POST /api/v1/chats/60f7f146-7d10-4711-8a99-2098bc1c2496/messages: expected [201], received 504": 1
},
"successful_rps": 301.04,
"successful_latency_ms": {
"p50": 17.145,
"p95": 69.558,
"p99": 89.752
},
"instances": [
"0b933a46fccb",
"55aaffcf508a"
],
"recovery_seconds": 3.464,
"action": {
"started_at": 3.006,
"ended_at": 6.463,
"duration_seconds": 3.457,
"exit_code": 0,
"summary": "stopped API instance 55aaffcf508a"
},
"per_second": {
"0": {
"successful": 404,
"failed": 0
},
"1": {
"successful": 426,
"failed": 0
},
"2": {
"successful": 358,
"failed": 0
},
"3": {
"successful": 399,
"failed": 0
},
"4": {
"successful": 392,
"failed": 0
},
"5": {
"successful": 322,
"failed": 0
},
"6": {
"successful": 299,
"failed": 0
},
"7": {
"successful": 329,
"failed": 1
},
"8": {
"successful": 313,
"failed": 0
},
"9": {
"successful": 229,
"failed": 0
},
"10": {
"successful": 155,
"failed": 0
},
"11": {
"successful": 187,
"failed": 0
},
"12": {
"successful": 299,
"failed": 0
},
"13": {
"successful": 317,
"failed": 0
},
"14": {
"successful": 184,
"failed": 0
}
},
"resources": {
"api": {
"cpu_percent_avg": 27.62,
"cpu_percent_max": 52.59,
"memory_mib_avg": 11.58,
"memory_mib_max": 12.66
},
"load-balancer": {
"cpu_percent_avg": 18.536,
"cpu_percent_max": 21.25,
"memory_mib_avg": 9.351,
"memory_mib_max": 9.523
},
"postgres": {
"cpu_percent_avg": 81.822,
"cpu_percent_max": 104.67,
"memory_mib_avg": 100.512,
"memory_mib_max": 109.1
},
"redis": {
"cpu_percent_avg": 1.486,
"cpu_percent_max": 5.88,
"memory_mib_avg": 8.04,
"memory_mib_max": 8.25
}
}
},
{
"name": "failover-2",
"elapsed_seconds": 15.529,
"successful_requests": 5815,
"failed_requests": 0,
"error_ratio": 0.0,
"errors": {},
"successful_rps": 374.449,
"successful_latency_ms": {
"p50": 14.211,
"p95": 49.542,
"p99": 81.04
},
"instances": [
"0b933a46fccb",
"55aaffcf508a"
],
"recovery_seconds": 3.476,
"action": {
"started_at": 3.013,
"ended_at": 6.485,
"duration_seconds": 3.472,
"exit_code": 0,
"summary": "stopped API instance 0b933a46fccb"
},
"per_second": {
"0": {
"successful": 396,
"failed": 0
},
"1": {
"successful": 439,
"failed": 0
},
"2": {
"successful": 412,
"failed": 0
},
"3": {
"successful": 355,
"failed": 0
},
"4": {
"successful": 378,
"failed": 0
},
"5": {
"successful": 440,
"failed": 0
},
"6": {
"successful": 362,
"failed": 0
},
"7": {
"successful": 419,
"failed": 0
},
"8": {
"successful": 385,
"failed": 0
},
"9": {
"successful": 372,
"failed": 0
},
"10": {
"successful": 420,
"failed": 0
},
"11": {
"successful": 423,
"failed": 0
},
"12": {
"successful": 432,
"failed": 0
},
"13": {
"successful": 375,
"failed": 0
},
"14": {
"successful": 207,
"failed": 0
}
},
"resources": {
"api": {
"cpu_percent_avg": 31.411,
"cpu_percent_max": 51.63,
"memory_mib_avg": 10.373,
"memory_mib_max": 11.6
},
"load-balancer": {
"cpu_percent_avg": 15.778,
"cpu_percent_max": 21.79,
"memory_mib_avg": 9.62,
"memory_mib_max": 9.781
},
"postgres": {
"cpu_percent_avg": 76.87,
"cpu_percent_max": 104.51,
"memory_mib_avg": 106.016,
"memory_mib_max": 120.0
},
"redis": {
"cpu_percent_avg": 0.786,
"cpu_percent_max": 2.83,
"memory_mib_avg": 8.844,
"memory_mib_max": 12.28
}
}
},
{
"name": "rolling-update",
"elapsed_seconds": 53.985,
"successful_requests": 20350,
"failed_requests": 1,
"error_ratio": 4.9e-05,
"errors": {
"POST /api/v1/chats/60f7f146-7d10-4711-8a99-2098bc1c2496/messages: expected [201], received 502": 1
},
"successful_rps": 376.959,
"successful_latency_ms": {
"p50": 15.725,
"p95": 48.724,
"p99": 79.337
},
"instances": [
"0b933a46fccb",
"3adbcad9e34b",
"55aaffcf508a",
"ceca3f6f1faf",
"f0a3bedda85a"
],
"recovery_seconds": null,
"action": {
"started_at": 3.016,
"ended_at": 45.961,
"duration_seconds": 42.945,
"exit_code": 0,
"summary": "rolling update completed with 2 healthy API replicas"
},
"per_second": {
"0": {
"successful": 340,
"failed": 0
},
"1": {
"successful": 369,
"failed": 0
},
"2": {
"successful": 426,
"failed": 0
},
"3": {
"successful": 382,
"failed": 0
},
"4": {
"successful": 371,
"failed": 0
},
"5": {
"successful": 376,
"failed": 0
},
"6": {
"successful": 328,
"failed": 0
},
"7": {
"successful": 350,
"failed": 0
},
"8": {
"successful": 434,
"failed": 0
},
"9": {
"successful": 411,
"failed": 0
},
"10": {
"successful": 399,
"failed": 0
},
"11": {
"successful": 417,
"failed": 0
},
"12": {
"successful": 374,
"failed": 0
},
"13": {
"successful": 427,
"failed": 0
},
"14": {
"successful": 414,
"failed": 0
},
"15": {
"successful": 418,
"failed": 0
},
"16": {
"successful": 408,
"failed": 0
},
"17": {
"successful": 352,
"failed": 0
},
"18": {
"successful": 391,
"failed": 0
},
"19": {
"successful": 388,
"failed": 0
},
"20": {
"successful": 413,
"failed": 0
},
"21": {
"successful": 417,
"failed": 0
},
"22": {
"successful": 388,
"failed": 0
},
"23": {
"successful": 396,
"failed": 0
},
"24": {
"successful": 400,
"failed": 0
},
"25": {
"successful": 339,
"failed": 0
},
"26": {
"successful": 225,
"failed": 0
},
"27": {
"successful": 376,
"failed": 0
},
"28": {
"successful": 385,
"failed": 0
},
"29": {
"successful": 396,
"failed": 0
},
"30": {
"successful": 403,
"failed": 0
},
"31": {
"successful": 262,
"failed": 0
},
"32": {
"successful": 428,
"failed": 0
},
"33": {
"successful": 362,
"failed": 0
},
"34": {
"successful": 286,
"failed": 0
},
"35": {
"successful": 337,
"failed": 0
},
"36": {
"successful": 328,
"failed": 0
},
"37": {
"successful": 424,
"failed": 0
},
"38": {
"successful": 356,
"failed": 0
},
"39": {
"successful": 386,
"failed": 0
},
"40": {
"successful": 422,
"failed": 0
},
"41": {
"successful": 285,
"failed": 0
},
"42": {
"successful": 279,
"failed": 0
},
"43": {
"successful": 222,
"failed": 1
},
"44": {
"successful": 316,
"failed": 0
},
"45": {
"successful": 359,
"failed": 0
},
"46": {
"successful": 405,
"failed": 0
},
"47": {
"successful": 398,
"failed": 0
},
"48": {
"successful": 395,
"failed": 0
},
"49": {
"successful": 430,
"failed": 0
},
"50": {
"successful": 453,
"failed": 0
},
"51": {
"successful": 409,
"failed": 0
},
"52": {
"successful": 445,
"failed": 0
},
"53": {
"successful": 450,
"failed": 0
}
},
"resources": {
"api": {
"cpu_percent_avg": 25.598,
"cpu_percent_max": 37.65,
"memory_mib_avg": 8.956,
"memory_mib_max": 10.97
},
"load-balancer": {
"cpu_percent_avg": 19.935,
"cpu_percent_max": 23.36,
"memory_mib_avg": 9.836,
"memory_mib_max": 13.52
},
"postgres": {
"cpu_percent_avg": 98.172,
"cpu_percent_max": 105.11,
"memory_mib_avg": 127.975,
"memory_mib_max": 145.2
},
"redis": {
"cpu_percent_avg": 0.722,
"cpu_percent_max": 3.94,
"memory_mib_avg": 7.661,
"memory_mib_max": 11.84
}
}
}
],
"idempotency": {
"parallel_requests": 32,
"successful_responses": 32,
"failed_responses": 0,
"unique_message_ids": 1,
"observed_instances": [
"0b933a46fccb",
"55aaffcf508a"
]
},
"dataset": {
"warmup_requests": 12,
"minimum_confirmed_messages": 34808
},
"limitations": [
"single Docker host",
"closed-loop coordinated omission",
"successful-response latency percentiles only",
"PostgreSQL and Nginx remain single points of failure"
]
}