forked from mtusi2026/mtusi2026lab3
One to eight replicas of 1 CPU, 512 MiB and one worker each, three repeats per rate; the 4x1 point comes from series A. Peak successful RPS: 1 720 for one replica, 2 936 for two, 4 724 for four and only 4 260 for eight, lower than four. Up to two replicas the API is the limit (101 % and 201 % of its CPU). At eight replicas the API uses 473 of its 800 % and the balancer 40 % of a core, while PostgreSQL is at 178 of 200 %, 47.5 of the 64 pool connections wait for a chat row lock and the balancer queue holds 744 requests. The locking SELECT ... FOR UPDATE of the chat takes 14.2 ms on average, 97 % of all statement time of the step, and about 7 connections sit idle in transaction: the lock holders wait for the application between round trips. A universal scalability law fit over 1, 2, 4 and 8 CPUs gives sigma 0.014 and kappa 0.038, a peak near five replicas and a decline after it. No step of this series was rejected as disturbed. 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
{
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40992.428256
|
|
},
|
|
"metrics": {
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 546.3707509912482,
|
|
"min": 362.479375,
|
|
"med": 534.9517085,
|
|
"p(90)": 640.1753752999999,
|
|
"p(95)": 671.3760423,
|
|
"p(99)": 694.05260042,
|
|
"max": 737.684292
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.001625,
|
|
"p(95)": 0.002125,
|
|
"p(99)": 0.08296297999999995,
|
|
"max": 20.345667,
|
|
"avg": 0.0060632076423611,
|
|
"min": 0.000375,
|
|
"med": 0.000958
|
|
}
|
|
},
|
|
"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_reqs{scenario:measure}": {
|
|
"values": {
|
|
"count": 49385,
|
|
"rate": 1204.7346815267426
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 49385,
|
|
"rate": 1204.7346815267426
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 622.3432252,
|
|
"p(95)": 670.012284,
|
|
"p(99)": 693.60785948,
|
|
"max": 737.684292,
|
|
"avg": 524.8543909455024,
|
|
"min": 1.44775,
|
|
"med": 531.450917
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1824,
|
|
"min": 482,
|
|
"max": 1824
|
|
}
|
|
},
|
|
"iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 66945,
|
|
"rate": 1633.106474735401
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 24258,
|
|
"rate": 591.7678223038519
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.00475,
|
|
"p(90)": 0.011292,
|
|
"p(95)": 0.01625,
|
|
"p(99)": 0.04171145999999998,
|
|
"max": 2.098708,
|
|
"avg": 0.007403542159862511,
|
|
"min": 0.001375
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"values": {
|
|
"p(95)": 669.9805883,
|
|
"p(99)": 693.59342254,
|
|
"max": 737.666917,
|
|
"avg": 524.8289927284401,
|
|
"min": 1.426417,
|
|
"med": 531.42775,
|
|
"p(90)": 622.3181418
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 622.3432252,
|
|
"p(95)": 670.012284,
|
|
"p(99)": 693.60785948,
|
|
"max": 737.684292,
|
|
"avg": 524.8543909455024,
|
|
"min": 1.44775,
|
|
"med": 531.450917
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 66995,
|
|
"rate": 1634.3262121875898
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 644.585817,
|
|
"p(95)": 677.267759,
|
|
"p(99)": 704.87274172,
|
|
"max": 732.624209,
|
|
"avg": 552.7021355184642,
|
|
"min": 366.331084,
|
|
"med": 542.206209
|
|
}
|
|
},
|
|
"data_received": {
|
|
"values": {
|
|
"count": 171051361,
|
|
"rate": 4172755.025190865
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"checks": {
|
|
"values": {
|
|
"passes": 66945,
|
|
"fails": 0,
|
|
"rate": 1
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 641.0422668000001,
|
|
"p(95)": 671.944825,
|
|
"p(99)": 696.55917884,
|
|
"max": 737.684292,
|
|
"avg": 547.638053533547,
|
|
"min": 362.479375,
|
|
"med": 536.4815
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 19017,
|
|
"rate": 463.91494256543615
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 49385
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 66995
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"values": {
|
|
"avg": 525.2910462130617,
|
|
"min": 2.128708,
|
|
"med": 531.513792,
|
|
"p(90)": 622.4628084,
|
|
"p(95)": 670.071517,
|
|
"p(99)": 693.67740052,
|
|
"max": 737.747459
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.05866606,
|
|
"max": 20.327875,
|
|
"avg": 0.004316551682961419,
|
|
"min": 0,
|
|
"med": 0
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 85,
|
|
"min": 85,
|
|
"max": 912
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.003583,
|
|
"med": 0.012625,
|
|
"p(90)": 0.032292,
|
|
"p(95)": 0.058583,
|
|
"p(99)": 0.097167,
|
|
"max": 2.174625,
|
|
"avg": 0.01799467490111182
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 19613938,
|
|
"rate": 478477.09527012805
|
|
}
|
|
}
|
|
},
|
|
"root_group": {
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 13403,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 53542,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e"
|
|
}
|
|
} |