forked from mtusi2026/mtusi2026lab2
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": {
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 23642,
|
|
"fails": 0,
|
|
"name": "history 200"
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 94315,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40895.845449
|
|
},
|
|
"metrics": {
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.027528699999999785,
|
|
"p(99)": 0.094125,
|
|
"max": 10.417833,
|
|
"avg": 0.01661497624717302,
|
|
"min": 0.001292,
|
|
"med": 0.003917,
|
|
"p(90)": 0.012333
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"values": {
|
|
"avg": 0.0178884224495156,
|
|
"min": 0.003333,
|
|
"med": 0.011541,
|
|
"p(90)": 0.032125,
|
|
"p(95)": 0.063125,
|
|
"p(99)": 0.10445553999999996,
|
|
"max": 10.752
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 339.1661814017792,
|
|
"min": 244.486167,
|
|
"med": 328.831709,
|
|
"p(90)": 396.032167,
|
|
"p(95)": 426.21879199999995,
|
|
"p(99)": 457.6488043,
|
|
"max": 516.3265
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 64455,
|
|
"rate": 1576.0769655778342
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"values": {
|
|
"avg": 335.40983237458744,
|
|
"min": 1.562709,
|
|
"med": 328.714167,
|
|
"p(90)": 398.88951660000004,
|
|
"p(95)": 426.59167519999994,
|
|
"p(99)": 458.81579647999996,
|
|
"max": 516.3265
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"values": {
|
|
"count": 88071,
|
|
"rate": 2153.54393662874
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"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"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.022979060394723645,
|
|
"min": 0.000333,
|
|
"med": 0.000958,
|
|
"p(90)": 0.001542,
|
|
"p(95)": 0.001917,
|
|
"p(99)": 0.07574501999999991,
|
|
"max": 27.352625
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1191.5880321088114,
|
|
"count": 48731
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 423.9596832,
|
|
"p(99)": 455.97448408,
|
|
"max": 516.3265,
|
|
"avg": 337.67263776004114,
|
|
"min": 244.486167,
|
|
"med": 327.219125,
|
|
"p(90)": 394.0292832
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 117957,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 335.6204771897878,
|
|
"min": 7.727583,
|
|
"med": 328.800709,
|
|
"p(90)": 398.9639842,
|
|
"p(95)": 426.66680879999996,
|
|
"p(99)": 458.88933000000003,
|
|
"max": 516.378167
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 118007,
|
|
"rate": 2885.549832859258
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 510.938292,
|
|
"avg": 345.12689833305063,
|
|
"min": 249.126375,
|
|
"med": 334.78335400000003,
|
|
"p(90)": 402.34377100000006,
|
|
"p(95)": 433.71438524999996,
|
|
"p(99)": 465.79483575
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"rate": 7388695.420830056,
|
|
"count": 302166946
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 516.309875,
|
|
"avg": 335.37532897590296,
|
|
"min": 1.544666,
|
|
"med": 328.674125,
|
|
"p(90)": 398.8604582,
|
|
"p(95)": 426.5622421,
|
|
"p(99)": 458.80123249999997
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 34577461,
|
|
"rate": 845500.578857589
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 996,
|
|
"min": 540,
|
|
"max": 1000
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 88071
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 118007
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 26.787208,
|
|
"avg": 0.01648349581804469,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.052291939999999995
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.562709,
|
|
"med": 328.714167,
|
|
"p(90)": 398.88951660000004,
|
|
"p(95)": 426.59167519999994,
|
|
"p(99)": 458.81579647999996,
|
|
"max": 516.3265,
|
|
"avg": 335.40983237458744
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 2153.54393662874,
|
|
"count": 88071
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 997,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 117957,
|
|
"rate": 2884.3272147803054
|
|
}
|
|
}
|
|
}
|
|
} |