forked from mtusi2026/mtusi2026lab3
1x4, 2x2 and 4x1 at 4 CPU and 2 GiB of API, workers equal to CPUs, 32 pool connections and 128 balancer slots in every layout, three repeats from 600 to 6 830 rps. All three keep up with the offered load up to 4 560 rps; the peaks are 5 375 rps for 1x4 (5 332..5 384), 4 964 for 2x2 (4 894..5 104) and 4 724 for 4x1 (4 686..4 794). At the peak the API uses 95 % of its four CPUs in every layout, PostgreSQL 82..89 % of its two, the balancer 40 % of one, and about half of the 32 database connections wait for the lock on a chat row. Smaller replicas cost more: at 3 040 rps the API burns 215 % CPU as 1x4, 243 % as 2x2 and about 280 % as 4x1, and p95 at 4 560 rps grows from 9 to 69 and 150 ms. The first attempt was aborted when a neighbour's image build froze the Docker API; its summary is kept under aborted/. Twelve steps of the rerun were rejected as disturbed and repeated. A config's SLO capacity now needs a majority of saturated repeats, since a median is robust to one disturbed repeat and "any repeat" is not. Series B starts at 450 rps per CPU. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
309 lines
5.7 KiB
JSON
309 lines
5.7 KiB
JSON
{
|
|
"root_group": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 4793,
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200"
|
|
},
|
|
{
|
|
"passes": 19210,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"testRunDurationMs": 40542.208672,
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false
|
|
},
|
|
"metrics": {
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 1.732233,
|
|
"p(99)": 2.2797517199999997,
|
|
"max": 14.963458,
|
|
"avg": 1.2869268723035356,
|
|
"min": 0.906625,
|
|
"med": 1.190792,
|
|
"p(90)": 1.5773416
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 18002,
|
|
"rate": 444.0310626794457
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 2.26190825,
|
|
"max": 14.963458,
|
|
"avg": 1.270695561437618,
|
|
"min": 0.89975,
|
|
"med": 1.1812295,
|
|
"p(90)": 1.5612006,
|
|
"p(95)": 1.7200127999999997
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.283504867625664,
|
|
"min": 0.732291,
|
|
"med": 1.160917,
|
|
"p(90)": 1.5376585999999999,
|
|
"p(95)": 1.700834,
|
|
"p(99)": 2.6144831599999994,
|
|
"max": 31.120292
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 120,
|
|
"min": 120,
|
|
"max": 120
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 24053,
|
|
"rate": 593.2829213769975
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.001709,
|
|
"med": 0.007333,
|
|
"p(90)": 0.011032800000000021,
|
|
"p(95)": 0.015417,
|
|
"p(99)": 0.02875,
|
|
"max": 0.593708,
|
|
"avg": 0.00819607520891363
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 60587581,
|
|
"rate": 1494432.1729033992
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 7025136,
|
|
"rate": 173279.5580239768
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 18002
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 24003,
|
|
"fails": 0,
|
|
"rate": 1
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 24053
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.2054216956764288,
|
|
"min": 0.89975,
|
|
"med": 1.105583,
|
|
"p(90)": 1.4690578,
|
|
"p(95)": 1.6285754,
|
|
"p(99)": 2.1762787199999996,
|
|
"max": 5.831667
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.004375,
|
|
"max": 15.9765,
|
|
"avg": 0.0032924093876020516,
|
|
"min": 0.000459,
|
|
"med": 0.001,
|
|
"p(90)": 0.001666,
|
|
"p(95)": 0.001959
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.001960408639254978,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 15.959167
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.014317194819773124,
|
|
"min": 0.003792,
|
|
"med": 0.011875,
|
|
"p(90)": 0.021375,
|
|
"p(95)": 0.028208,
|
|
"p(99)": 0.04625,
|
|
"max": 0.774125
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 24003,
|
|
"rate": 592.049638789842
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2,
|
|
"min": 0,
|
|
"max": 2
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 18002,
|
|
"rate": 444.0310626794457
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.884625,
|
|
"med": 1.231083,
|
|
"p(90)": 1.6296914,
|
|
"p(95)": 1.7980789000000001,
|
|
"p(99)": 2.4805708199999983,
|
|
"max": 31.206625,
|
|
"avg": 1.3416249060534085
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"count": 0
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 2.6513815199999997,
|
|
"max": 31.136041,
|
|
"avg": 1.306018137654341,
|
|
"min": 0.758667,
|
|
"med": 1.181167,
|
|
"p(90)": 1.5667084000000002,
|
|
"p(95)": 1.7332165999999996
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.758667,
|
|
"med": 1.181167,
|
|
"p(90)": 1.5667084000000002,
|
|
"p(95)": 1.7332165999999996,
|
|
"p(99)": 2.6513815199999997,
|
|
"max": 31.136041,
|
|
"avg": 1.306018137654341
|
|
}
|
|
}
|
|
}
|
|
} |