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.6 KiB
JSON
309 lines
5.6 KiB
JSON
{
|
|
"root_group": {
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 24237,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 97364,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": []
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40526.915366
|
|
},
|
|
"metrics": {
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 608,
|
|
"min": 608,
|
|
"max": 608
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 7.149417,
|
|
"avg": 0.020059392360112484,
|
|
"min": -0.285973,
|
|
"med": 0.011875,
|
|
"p(90)": 0.051833,
|
|
"p(95)": 0.072042,
|
|
"p(99)": 0.112333
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.6810578000000005,
|
|
"p(95)": 3.7617453999999997,
|
|
"p(99)": 14.029201079999964,
|
|
"max": 105.709542,
|
|
"avg": 2.1299855507806,
|
|
"min": 0.976125,
|
|
"med": 1.538
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"values": {
|
|
"min": 1.016916,
|
|
"med": 1.730083,
|
|
"p(90)": 3.240633600000001,
|
|
"p(95)": 5.183617099999988,
|
|
"p(99)": 16.93464126999998,
|
|
"max": 89.293,
|
|
"avg": 2.447971038481551
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_reqs": {
|
|
"values": {
|
|
"count": 121651,
|
|
"rate": 3001.733512194687
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"values": {
|
|
"rate": 0,
|
|
"count": 0
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 105.709542,
|
|
"avg": 2.479970255764442,
|
|
"min": 0.976125,
|
|
"med": 1.779917,
|
|
"p(90)": 3.232541,
|
|
"p(95)": 4.803936999999996,
|
|
"p(99)": 18.022978999999985
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 121651
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.001291,
|
|
"p(90)": 0.001875,
|
|
"p(95)": 0.002125,
|
|
"p(99)": 0.003833,
|
|
"max": 26.044792,
|
|
"avg": 0.014411746372822066,
|
|
"min": 0.000458
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 18.780084,
|
|
"max": 105.782542,
|
|
"avg": 2.545485484066753,
|
|
"min": 1.0255,
|
|
"med": 1.833041,
|
|
"p(90)": 3.292334,
|
|
"p(95)": 4.860625
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 35663296,
|
|
"rate": 879990.3885584067
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 121601,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 121601,
|
|
"rate": 3000.4997642139083
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.010464512318024513,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 26.032
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 91201
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.004333,
|
|
"p(90)": 0.011875,
|
|
"p(95)": 0.023541,
|
|
"p(99)": 0.080959,
|
|
"max": 10.124084,
|
|
"avg": 0.012612751346064899,
|
|
"min": 0.001542
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 4,
|
|
"min": 4,
|
|
"max": 36
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 4.803936999999996,
|
|
"p(99)": 18.022978999999985,
|
|
"max": 105.709542,
|
|
"avg": 2.479970255764442,
|
|
"min": 0.976125,
|
|
"med": 1.779917,
|
|
"p(90)": 3.232541
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 91201,
|
|
"rate": 2250.380991900335
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 2.3847686291268957,
|
|
"min": 0.976125,
|
|
"med": 1.695292,
|
|
"p(90)": 3.132833,
|
|
"p(95)": 4.8585,
|
|
"p(99)": 16.465833,
|
|
"max": 105.709542
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 310016352,
|
|
"rate": 7649640.965768834
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 91201,
|
|
"rate": 2250.380991900335
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 2.4472981120582724,
|
|
"min": 0.960042,
|
|
"med": 1.751834,
|
|
"p(90)": 3.194041,
|
|
"p(95)": 4.764083499999999,
|
|
"p(99)": 17.745305499999994,
|
|
"max": 105.668166
|
|
}
|
|
}
|
|
}
|
|
} |