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.8 KiB
JSON
309 lines
5.8 KiB
JSON
{
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 18491,
|
|
"fails": 11
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 4589,
|
|
"fails": 7
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40498.29299
|
|
},
|
|
"metrics": {
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 58234336,
|
|
"rate": 1437945.4465989333
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 17856,
|
|
"rate": 0,
|
|
"passes": 0
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"values": {
|
|
"avg": 0.011708261361672778,
|
|
"min": 0.001667,
|
|
"med": 0.0075,
|
|
"p(90)": 0.0115,
|
|
"p(95)": 0.014875,
|
|
"p(99)": 0.03858598999999998,
|
|
"max": 7.957583
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"vus": {
|
|
"values": {
|
|
"value": 1,
|
|
"min": 0,
|
|
"max": 96
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 6763723,
|
|
"rate": 167012.54548358681
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.03677729999999996,
|
|
"p(99)": 0.07723026,
|
|
"max": 45.504708,
|
|
"avg": 0.02316668429237962,
|
|
"min": 0.003792,
|
|
"med": 0.0135,
|
|
"p(90)": 0.0277083
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.04543529803870954,
|
|
"min": 0.000458,
|
|
"med": 0.001125,
|
|
"p(90)": 0.001917,
|
|
"p(95)": 0.002333,
|
|
"p(99)": 0.017677259999999785,
|
|
"max": 135.269875
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"values": {
|
|
"count": 23148,
|
|
"rate": 571.5796467203147
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 203,
|
|
"min": 120,
|
|
"max": 203
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.6026002000000001,
|
|
"p(95)": 1.8849874999999994,
|
|
"p(99)": 15.61138563999998,
|
|
"max": 490.974833,
|
|
"avg": 2.917575506068302,
|
|
"min": 0.816084,
|
|
"med": 1.106958
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 9.621985893856833,
|
|
"min": 0.684625,
|
|
"med": 1.2351665,
|
|
"p(90)": 1.9423831,
|
|
"p(95)": 2.7923476999999948,
|
|
"p(99)": 235.5872425,
|
|
"max": 1711.464167
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 17856,
|
|
"rate": 440.9074724312226
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 23080,
|
|
"fails": 18,
|
|
"rate": 0.9992207117499351
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.7795916,
|
|
"p(95)": 2.1594834,
|
|
"p(99)": 54.733206959999855,
|
|
"max": 545.678625,
|
|
"avg": 3.741425793684032,
|
|
"min": 0.869542,
|
|
"med": 1.196584
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.7564270499999948,
|
|
"p(99)": 220.16646811,
|
|
"max": 1711.464167,
|
|
"avg": 8.670306098011151,
|
|
"min": 0.684625,
|
|
"med": 1.2348545,
|
|
"p(90)": 1.939625
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 18,
|
|
"fails": 23130,
|
|
"rate": 0.0007776049766718507
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 144,
|
|
"rate": 3.55570542283244
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 135.245,
|
|
"avg": 0.03475539277691375,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.7494165000000002,
|
|
"p(95)": 2.099583749999998,
|
|
"p(99)": 44.99350609999949,
|
|
"max": 545.678625,
|
|
"avg": 3.577956843805983,
|
|
"min": 0.816084,
|
|
"med": 1.1813125
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.0069248,
|
|
"p(95)": 2.80142495,
|
|
"p(99)": 236.2241587599998,
|
|
"max": 1711.512709,
|
|
"avg": 9.759623483591724,
|
|
"min": 0.774875,
|
|
"med": 1.2900835000000002
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"values": {
|
|
"count": 914,
|
|
"rate": 22.568852475478124
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.2125415,
|
|
"p(90)": 1.9057333000000003,
|
|
"p(95)": 2.756314249999999,
|
|
"p(99)": 235.43870549999994,
|
|
"max": 1711.440251,
|
|
"avg": 9.587110948202756,
|
|
"min": 0.665208
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 570.3450267818313,
|
|
"count": 23098
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"values": {
|
|
"count": 17856,
|
|
"rate": 440.9074724312226
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
}
|
|
}
|
|
} |