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": {
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 54052
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 13.471083,
|
|
"avg": 0.0017908404314363952,
|
|
"min": 0
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 15802229,
|
|
"rate": 389913.9147269138
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.003083,
|
|
"med": 0.014167,
|
|
"p(90)": 0.034416,
|
|
"p(95)": 0.0567274499999999,
|
|
"p(99)": 0.087458,
|
|
"max": 0.592791,
|
|
"avg": 0.01891733628727888
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.69563793928054,
|
|
"min": 0.91875,
|
|
"med": 1.344417,
|
|
"p(90)": 1.7646249,
|
|
"p(95)": 2.05089015,
|
|
"p(99)": 8.384747419999972,
|
|
"max": 68.544917
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.684674399999996,
|
|
"p(99)": 13.204223439999998,
|
|
"max": 89.751042,
|
|
"avg": 1.9662533186827,
|
|
"min": 1.008041,
|
|
"med": 1.489917,
|
|
"p(90)": 1.9965828000000003
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 40501
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_reqs": {
|
|
"values": {
|
|
"count": 54052,
|
|
"rate": 1333.7122831734146
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_blocked": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.001125,
|
|
"p(90)": 0.00175,
|
|
"p(95)": 0.002,
|
|
"p(99)": 0.003625,
|
|
"max": 13.486333,
|
|
"avg": 0.0032011932768444117,
|
|
"min": 0.000417
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 139277030,
|
|
"rate": 3436607.076054765
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40501,
|
|
"rate": 999.346577014846
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 1.420709,
|
|
"avg": 0.007411343854066265,
|
|
"min": 0.001583,
|
|
"med": 0.005708,
|
|
"p(90)": 0.010875,
|
|
"p(95)": 0.015333,
|
|
"p(99)": 0.044062069999999974
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 270,
|
|
"min": 270,
|
|
"max": 270
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 3,
|
|
"min": 1,
|
|
"max": 11
|
|
}
|
|
},
|
|
"iterations": {
|
|
"values": {
|
|
"count": 54002,
|
|
"rate": 1332.4785524297108
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.56275,
|
|
"p(99)": 12.442541,
|
|
"max": 89.751042,
|
|
"avg": 1.9109021470334264,
|
|
"min": 0.91875,
|
|
"med": 1.467958,
|
|
"p(90)": 1.940083
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.92575,
|
|
"p(95)": 2.522208,
|
|
"p(99)": 11.335011159999999,
|
|
"max": 89.751042,
|
|
"avg": 1.8693903216532202,
|
|
"min": 0.883333,
|
|
"med": 1.464125
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"values": {
|
|
"p(95)": 2.582808999999999,
|
|
"p(99)": 11.336665919999998,
|
|
"max": 89.832875,
|
|
"avg": 1.9184299297803853,
|
|
"min": 0.925333,
|
|
"med": 1.518584,
|
|
"p(90)": 1.989667
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.8959959,
|
|
"p(95)": 2.489459749999999,
|
|
"p(99)": 11.305263169999998,
|
|
"max": 89.711625,
|
|
"avg": 1.8430616415118861,
|
|
"min": 0.862542,
|
|
"med": 1.437917
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40501,
|
|
"rate": 999.346577014846
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.8693903216532202,
|
|
"min": 0.883333,
|
|
"med": 1.464125,
|
|
"p(90)": 1.92575,
|
|
"p(95)": 2.522208,
|
|
"p(99)": 11.335011159999999,
|
|
"max": 89.751042
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 54002,
|
|
"fails": 0
|
|
}
|
|
}
|
|
},
|
|
"root_group": {
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 43058,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 10944,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e"
|
|
},
|
|
"options": {
|
|
"summaryTimeUnit": "",
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
]
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40527.481588,
|
|
"isStdOutTTY": false
|
|
}
|
|
} |