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": [
|
|
{
|
|
"passes": 97179,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 24423,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40487.594241
|
|
},
|
|
"metrics": {
|
|
"data_received": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 311971763,
|
|
"rate": 7705366.763532717
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"max": 608,
|
|
"value": 608,
|
|
"min": 608
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.004375,
|
|
"p(90)": 0.012,
|
|
"p(95)": 0.023917,
|
|
"p(99)": 0.07885357999999995,
|
|
"max": 8.079709,
|
|
"avg": 0.009595158715023401,
|
|
"min": 0.0015
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 17.397667,
|
|
"avg": 0.0037859015552560477,
|
|
"min": 0.000416,
|
|
"med": 0.001291,
|
|
"p(90)": 0.001875,
|
|
"p(95)": 0.002166,
|
|
"p(99)": 0.003583
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"values": {
|
|
"count": 91201,
|
|
"rate": 2252.5665382124575
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 121652,
|
|
"rate": 3004.673463082882
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 91201,
|
|
"rate": 2252.5665382124575
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 17.381833,
|
|
"avg": 0.002251973637917994,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"count": 0
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 3003.438516899061,
|
|
"count": 121602
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.960416,
|
|
"med": 1.740958,
|
|
"p(90)": 3.0001209,
|
|
"p(95)": 4.325839399999998,
|
|
"p(99)": 14.263456419999994,
|
|
"max": 63.381958,
|
|
"avg": 2.272523321260674
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 35641414,
|
|
"rate": 880304.5641054048
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 56.708375,
|
|
"avg": 2.402200351133719,
|
|
"min": 1.03725,
|
|
"med": 1.865208,
|
|
"p(90)": 3.250375,
|
|
"p(95)": 4.716458,
|
|
"p(99)": 13.791375
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 4.479625,
|
|
"p(99)": 13.0715,
|
|
"max": 56.708375,
|
|
"avg": 2.330246204175414,
|
|
"min": 0.990875,
|
|
"med": 1.821208,
|
|
"p(90)": 3.137917
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 91201
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.112291,
|
|
"max": 1.665917,
|
|
"avg": 0.020148448500640806,
|
|
"min": 0.002833,
|
|
"med": 0.012042,
|
|
"p(90)": 0.052667,
|
|
"p(95)": 0.073292
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 0,
|
|
"rate": 1,
|
|
"passes": 121602
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 2.3567933387690805,
|
|
"min": 1.035334,
|
|
"med": 1.8237915,
|
|
"p(90)": 3.0993625000000007,
|
|
"p(95)": 4.405817299999998,
|
|
"p(99)": 14.438185089999998,
|
|
"max": 63.465458
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 121652
|
|
}
|
|
},
|
|
"vus": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 7,
|
|
"min": 3,
|
|
"max": 41
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"http_req_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 14.307175499999996,
|
|
"max": 63.418334,
|
|
"avg": 2.3022669284763118,
|
|
"min": 0.990875,
|
|
"med": 1.769458,
|
|
"p(90)": 3.0360336000000006,
|
|
"p(95)": 4.3632689
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 3.564225599999996,
|
|
"p(99)": 9.882539169999994,
|
|
"max": 54.501417,
|
|
"avg": 2.043605260601097,
|
|
"min": 0.990875,
|
|
"med": 1.637729,
|
|
"p(90)": 2.6786206000000004
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 63.418334,
|
|
"avg": 2.3022669284763118,
|
|
"min": 0.990875,
|
|
"med": 1.769458,
|
|
"p(90)": 3.0360336000000006,
|
|
"p(95)": 4.3632689,
|
|
"p(99)": 14.307175499999996
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0
|
|
}
|
|
}
|
|
}
|
|
} |