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.8 KiB
JSON
309 lines
5.8 KiB
JSON
{
|
|
"root_group": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 36522,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 144338
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": ""
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40551.42663
|
|
},
|
|
"metrics": {
|
|
"http_req_tls_handshaking": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 53055059,
|
|
"rate": 1308340.1352087029
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"min": 912,
|
|
"max": 1452,
|
|
"value": 1452
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 1042,
|
|
"rate": 25.695766748416368
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 135757,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.016417,
|
|
"p(95)": 0.04960654999999967,
|
|
"p(99)": 0.15470430999999996,
|
|
"max": 13.915125,
|
|
"avg": 0.015127283378476237,
|
|
"min": 0.001583,
|
|
"med": 0.004209
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 180910,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 23.9975,
|
|
"avg": 0.0023119990050301277,
|
|
"min": 0,
|
|
"med": 0
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 10.060020999999999,
|
|
"p(90)": 118.02791640000002,
|
|
"p(95)": 145.35418315,
|
|
"p(99)": 188.82756449999994,
|
|
"max": 282.380458,
|
|
"avg": 40.92442356941554,
|
|
"min": 1.199208
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 3347.7737106187724,
|
|
"count": 135757
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 1543,
|
|
"rate": 38.050449225342085
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"values": {
|
|
"avg": 44.28565201712592,
|
|
"min": 1.218542,
|
|
"med": 15.331041,
|
|
"p(90)": 123.7439418,
|
|
"p(95)": 150.2819164,
|
|
"p(99)": 195.80312556,
|
|
"max": 282.380458
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 180910,
|
|
"rate": 4461.248716368526
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.010792,
|
|
"p(90)": 0.059167,
|
|
"p(95)": 0.081292,
|
|
"p(99)": 0.13637121999999993,
|
|
"max": 9.3575,
|
|
"avg": 0.021738735857608604,
|
|
"min": 0.002833
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 147.98029374999996,
|
|
"p(99)": 193.68390265999994,
|
|
"max": 282.380458,
|
|
"avg": 43.37298732050118,
|
|
"min": 1.269417,
|
|
"med": 15.367583,
|
|
"p(90)": 121.31347940000002
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 188.82756449999994,
|
|
"max": 282.380458,
|
|
"avg": 40.92442356941554,
|
|
"min": 1.199208,
|
|
"med": 10.060020999999999,
|
|
"p(90)": 118.02791640000002,
|
|
"p(95)": 145.35418315
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 180860,
|
|
"rate": 4460.01571412532
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"values": {
|
|
"avg": 40.88755755017924,
|
|
"min": 1.162792,
|
|
"med": 10.011624999999999,
|
|
"p(90)": 117.99794590000002,
|
|
"p(95)": 145.32835914999998,
|
|
"p(99)": 188.81357674999992,
|
|
"max": 282.313709
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 180860,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"values": {
|
|
"avg": 0.004474751091703059,
|
|
"min": 0.000333,
|
|
"med": 0.001292,
|
|
"p(90)": 0.001917,
|
|
"p(95)": 0.00225,
|
|
"p(99)": 0.012584,
|
|
"max": 24.01075
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 466709195,
|
|
"rate": 11509069.68719882
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.218542,
|
|
"med": 15.03775,
|
|
"p(90)": 132.83085820000002,
|
|
"p(95)": 159.6422917,
|
|
"p(99)": 205.99573414,
|
|
"max": 278.056625,
|
|
"avg": 47.902346531602994
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 135757,
|
|
"rate": 3347.7737106187724
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 188.93195715999997,
|
|
"max": 282.427959,
|
|
"avg": 40.992013636906925,
|
|
"min": 1.248209,
|
|
"med": 10.126958,
|
|
"p(90)": 118.11082110000001,
|
|
"p(95)": 145.43496249999998
|
|
}
|
|
},
|
|
"vus": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 71,
|
|
"min": 10,
|
|
"max": 837
|
|
},
|
|
"type": "gauge"
|
|
}
|
|
}
|
|
} |