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.7 KiB
JSON
309 lines
5.7 KiB
JSON
{
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 24569,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 97033
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40488.992672
|
|
},
|
|
"metrics": {
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.069916,
|
|
"p(99)": 0.10652008999999996,
|
|
"max": 3.113125,
|
|
"avg": 0.019461242034656198,
|
|
"min": 0.002958,
|
|
"med": 0.011542,
|
|
"p(90)": 0.050541
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 91201
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 313525567,
|
|
"rate": 7743476.592264478
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 608,
|
|
"min": 608,
|
|
"max": 608
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.3582670000000006,
|
|
"p(95)": 3.0282085499999987,
|
|
"p(99)": 7.032298639999997,
|
|
"max": 29.205708,
|
|
"avg": 1.8340624513828327,
|
|
"min": 1.010041,
|
|
"med": 1.5676044999999998
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 2.0891695568013646,
|
|
"min": 0.985708,
|
|
"med": 1.7084375,
|
|
"p(90)": 2.6930673000000005,
|
|
"p(95)": 3.8290793499999993,
|
|
"p(99)": 10.553204999999995,
|
|
"max": 63.658917
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"values": {
|
|
"count": 91201,
|
|
"rate": 2252.488737835893
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 5,
|
|
"min": 3,
|
|
"max": 22
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"values": {
|
|
"min": 0.993361,
|
|
"med": 1.732875,
|
|
"p(90)": 2.68175,
|
|
"p(95)": 3.656083,
|
|
"p(99)": 9.745708,
|
|
"max": 33.955709,
|
|
"avg": 2.0801098689926496
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_failed": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 121652
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_blocked": {
|
|
"values": {
|
|
"min": 0.000417,
|
|
"med": 0.001208,
|
|
"p(90)": 0.001791,
|
|
"p(95)": 0.002,
|
|
"p(99)": 0.003458,
|
|
"max": 12.864167,
|
|
"avg": 0.00321284605267514
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.993361,
|
|
"med": 1.768375,
|
|
"p(90)": 2.7581672000000004,
|
|
"p(95)": 3.8350499999999976,
|
|
"p(99)": 10.442603319999995,
|
|
"max": 33.955709,
|
|
"avg": 2.1421613973748124
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 35624012,
|
|
"rate": 879844.3638395489
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 3003.3347824949315,
|
|
"count": 121602
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"values": {
|
|
"avg": 2.140811722471666,
|
|
"min": 1.017292,
|
|
"med": 1.760125,
|
|
"p(90)": 2.750958,
|
|
"p(95)": 3.8823204999999987,
|
|
"p(99)": 10.478524819999993,
|
|
"max": 63.953209
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 121652,
|
|
"rate": 3004.5696860255043
|
|
}
|
|
},
|
|
"checks": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 121602,
|
|
"fails": 0
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_duration": {
|
|
"values": {
|
|
"min": 0.985708,
|
|
"med": 1.7084375,
|
|
"p(90)": 2.6930673000000005,
|
|
"p(95)": 3.8290793499999993,
|
|
"p(99)": 10.553204999999995,
|
|
"max": 63.658917,
|
|
"avg": 2.0891695568013646
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.004167,
|
|
"p(90)": 0.011417,
|
|
"p(95)": 0.022375,
|
|
"p(99)": 0.07106257999999994,
|
|
"max": 3.982959,
|
|
"avg": 0.009057748734094274,
|
|
"min": 0.001417
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 91201,
|
|
"rate": 2252.488737835893
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0,
|
|
"max": 12.845084,
|
|
"avg": 0.0016400360865419382,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 10.507225909999995,
|
|
"max": 63.609291,
|
|
"avg": 2.060650566032637,
|
|
"min": 0.971125,
|
|
"med": 1.681625,
|
|
"p(90)": 2.655042,
|
|
"p(95)": 3.7772688999999997
|
|
}
|
|
}
|
|
}
|
|
} |