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
{
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 43275,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 10727,
|
|
"fails": 0
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40520.274922
|
|
},
|
|
"metrics": {
|
|
"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_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.492125,
|
|
"p(90)": 2.0113708000000003,
|
|
"p(95)": 2.5921579999999977,
|
|
"p(99)": 11.928363659999992,
|
|
"max": 62.540916,
|
|
"avg": 1.874210047713318,
|
|
"min": 0.979834
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.003125,
|
|
"med": 0.0145,
|
|
"p(90)": 0.034167,
|
|
"p(95)": 0.055083,
|
|
"p(99)": 0.08893708999999998,
|
|
"max": 1.151,
|
|
"avg": 0.019315556168134136
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.008059691741286148,
|
|
"min": 0.001416,
|
|
"med": 0.006416,
|
|
"p(90)": 0.011333,
|
|
"p(95)": 0.015935449999999903,
|
|
"p(99)": 0.04460408999999998,
|
|
"max": 2.582917
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"values": {
|
|
"value": 270,
|
|
"min": 270,
|
|
"max": 270
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"values": {
|
|
"count": 40501,
|
|
"rate": 999.5243141356493
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.000458,
|
|
"med": 0.001208,
|
|
"p(90)": 0.001875,
|
|
"p(95)": 0.002167,
|
|
"p(99)": 0.003875,
|
|
"max": 28.424375,
|
|
"avg": 0.00421514678457774
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"values": {
|
|
"avg": 1.8468347998038737,
|
|
"min": 0.94825,
|
|
"med": 1.4654795,
|
|
"p(90)": 1.9802334000000001,
|
|
"p(95)": 2.5577900999999987,
|
|
"p(99)": 11.896466249999989,
|
|
"max": 62.512375
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"count": 0
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"values": {
|
|
"rate": 0,
|
|
"count": 0
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.686167,
|
|
"p(99)": 13.012833,
|
|
"max": 62.540916,
|
|
"avg": 1.9321132566356274,
|
|
"min": 0.987709,
|
|
"med": 1.509,
|
|
"p(90)": 2.039625
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 54052,
|
|
"rate": 1333.94948834992
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 62.674667,
|
|
"avg": 1.9276337085663449,
|
|
"min": 1.033167,
|
|
"med": 1.547875,
|
|
"p(90)": 2.0785253000000004,
|
|
"p(95)": 2.656269049999999,
|
|
"p(99)": 11.378227079999988
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 54002,
|
|
"rate": 1332.71553818309
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.492125,
|
|
"p(90)": 2.0113708000000003,
|
|
"p(95)": 2.5921579999999977,
|
|
"p(99)": 11.928363659999992,
|
|
"max": 62.540916,
|
|
"avg": 1.874210047713318,
|
|
"min": 0.979834
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 54052
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 136887656,
|
|
"rate": 3378250.919163396
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 62.540916,
|
|
"avg": 1.962099848223375,
|
|
"min": 1.023625,
|
|
"med": 1.52525,
|
|
"p(90)": 2.066225,
|
|
"p(95)": 2.7867085999999985,
|
|
"p(99)": 13.416382999999977
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.002735156145933545,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 28.408208
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2,
|
|
"min": 1,
|
|
"max": 13
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.3618581499999998,
|
|
"p(99)": 10.713516659999975,
|
|
"max": 59.717208,
|
|
"avg": 1.8112693780427263,
|
|
"min": 0.987709,
|
|
"med": 1.417625,
|
|
"p(90)": 1.9346628
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 54002,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 40501
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"values": {
|
|
"count": 15828358,
|
|
"rate": 390628.0998949043
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40501,
|
|
"rate": 999.5243141356493
|
|
}
|
|
}
|
|
}
|
|
} |