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": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 24358,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"passes": 97244,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40531.936115
|
|
},
|
|
"metrics": {
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 17.008042,
|
|
"avg": 0.0019366293525794865,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
}
|
|
},
|
|
"checks": {
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 0,
|
|
"rate": 1,
|
|
"passes": 121602
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 175.033792,
|
|
"avg": 5.957176500065786,
|
|
"min": 1.121209,
|
|
"med": 2.060833,
|
|
"p(90)": 8.4250664,
|
|
"p(95)": 30.86040864999997,
|
|
"p(99)": 80.38051124999998
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 91201,
|
|
"rate": 2250.102233982562
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"values": {
|
|
"avg": 5.897551428755797,
|
|
"min": 1.077667,
|
|
"med": 2.004375,
|
|
"p(90)": 8.388733100000003,
|
|
"p(95)": 30.762293899999946,
|
|
"p(99)": 80.29309583999996,
|
|
"max": 174.996084
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.000458,
|
|
"med": 0.001375,
|
|
"p(90)": 0.002,
|
|
"p(95)": 0.00225,
|
|
"p(99)": 0.004458,
|
|
"max": 17.022708,
|
|
"avg": 0.0037156816246342724
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"values": {
|
|
"avg": 0.01379958671456368,
|
|
"min": 0.001583,
|
|
"med": 0.004542,
|
|
"p(90)": 0.013167,
|
|
"p(95)": 0.02875,
|
|
"p(99)": 0.1020406699999999,
|
|
"max": 18.195708
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"values": {
|
|
"avg": 6.322596639669657,
|
|
"min": 1.077667,
|
|
"med": 1.754229,
|
|
"p(90)": 5.569687500000001,
|
|
"p(95)": 40.85048974999994,
|
|
"p(99)": 92.65584634999998,
|
|
"max": 174.996084
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 81.4635,
|
|
"max": 174.996084,
|
|
"avg": 6.061004934649841,
|
|
"min": 1.077667,
|
|
"med": 1.974208,
|
|
"p(90)": 8.19525,
|
|
"p(95)": 34.962958
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 91201
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"values": {
|
|
"count": 91201,
|
|
"rate": 2250.102233982562
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 5.99540161684156,
|
|
"min": 1.116209,
|
|
"med": 2.015,
|
|
"p(90)": 8.848541800000007,
|
|
"p(95)": 34.06947069999998,
|
|
"p(99)": 78.07529061999999,
|
|
"max": 162.406208
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 6,
|
|
"min": 2,
|
|
"max": 242
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"values": {
|
|
"avg": 0.021370589254595115,
|
|
"min": 0.003042,
|
|
"med": 0.012375,
|
|
"p(90)": 0.05370390000000011,
|
|
"p(95)": 0.078083,
|
|
"p(99)": 0.124625,
|
|
"max": 9.88125
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 311316103,
|
|
"rate": 7680760.724499133
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 608,
|
|
"min": 608,
|
|
"max": 608
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 121652,
|
|
"rate": 3001.386355066794
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 8.3142586,
|
|
"p(95)": 30.652170799999976,
|
|
"p(99)": 80.2500305,
|
|
"max": 174.905292,
|
|
"avg": 5.862381252786668,
|
|
"min": 1.056833,
|
|
"med": 1.975
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 2.004375,
|
|
"p(90)": 8.388733100000003,
|
|
"p(95)": 30.762293899999946,
|
|
"p(99)": 80.29309583999996,
|
|
"max": 174.996084,
|
|
"avg": 5.897551428755797,
|
|
"min": 1.077667
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 35648821,
|
|
"rate": 879524.2570908705
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 121602,
|
|
"rate": 3000.152759912145
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 121652,
|
|
"rate": 0
|
|
}
|
|
}
|
|
}
|
|
} |