forked from mtusi2026/mtusi2026lab3
681 lines
15 KiB
JSON
681 lines
15 KiB
JSON
{
|
|
"schema_version": 1,
|
|
"environment": {
|
|
"utc_started_at": "2026-10-23T15:23:05.031807+00:00",
|
|
"git_commit": "5300a1a1e0e5497f2d30097bb1542b2743a8aad5",
|
|
"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": "frontend",
|
|
"nano_cpus": 100000000,
|
|
"memory_limit_bytes": 67108864
|
|
},
|
|
{
|
|
"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 the public HAProxy gateway; no automatic retries"
|
|
},
|
|
"phases": [
|
|
{
|
|
"name": "baseline",
|
|
"elapsed_seconds": 12.015,
|
|
"successful_requests": 5762,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"errors": {},
|
|
"successful_rps": 479.581,
|
|
"successful_latency_ms": {
|
|
"p50": 9.178,
|
|
"p95": 56.402,
|
|
"p99": 79.978
|
|
},
|
|
"instances": [
|
|
"a85567c48d67",
|
|
"df8a69558af0"
|
|
],
|
|
"recovery_seconds": null,
|
|
"action": null,
|
|
"per_second": {
|
|
"0": {
|
|
"successful": 434,
|
|
"failed": 0
|
|
},
|
|
"1": {
|
|
"successful": 280,
|
|
"failed": 0
|
|
},
|
|
"2": {
|
|
"successful": 372,
|
|
"failed": 0
|
|
},
|
|
"3": {
|
|
"successful": 436,
|
|
"failed": 0
|
|
},
|
|
"4": {
|
|
"successful": 541,
|
|
"failed": 0
|
|
},
|
|
"5": {
|
|
"successful": 474,
|
|
"failed": 0
|
|
},
|
|
"6": {
|
|
"successful": 526,
|
|
"failed": 0
|
|
},
|
|
"7": {
|
|
"successful": 539,
|
|
"failed": 0
|
|
},
|
|
"8": {
|
|
"successful": 554,
|
|
"failed": 0
|
|
},
|
|
"9": {
|
|
"successful": 559,
|
|
"failed": 0
|
|
},
|
|
"10": {
|
|
"successful": 448,
|
|
"failed": 0
|
|
},
|
|
"11": {
|
|
"successful": 584,
|
|
"failed": 0
|
|
},
|
|
"12": {
|
|
"successful": 15,
|
|
"failed": 0
|
|
}
|
|
},
|
|
"resources": {
|
|
"api": {
|
|
"cpu_percent_avg": 27.144,
|
|
"cpu_percent_max": 30.93,
|
|
"memory_mib_avg": 31.008,
|
|
"memory_mib_max": 66.17
|
|
},
|
|
"frontend": {
|
|
"cpu_percent_avg": 1.812,
|
|
"cpu_percent_max": 3.76,
|
|
"memory_mib_avg": 7.212,
|
|
"memory_mib_max": 10.15
|
|
},
|
|
"load-balancer": {
|
|
"cpu_percent_avg": 26.262,
|
|
"cpu_percent_max": 27.37,
|
|
"memory_mib_avg": 15.645,
|
|
"memory_mib_max": 15.97
|
|
},
|
|
"postgres": {
|
|
"cpu_percent_avg": 89.392,
|
|
"cpu_percent_max": 110.59,
|
|
"memory_mib_avg": 130.125,
|
|
"memory_mib_max": 132.2
|
|
},
|
|
"redis": {
|
|
"cpu_percent_avg": 2.488,
|
|
"cpu_percent_max": 6.58,
|
|
"memory_mib_avg": 15.072,
|
|
"memory_mib_max": 15.25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "failover-1",
|
|
"elapsed_seconds": 14.609,
|
|
"successful_requests": 7853,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"errors": {},
|
|
"successful_rps": 537.548,
|
|
"successful_latency_ms": {
|
|
"p50": 8.812,
|
|
"p95": 50.05,
|
|
"p99": 66.373
|
|
},
|
|
"instances": [
|
|
"a85567c48d67",
|
|
"df8a69558af0"
|
|
],
|
|
"recovery_seconds": 2.893,
|
|
"action": {
|
|
"started_at": 3.003,
|
|
"ended_at": 5.888,
|
|
"duration_seconds": 2.885,
|
|
"exit_code": 0,
|
|
"summary": "stopped API instance df8a69558af0"
|
|
},
|
|
"per_second": {
|
|
"0": {
|
|
"successful": 551,
|
|
"failed": 0
|
|
},
|
|
"1": {
|
|
"successful": 605,
|
|
"failed": 0
|
|
},
|
|
"2": {
|
|
"successful": 558,
|
|
"failed": 0
|
|
},
|
|
"3": {
|
|
"successful": 443,
|
|
"failed": 0
|
|
},
|
|
"4": {
|
|
"successful": 575,
|
|
"failed": 0
|
|
},
|
|
"5": {
|
|
"successful": 538,
|
|
"failed": 0
|
|
},
|
|
"6": {
|
|
"successful": 593,
|
|
"failed": 0
|
|
},
|
|
"7": {
|
|
"successful": 623,
|
|
"failed": 0
|
|
},
|
|
"8": {
|
|
"successful": 507,
|
|
"failed": 0
|
|
},
|
|
"9": {
|
|
"successful": 626,
|
|
"failed": 0
|
|
},
|
|
"10": {
|
|
"successful": 608,
|
|
"failed": 0
|
|
},
|
|
"11": {
|
|
"successful": 601,
|
|
"failed": 0
|
|
},
|
|
"12": {
|
|
"successful": 556,
|
|
"failed": 0
|
|
},
|
|
"13": {
|
|
"successful": 469,
|
|
"failed": 0
|
|
}
|
|
},
|
|
"resources": {
|
|
"api": {
|
|
"cpu_percent_avg": 35.916,
|
|
"cpu_percent_max": 49.48,
|
|
"memory_mib_avg": 11.892,
|
|
"memory_mib_max": 13.27
|
|
},
|
|
"frontend": {
|
|
"cpu_percent_avg": 0.762,
|
|
"cpu_percent_max": 3.75,
|
|
"memory_mib_avg": 6.256,
|
|
"memory_mib_max": 6.434
|
|
},
|
|
"load-balancer": {
|
|
"cpu_percent_avg": 22.21,
|
|
"cpu_percent_max": 26.89,
|
|
"memory_mib_avg": 16.312,
|
|
"memory_mib_max": 16.93
|
|
},
|
|
"postgres": {
|
|
"cpu_percent_avg": 73.128,
|
|
"cpu_percent_max": 89.46,
|
|
"memory_mib_avg": 135.64,
|
|
"memory_mib_max": 141.9
|
|
},
|
|
"redis": {
|
|
"cpu_percent_avg": 0.782,
|
|
"cpu_percent_max": 3.27,
|
|
"memory_mib_avg": 15.258,
|
|
"memory_mib_max": 15.73
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "failover-2",
|
|
"elapsed_seconds": 14.949,
|
|
"successful_requests": 7970,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"errors": {},
|
|
"successful_rps": 533.154,
|
|
"successful_latency_ms": {
|
|
"p50": 8.726,
|
|
"p95": 48.789,
|
|
"p99": 64.333
|
|
},
|
|
"instances": [
|
|
"a85567c48d67",
|
|
"df8a69558af0"
|
|
],
|
|
"recovery_seconds": 2.938,
|
|
"action": {
|
|
"started_at": 3.006,
|
|
"ended_at": 5.933,
|
|
"duration_seconds": 2.927,
|
|
"exit_code": 0,
|
|
"summary": "stopped API instance a85567c48d67"
|
|
},
|
|
"per_second": {
|
|
"0": {
|
|
"successful": 584,
|
|
"failed": 0
|
|
},
|
|
"1": {
|
|
"successful": 613,
|
|
"failed": 0
|
|
},
|
|
"2": {
|
|
"successful": 570,
|
|
"failed": 0
|
|
},
|
|
"3": {
|
|
"successful": 465,
|
|
"failed": 0
|
|
},
|
|
"4": {
|
|
"successful": 564,
|
|
"failed": 0
|
|
},
|
|
"5": {
|
|
"successful": 605,
|
|
"failed": 0
|
|
},
|
|
"6": {
|
|
"successful": 610,
|
|
"failed": 0
|
|
},
|
|
"7": {
|
|
"successful": 579,
|
|
"failed": 0
|
|
},
|
|
"8": {
|
|
"successful": 497,
|
|
"failed": 0
|
|
},
|
|
"9": {
|
|
"successful": 575,
|
|
"failed": 0
|
|
},
|
|
"10": {
|
|
"successful": 569,
|
|
"failed": 0
|
|
},
|
|
"11": {
|
|
"successful": 600,
|
|
"failed": 0
|
|
},
|
|
"12": {
|
|
"successful": 586,
|
|
"failed": 0
|
|
},
|
|
"13": {
|
|
"successful": 553,
|
|
"failed": 0
|
|
}
|
|
},
|
|
"resources": {
|
|
"api": {
|
|
"cpu_percent_avg": 28.073,
|
|
"cpu_percent_max": 48.59,
|
|
"memory_mib_avg": 10.391,
|
|
"memory_mib_max": 13.47
|
|
},
|
|
"frontend": {
|
|
"cpu_percent_avg": 0.696,
|
|
"cpu_percent_max": 3.44,
|
|
"memory_mib_avg": 6.25,
|
|
"memory_mib_max": 6.398
|
|
},
|
|
"load-balancer": {
|
|
"cpu_percent_avg": 25.966,
|
|
"cpu_percent_max": 26.65,
|
|
"memory_mib_avg": 16.918,
|
|
"memory_mib_max": 17.25
|
|
},
|
|
"postgres": {
|
|
"cpu_percent_avg": 72.558,
|
|
"cpu_percent_max": 93.6,
|
|
"memory_mib_avg": 146.22,
|
|
"memory_mib_max": 160.2
|
|
},
|
|
"redis": {
|
|
"cpu_percent_avg": 0.168,
|
|
"cpu_percent_max": 0.2,
|
|
"memory_mib_avg": 15.646,
|
|
"memory_mib_max": 16.64
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "rolling-update",
|
|
"elapsed_seconds": 51.793,
|
|
"successful_requests": 22212,
|
|
"failed_requests": 0,
|
|
"error_ratio": 0.0,
|
|
"errors": {},
|
|
"successful_rps": 428.86,
|
|
"successful_latency_ms": {
|
|
"p50": 10.56,
|
|
"p95": 58.713,
|
|
"p99": 83.982
|
|
},
|
|
"instances": [
|
|
"872dbac02cd3",
|
|
"a85567c48d67",
|
|
"dac03e904506",
|
|
"df00f21e6f41",
|
|
"df8a69558af0"
|
|
],
|
|
"recovery_seconds": null,
|
|
"action": {
|
|
"started_at": 3.005,
|
|
"ended_at": 42.955,
|
|
"duration_seconds": 39.95,
|
|
"exit_code": 0,
|
|
"summary": "rolling update completed with 2 healthy API replicas"
|
|
},
|
|
"per_second": {
|
|
"0": {
|
|
"successful": 509,
|
|
"failed": 0
|
|
},
|
|
"1": {
|
|
"successful": 577,
|
|
"failed": 0
|
|
},
|
|
"2": {
|
|
"successful": 660,
|
|
"failed": 0
|
|
},
|
|
"3": {
|
|
"successful": 438,
|
|
"failed": 0
|
|
},
|
|
"4": {
|
|
"successful": 577,
|
|
"failed": 0
|
|
},
|
|
"5": {
|
|
"successful": 392,
|
|
"failed": 0
|
|
},
|
|
"6": {
|
|
"successful": 326,
|
|
"failed": 0
|
|
},
|
|
"7": {
|
|
"successful": 232,
|
|
"failed": 0
|
|
},
|
|
"8": {
|
|
"successful": 199,
|
|
"failed": 0
|
|
},
|
|
"9": {
|
|
"successful": 170,
|
|
"failed": 0
|
|
},
|
|
"10": {
|
|
"successful": 263,
|
|
"failed": 0
|
|
},
|
|
"11": {
|
|
"successful": 323,
|
|
"failed": 0
|
|
},
|
|
"12": {
|
|
"successful": 308,
|
|
"failed": 0
|
|
},
|
|
"13": {
|
|
"successful": 362,
|
|
"failed": 0
|
|
},
|
|
"14": {
|
|
"successful": 443,
|
|
"failed": 0
|
|
},
|
|
"15": {
|
|
"successful": 495,
|
|
"failed": 0
|
|
},
|
|
"16": {
|
|
"successful": 429,
|
|
"failed": 0
|
|
},
|
|
"17": {
|
|
"successful": 370,
|
|
"failed": 0
|
|
},
|
|
"18": {
|
|
"successful": 451,
|
|
"failed": 0
|
|
},
|
|
"19": {
|
|
"successful": 377,
|
|
"failed": 0
|
|
},
|
|
"20": {
|
|
"successful": 422,
|
|
"failed": 0
|
|
},
|
|
"21": {
|
|
"successful": 485,
|
|
"failed": 0
|
|
},
|
|
"22": {
|
|
"successful": 473,
|
|
"failed": 0
|
|
},
|
|
"23": {
|
|
"successful": 441,
|
|
"failed": 0
|
|
},
|
|
"24": {
|
|
"successful": 470,
|
|
"failed": 0
|
|
},
|
|
"25": {
|
|
"successful": 487,
|
|
"failed": 0
|
|
},
|
|
"26": {
|
|
"successful": 504,
|
|
"failed": 0
|
|
},
|
|
"27": {
|
|
"successful": 516,
|
|
"failed": 0
|
|
},
|
|
"28": {
|
|
"successful": 441,
|
|
"failed": 0
|
|
},
|
|
"29": {
|
|
"successful": 390,
|
|
"failed": 0
|
|
},
|
|
"30": {
|
|
"successful": 502,
|
|
"failed": 0
|
|
},
|
|
"31": {
|
|
"successful": 450,
|
|
"failed": 0
|
|
},
|
|
"32": {
|
|
"successful": 500,
|
|
"failed": 0
|
|
},
|
|
"33": {
|
|
"successful": 363,
|
|
"failed": 0
|
|
},
|
|
"34": {
|
|
"successful": 470,
|
|
"failed": 0
|
|
},
|
|
"35": {
|
|
"successful": 434,
|
|
"failed": 0
|
|
},
|
|
"36": {
|
|
"successful": 424,
|
|
"failed": 0
|
|
},
|
|
"37": {
|
|
"successful": 373,
|
|
"failed": 0
|
|
},
|
|
"38": {
|
|
"successful": 460,
|
|
"failed": 0
|
|
},
|
|
"39": {
|
|
"successful": 516,
|
|
"failed": 0
|
|
},
|
|
"40": {
|
|
"successful": 375,
|
|
"failed": 0
|
|
},
|
|
"41": {
|
|
"successful": 492,
|
|
"failed": 0
|
|
},
|
|
"42": {
|
|
"successful": 477,
|
|
"failed": 0
|
|
},
|
|
"43": {
|
|
"successful": 503,
|
|
"failed": 0
|
|
},
|
|
"44": {
|
|
"successful": 506,
|
|
"failed": 0
|
|
},
|
|
"45": {
|
|
"successful": 465,
|
|
"failed": 0
|
|
},
|
|
"46": {
|
|
"successful": 501,
|
|
"failed": 0
|
|
},
|
|
"47": {
|
|
"successful": 502,
|
|
"failed": 0
|
|
},
|
|
"48": {
|
|
"successful": 446,
|
|
"failed": 0
|
|
},
|
|
"49": {
|
|
"successful": 446,
|
|
"failed": 0
|
|
},
|
|
"50": {
|
|
"successful": 477,
|
|
"failed": 0
|
|
}
|
|
},
|
|
"resources": {
|
|
"api": {
|
|
"cpu_percent_avg": 20.954,
|
|
"cpu_percent_max": 31.69,
|
|
"memory_mib_avg": 8.855,
|
|
"memory_mib_max": 12.74
|
|
},
|
|
"frontend": {
|
|
"cpu_percent_avg": 1.326,
|
|
"cpu_percent_max": 8.06,
|
|
"memory_mib_avg": 7.43,
|
|
"memory_mib_max": 12.17
|
|
},
|
|
"load-balancer": {
|
|
"cpu_percent_avg": 24.581,
|
|
"cpu_percent_max": 29.42,
|
|
"memory_mib_avg": 17.398,
|
|
"memory_mib_max": 19.6
|
|
},
|
|
"postgres": {
|
|
"cpu_percent_avg": 77.881,
|
|
"cpu_percent_max": 102.6,
|
|
"memory_mib_avg": 170.081,
|
|
"memory_mib_max": 185.9
|
|
},
|
|
"redis": {
|
|
"cpu_percent_avg": 0.63,
|
|
"cpu_percent_max": 3.84,
|
|
"memory_mib_avg": 15.178,
|
|
"memory_mib_max": 15.91
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"idempotency": {
|
|
"parallel_requests": 32,
|
|
"successful_responses": 32,
|
|
"failed_responses": 0,
|
|
"unique_message_ids": 1,
|
|
"observed_instances": [
|
|
"a85567c48d67",
|
|
"df8a69558af0"
|
|
]
|
|
},
|
|
"dataset": {
|
|
"warmup_requests": 12,
|
|
"minimum_confirmed_messages": 43810
|
|
},
|
|
"limitations": [
|
|
"single Docker host",
|
|
"closed-loop coordinated omission",
|
|
"successful-response latency percentiles only",
|
|
"PostgreSQL and HAProxy remain single points of failure"
|
|
]
|
|
}
|