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": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 64671,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 16132,
|
|
"fails": 0
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40481.830796,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.6873931689362123,
|
|
"min": 0.831667,
|
|
"med": 1.518709,
|
|
"p(90)": 2.2155664,
|
|
"p(95)": 2.6612001999999997,
|
|
"p(99)": 4.903953319999994,
|
|
"max": 31.093083
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.810291,
|
|
"med": 1.493833,
|
|
"p(90)": 2.1842754,
|
|
"p(95)": 2.6204753999999997,
|
|
"p(99)": 4.863521319999998,
|
|
"max": 31.070792,
|
|
"avg": 1.6614907905210567
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"values": {
|
|
"med": 0.012583,
|
|
"p(90)": 0.032458,
|
|
"p(95)": 0.058708,
|
|
"p(99)": 0.09710367999999997,
|
|
"max": 1.131958,
|
|
"avg": 0.017826108567399985,
|
|
"min": 0.003166
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.930292,
|
|
"med": 1.5950205,
|
|
"p(90)": 2.3026292,
|
|
"p(95)": 2.750289349999999,
|
|
"p(99)": 4.88036557,
|
|
"max": 31.093083,
|
|
"avg": 1.7686221678962941
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"vus": {
|
|
"values": {
|
|
"max": 7,
|
|
"value": 6,
|
|
"min": 0
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 80853,
|
|
"rate": 1997.2663886532787
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60602,
|
|
"rate": 1497.0172743765352
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.008076269847748358,
|
|
"min": 0.0015,
|
|
"med": 0.00525,
|
|
"p(90)": 0.011625,
|
|
"p(95)": 0.018266399999999853,
|
|
"p(99)": 0.052583,
|
|
"max": 3.038083
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 80853
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.280125,
|
|
"p(95)": 2.7250704999999997,
|
|
"p(99)": 4.887988659999999,
|
|
"max": 31.149833,
|
|
"avg": 1.7398259418462216,
|
|
"min": 0.864875,
|
|
"med": 1.571791
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.916958,
|
|
"med": 1.4376875,
|
|
"p(90)": 2.0623712,
|
|
"p(95)": 2.4127142499999996,
|
|
"p(99)": 3.9790019099999983,
|
|
"max": 20.025708,
|
|
"avg": 1.5785567574929638
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 60602
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"values": {
|
|
"avg": 0.002073706281770621,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 16.165
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"data_sent": {
|
|
"values": {
|
|
"count": 23686635,
|
|
"rate": 585117.6820377519
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 4.714615169999997,
|
|
"max": 31.093083,
|
|
"avg": 1.7307420644863245,
|
|
"min": 0.916958,
|
|
"med": 1.5653955,
|
|
"p(90)": 2.2589917,
|
|
"p(95)": 2.691112499999999
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60602,
|
|
"rate": 1497.0172743765352
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0
|
|
}
|
|
},
|
|
"data_received": {
|
|
"contains": "data",
|
|
"values": {
|
|
"rate": 5090755.678479913,
|
|
"count": 206083110
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 80803,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0035187864766923044,
|
|
"min": 0.000416,
|
|
"med": 0.001167,
|
|
"p(90)": 0.001792,
|
|
"p(95)": 0.002042,
|
|
"p(99)": 0.0033946799999999707,
|
|
"max": 16.185709
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"min": 404,
|
|
"max": 404,
|
|
"value": 404
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.6612001999999997,
|
|
"p(99)": 4.903953319999994,
|
|
"max": 31.093083,
|
|
"avg": 1.6873931689362123,
|
|
"min": 0.831667,
|
|
"med": 1.518709,
|
|
"p(90)": 2.2155664
|
|
}
|
|
},
|
|
"iterations": {
|
|
"values": {
|
|
"count": 80803,
|
|
"rate": 1996.031266648744
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
}
|
|
}
|
|
} |