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.6 KiB
JSON
309 lines
5.6 KiB
JSON
{
|
|
"root_group": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 64457,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"passes": 16344,
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0"
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40465.05088,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 16.15075,
|
|
"avg": 0.0021986496270918095,
|
|
"min": 0,
|
|
"med": 0
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 80851,
|
|
"rate": 1998.0451832314611
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"values": {
|
|
"min": 0.000417,
|
|
"med": 0.001,
|
|
"p(90)": 0.0015,
|
|
"p(95)": 0.00175,
|
|
"p(99)": 0.003,
|
|
"max": 16.164416,
|
|
"avg": 0.0034295324485782547
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60600,
|
|
"rate": 1497.588627275192
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.04297899999999997,
|
|
"max": 1.061458,
|
|
"avg": 0.007161814473537565,
|
|
"min": 0.0015,
|
|
"med": 0.004667,
|
|
"p(90)": 0.010208,
|
|
"p(95)": 0.016042
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 4,
|
|
"min": 1,
|
|
"max": 7
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 3.624244819999998,
|
|
"max": 19.312417,
|
|
"avg": 1.5622433656600756,
|
|
"min": 0.865208,
|
|
"med": 1.439334,
|
|
"p(90)": 1.9944253000000003,
|
|
"p(95)": 2.270186849999999
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 3.729666,
|
|
"max": 21.412125,
|
|
"avg": 1.597526891771138,
|
|
"min": 0.787709,
|
|
"med": 1.469167,
|
|
"p(90)": 2.036417,
|
|
"p(95)": 2.319166
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 60600
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 80801,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 23660837,
|
|
"rate": 584722.778927592
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 208279746,
|
|
"rate": 5147151.467019236
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.5507347358474497,
|
|
"min": 0.751833,
|
|
"med": 1.420625,
|
|
"p(90)": 1.983833,
|
|
"p(95)": 2.263583,
|
|
"p(99)": 3.7013129999999994,
|
|
"max": 19.312417
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.0270164,
|
|
"p(95)": 2.3155874999999995,
|
|
"p(99)": 3.85607372,
|
|
"max": 19.312417,
|
|
"avg": 1.595867705614137,
|
|
"min": 0.876375,
|
|
"med": 1.467333
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 80851
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"values": {
|
|
"max": 3.060125,
|
|
"avg": 0.015487177091192544,
|
|
"min": 0.003,
|
|
"med": 0.011125,
|
|
"p(90)": 0.028084,
|
|
"p(95)": 0.051542,
|
|
"p(99)": 0.081
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60600,
|
|
"rate": 1497.588627275192
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 404,
|
|
"min": 404,
|
|
"max": 404
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 80801,
|
|
"rate": 1996.8095490505411
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 3.7013129999999994,
|
|
"max": 19.312417,
|
|
"avg": 1.5507347358474497,
|
|
"min": 0.751833,
|
|
"med": 1.420625,
|
|
"p(90)": 1.983833,
|
|
"p(95)": 2.263583
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.3995,
|
|
"p(90)": 1.956375,
|
|
"p(95)": 2.2338335,
|
|
"p(99)": 3.6738964999999983,
|
|
"max": 19.2925,
|
|
"avg": 1.5280857442827083,
|
|
"min": 0.69425
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 18.538083,
|
|
"avg": 1.4279261411851973,
|
|
"min": 0.865208,
|
|
"med": 1.314708,
|
|
"p(90)": 1.8405414000000002,
|
|
"p(95)": 2.0555917999999997,
|
|
"p(99)": 2.9512555599999994
|
|
}
|
|
}
|
|
}
|
|
} |