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.8 KiB
JSON
309 lines
5.8 KiB
JSON
{
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 55641,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 13834,
|
|
"fails": 0
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": ""
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40998.07345,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 415.09267553156207,
|
|
"count": 17018
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 720.220917,
|
|
"avg": 524.121926836436,
|
|
"min": 319.798334,
|
|
"med": 516.442896,
|
|
"p(90)": 595.6371882000001,
|
|
"p(95)": 650.6239085499999,
|
|
"p(99)": 676.98747796
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 69475,
|
|
"rate": 1694.5918223384226
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 16.968041,
|
|
"avg": 0.0038010103128371113,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.056406159999999976
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.000375,
|
|
"med": 0.000875,
|
|
"p(90)": 0.001542,
|
|
"p(95)": 0.002,
|
|
"p(99)": 0.07869815999999998,
|
|
"max": 16.986916,
|
|
"avg": 0.005441726127291707
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 51381,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 51381,
|
|
"rate": 1253.2540111345158
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 176714351,
|
|
"rate": 4310308.659149934
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 651.614876,
|
|
"p(99)": 681.427367,
|
|
"max": 724.653292,
|
|
"avg": 525.4434012506812,
|
|
"min": 319.798334,
|
|
"med": 517.677958,
|
|
"p(90)": 598.431667
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 724.693208,
|
|
"avg": 502.40508882222093,
|
|
"min": 1.793167,
|
|
"med": 513.545709,
|
|
"p(90)": 576.1350838000001,
|
|
"p(95)": 649.3345005999998,
|
|
"p(99)": 679.90276016
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 69525,
|
|
"rate": 1695.8113918399256
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"values": {
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.010709,
|
|
"p(95)": 0.015667,
|
|
"p(99)": 0.04086491999999998,
|
|
"max": 4.603459,
|
|
"avg": 0.0071073032290539335,
|
|
"min": 0.001458,
|
|
"med": 0.004167
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 69475,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 51381,
|
|
"rate": 1253.2540111345158
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 69525,
|
|
"rate": 0,
|
|
"passes": 0
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 679.81424684,
|
|
"max": 724.629167,
|
|
"avg": 501.9746362643971,
|
|
"min": 1.448417,
|
|
"med": 513.445333,
|
|
"p(90)": 575.7640504,
|
|
"p(95)": 649.2221835999998
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 20365739,
|
|
"rate": 496748.6831994053
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1824,
|
|
"min": 456,
|
|
"max": 1824
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 112,
|
|
"min": 112,
|
|
"max": 912
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 21725,
|
|
"rate": 529.9029484030548
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 575.8073834,
|
|
"p(95)": 649.2596505999999,
|
|
"p(99)": 679.8565049199999,
|
|
"max": 724.653292,
|
|
"avg": 501.99875150252313,
|
|
"min": 1.466541,
|
|
"med": 513.472041
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 575.8073834,
|
|
"p(95)": 649.2596505999999,
|
|
"p(99)": 679.8565049199999,
|
|
"max": 724.653292,
|
|
"avg": 501.99875150252313,
|
|
"min": 1.466541,
|
|
"med": 513.472041
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 522.789959,
|
|
"p(90)": 606.1206754000001,
|
|
"p(95)": 656.282467,
|
|
"p(99)": 688.3721469999999,
|
|
"max": 724.653292,
|
|
"avg": 530.7832313472013,
|
|
"min": 328.951459
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 1.118167,
|
|
"avg": 0.017007934901114588,
|
|
"min": 0.003417,
|
|
"med": 0.011959,
|
|
"p(90)": 0.031042,
|
|
"p(95)": 0.05625,
|
|
"p(99)": 0.095042
|
|
}
|
|
}
|
|
}
|
|
} |