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
{
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40714.943324
|
|
},
|
|
"metrics": {
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 259.2171545,
|
|
"p(95)": 280.58135899999996,
|
|
"p(99)": 336.78680628999996,
|
|
"max": 654.943708,
|
|
"avg": 220.18144006868414,
|
|
"min": 106.155125,
|
|
"med": 213.0111875
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 332.81440806,
|
|
"max": 654.894625,
|
|
"avg": 220.1753412615508,
|
|
"min": 1.82625,
|
|
"med": 216.3029585,
|
|
"p(90)": 263.8480625,
|
|
"p(95)": 283.5057271
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 328.08513393000004,
|
|
"max": 450.459125,
|
|
"avg": 240.24430768876357,
|
|
"min": 146.17225,
|
|
"med": 236.38970799999998,
|
|
"p(90)": 275.3655876,
|
|
"p(95)": 292.79373575
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 220.34487734656835,
|
|
"min": 3.858625,
|
|
"med": 216.4175415,
|
|
"p(90)": 263.98272529999997,
|
|
"p(95)": 283.60159565,
|
|
"p(99)": 332.89887752,
|
|
"max": 655.01525
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 29287,
|
|
"rate": 719.31820626498
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"values": {
|
|
"p(99)": 0.17168276999999987,
|
|
"max": 27.99175,
|
|
"avg": 0.01870066593812965,
|
|
"min": 0.001458,
|
|
"med": 0.004542,
|
|
"p(90)": 0.026458,
|
|
"p(95)": 0.061958
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 24.60575,
|
|
"avg": 0.007144926869008291,
|
|
"min": 0.000333,
|
|
"med": 0.001166,
|
|
"p(90)": 0.001833,
|
|
"p(95)": 0.002167,
|
|
"p(99)": 0.05396678999999994
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"values": {
|
|
"count": 38071,
|
|
"rate": 935.0620900301859
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 224.2017536866019,
|
|
"min": 106.155125,
|
|
"med": 217.82356249999998,
|
|
"p(90)": 264.3822873,
|
|
"p(95)": 283.78686435,
|
|
"p(99)": 334.32105604,
|
|
"max": 654.943708
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 132714
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 283.5291253,
|
|
"p(99)": 332.83491854,
|
|
"max": 654.943708,
|
|
"avg": 220.21860782163694,
|
|
"min": 1.84575,
|
|
"med": 216.3438125,
|
|
"p(90)": 263.91120390000003
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 132714,
|
|
"rate": 3259.5894569689813
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 654.943708,
|
|
"avg": 220.21860782163694,
|
|
"min": 1.84575,
|
|
"med": 216.3438125,
|
|
"p(90)": 263.91120390000003,
|
|
"p(95)": 283.5291253,
|
|
"p(99)": 332.83491854
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 132714,
|
|
"rate": 3259.5894569689813
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 177982,
|
|
"rate": 4371.417112966629
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.003375,
|
|
"med": 0.013167,
|
|
"p(90)": 0.053125,
|
|
"p(95)": 0.08458094999999968,
|
|
"p(99)": 0.14552374999999979,
|
|
"max": 39.188958,
|
|
"avg": 0.024565894146599463
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 177982
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 24.341583,
|
|
"avg": 0.004283312863098515,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.034542
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 456539446,
|
|
"rate": 11213068.439441653
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 1082,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 52219294,
|
|
"rate": 1282558.435227358
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 177932,
|
|
"rate": 4370.189062626436
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 996,
|
|
"min": 532,
|
|
"max": 1000
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 177932,
|
|
"fails": 0
|
|
}
|
|
}
|
|
},
|
|
"root_group": {
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 35687,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 142245,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
}
|
|
} |