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.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": 39130,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 156659,
|
|
"fails": 0
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40649.784838
|
|
},
|
|
"metrics": {
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 77414,
|
|
"rate": 1904.4135241678396
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 194.235709,
|
|
"p(90)": 243.7824338,
|
|
"p(95)": 275.2458044999999,
|
|
"p(99)": 353.26920095999986,
|
|
"max": 481.548209,
|
|
"avg": 202.64331320133783,
|
|
"min": 1.379708
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 129.599083,
|
|
"med": 192.7974795,
|
|
"p(90)": 242.09743380000003,
|
|
"p(95)": 288.98427289999995,
|
|
"p(99)": 362.60721296,
|
|
"max": 481.57075,
|
|
"avg": 203.58329241212166
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 500892343,
|
|
"rate": 12322140.080105877
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 146814,
|
|
"rate": 0,
|
|
"passes": 0
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1428.9866534717426,
|
|
"count": 58088
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.020833619999999997,
|
|
"max": 27.860125,
|
|
"avg": 0.01555578644703043,
|
|
"min": 0,
|
|
"med": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 238.0805,
|
|
"p(95)": 286.73058299999997,
|
|
"p(99)": 356.45494214999997,
|
|
"max": 481.418875,
|
|
"avg": 201.67002380660068,
|
|
"min": 132.557,
|
|
"med": 191.11316699999998
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 195839
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 57498151,
|
|
"rate": 1414476.146162769
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 297.27815329999993,
|
|
"p(99)": 388.33118522999996,
|
|
"max": 481.57075,
|
|
"avg": 211.234672984303,
|
|
"min": 129.599083,
|
|
"med": 200.9398335,
|
|
"p(90)": 252.4962337
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 195789,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 243.89654199999998,
|
|
"p(95)": 275.4144002,
|
|
"p(99)": 353.48970891999994,
|
|
"max": 481.616958,
|
|
"avg": 202.85001310308465,
|
|
"min": 3.134375,
|
|
"med": 194.347667
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.07579109999999999,
|
|
"p(99)": 0.13523403999999994,
|
|
"max": 21.075709,
|
|
"avg": 0.022124245824376273,
|
|
"min": 0.002958,
|
|
"med": 0.011875,
|
|
"p(90)": 0.046875
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 146814,
|
|
"rate": 3611.67963336318
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 195789,
|
|
"rate": 4816.483058404128
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 1430,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"values": {
|
|
"max": 41.012333,
|
|
"avg": 0.03140432809604637,
|
|
"min": 0.000333,
|
|
"med": 0.001083,
|
|
"p(90)": 0.00175,
|
|
"p(95)": 0.002083,
|
|
"p(99)": 0.036385079999999854
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.21831741999999993,
|
|
"max": 38.7645,
|
|
"avg": 0.03943625620535185,
|
|
"min": 0.001333,
|
|
"med": 0.004125,
|
|
"p(90)": 0.032292,
|
|
"p(95)": 0.067625
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"values": {
|
|
"count": 195839,
|
|
"rate": 4817.7130772147875
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 146814,
|
|
"rate": 3611.67963336318
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 990,
|
|
"min": 742,
|
|
"max": 1000
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 202.70487370337085,
|
|
"min": 1.395875,
|
|
"med": 194.286958,
|
|
"p(90)": 243.82217440000002,
|
|
"p(95)": 275.2811586,
|
|
"p(99)": 353.29801303999994,
|
|
"max": 481.57075
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.395875,
|
|
"med": 194.286958,
|
|
"p(90)": 243.82217440000002,
|
|
"p(95)": 275.2811586,
|
|
"p(99)": 353.29801303999994,
|
|
"max": 481.57075,
|
|
"avg": 202.70487370337085
|
|
}
|
|
}
|
|
}
|
|
} |