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
{
|
|
"metrics": {
|
|
"checks": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 182403,
|
|
"fails": 0
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 136798
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"iteration_duration": {
|
|
"values": {
|
|
"min": 1.075833,
|
|
"med": 2.520416,
|
|
"p(90)": 4.6551166,
|
|
"p(95)": 8.28990359999999,
|
|
"p(99)": 29.846996979999986,
|
|
"max": 118.012917,
|
|
"avg": 3.646413438331715
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 4.5972004,
|
|
"p(95)": 8.246141799999998,
|
|
"p(99)": 29.72861832,
|
|
"max": 117.945334,
|
|
"avg": 3.594856113678596,
|
|
"min": 0.008749,
|
|
"med": 2.471417
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 6.674853999999992,
|
|
"p(99)": 40.1712881,
|
|
"max": 108.764583,
|
|
"avg": 3.5523429781383244,
|
|
"min": 1.034666,
|
|
"med": 2.212208,
|
|
"p(90)": 3.849833
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"values": {
|
|
"med": 0.001167,
|
|
"p(90)": 0.001708,
|
|
"p(95)": 0.001958,
|
|
"p(99)": 0.0035,
|
|
"max": 17.456542,
|
|
"avg": 0.003549824557557119,
|
|
"min": 0.000375
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 3.5637859009881807,
|
|
"min": 0,
|
|
"med": 2.442,
|
|
"p(90)": 4.547225000000001,
|
|
"p(95)": 8.195208399999995,
|
|
"p(99)": 29.65268367999998,
|
|
"max": 117.933917
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 4514.901660379364,
|
|
"count": 182403
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 136798,
|
|
"rate": 3386.0710478258375
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"min": 912,
|
|
"max": 912,
|
|
"value": 912
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.100375,
|
|
"med": 2.576333,
|
|
"p(90)": 5.1333082,
|
|
"p(95)": 9.704279499999984,
|
|
"p(99)": 32.55427251999997,
|
|
"max": 117.945334,
|
|
"avg": 3.843313445570706
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 33.803336459999976,
|
|
"max": 117.945334,
|
|
"avg": 3.7848398632070532,
|
|
"min": 1.034666,
|
|
"med": 2.495625,
|
|
"p(90)": 4.858979400000001,
|
|
"p(95)": 9.319175799999998
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"max": 89,
|
|
"value": 11,
|
|
"min": 6
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"values": {
|
|
"p(99)": 29.72861832,
|
|
"max": 117.945334,
|
|
"avg": 3.594856113678596,
|
|
"min": 0.008749,
|
|
"med": 2.471417,
|
|
"p(90)": 4.5972004,
|
|
"p(95)": 8.246141799999998
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.00375,
|
|
"p(90)": 0.01325,
|
|
"p(95)": 0.03883339999999999,
|
|
"p(99)": 0.12039347999999979,
|
|
"max": 5.180209,
|
|
"avg": 0.011629298082246784,
|
|
"min": 0.001458
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 182453
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 53521763,
|
|
"rate": 1324789.0475218655
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.001966769726998185,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 17.448208
|
|
}
|
|
},
|
|
"data_received": {
|
|
"values": {
|
|
"count": 469547121,
|
|
"rate": 11622391.497010741
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 136798,
|
|
"rate": 3386.0710478258375
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 182453,
|
|
"rate": 4516.13927754037
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.01944091460814581,
|
|
"min": 0.002875,
|
|
"med": 0.009708,
|
|
"p(90)": 0.05665780000000017,
|
|
"p(95)": 0.0751664,
|
|
"p(99)": 0.119125,
|
|
"max": 2.962333
|
|
}
|
|
}
|
|
},
|
|
"root_group": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 36726,
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200"
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 145677,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40400.215491,
|
|
"isStdOutTTY": false
|
|
}
|
|
} |