forked from mtusi2026/mtusi2026lab2
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.9 KiB
JSON
309 lines
5.9 KiB
JSON
{
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 7089,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 28466,
|
|
"fails": 0
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": ""
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 41310.520671,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.04265031999999987,
|
|
"max": 11.583042,
|
|
"avg": 0.0049462668164583674
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"values": {
|
|
"min": 0.899042,
|
|
"med": 1.693375,
|
|
"p(90)": 11.668508600000003,
|
|
"p(95)": 202.69322069999987,
|
|
"p(99)": 369.91920681999994,
|
|
"max": 759.981125,
|
|
"avg": 20.698259647250882
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.1072366399999999,
|
|
"max": 40.710792,
|
|
"avg": 0.021599792135936078,
|
|
"min": 0.001792,
|
|
"med": 0.007125,
|
|
"p(90)": 0.0175416,
|
|
"p(95)": 0.0317918
|
|
}
|
|
},
|
|
"iterations": {
|
|
"values": {
|
|
"count": 35555,
|
|
"rate": 860.6766369071602
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.003417,
|
|
"med": 0.01675,
|
|
"p(90)": 0.04564960000000003,
|
|
"p(95)": 0.07007479999999994,
|
|
"p(99)": 0.19024499999999997,
|
|
"max": 11.898,
|
|
"avg": 0.02923056239292252
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.938125,
|
|
"med": 1.532417,
|
|
"p(90)": 34.99723310000026,
|
|
"p(95)": 228.96622949999997,
|
|
"p(99)": 403.38163050999987,
|
|
"max": 792.866069,
|
|
"avg": 26.266677642125533
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 35605,
|
|
"rate": 0,
|
|
"passes": 0
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 26554,
|
|
"rate": 642.790252184861
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"values": {
|
|
"max": 792.849986,
|
|
"avg": 20.561913240528174,
|
|
"min": 0.846209,
|
|
"med": 1.5985,
|
|
"p(90)": 11.78033300000001,
|
|
"p(95)": 202.2174831999999,
|
|
"p(99)": 369.2989049999999
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 29.77281620000004,
|
|
"p(95)": 287.1705753999999,
|
|
"p(99)": 475.66448135999997,
|
|
"max": 759.796667,
|
|
"avg": 30.3353259360015,
|
|
"min": 0.938125,
|
|
"med": 1.433583
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 447,
|
|
"rate": 10.820488164744779
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 25.25281726612414,
|
|
"min": 0.943334,
|
|
"med": 1.555792,
|
|
"p(90)": 35.28115040000002,
|
|
"p(95)": 223.48569159999997,
|
|
"p(99)": 384.20425795999995,
|
|
"max": 792.866069
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 35555,
|
|
"fails": 0,
|
|
"rate": 1
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 447,
|
|
"rate": 10.820488164744779
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 369.60077967999996,
|
|
"max": 792.866069,
|
|
"avg": 20.61274359505688,
|
|
"min": 0.86125,
|
|
"med": 1.627417,
|
|
"p(90)": 11.810191800000004,
|
|
"p(95)": 202.40426639999984
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.005291,
|
|
"p(99)": 0.06224167999999993,
|
|
"max": 11.594959,
|
|
"avg": 0.008194747254599103,
|
|
"min": 0.0005,
|
|
"med": 0.001416,
|
|
"p(90)": 0.002667
|
|
}
|
|
},
|
|
"data_received": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 90292073,
|
|
"rate": 2185691.9625654845
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1,
|
|
"min": 0,
|
|
"max": 279
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 26554,
|
|
"rate": 642.790252184861
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"values": {
|
|
"count": 10411360,
|
|
"rate": 252026.84040021742
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"http_req_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 792.866069,
|
|
"avg": 20.61274359505688,
|
|
"min": 0.86125,
|
|
"med": 1.627417,
|
|
"p(90)": 11.810191800000004,
|
|
"p(95)": 202.40426639999984,
|
|
"p(99)": 369.60077967999996
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 26554
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 35605,
|
|
"rate": 861.8869823394582
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 411,
|
|
"min": 180,
|
|
"max": 411
|
|
}
|
|
}
|
|
}
|
|
} |