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
{
|
|
"root_group": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"passes": 28907,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
},
|
|
{
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 7095,
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200"
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40516.535616
|
|
},
|
|
"metrics": {
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.002743493037834242,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 21.162292
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 27001,
|
|
"rate": 666.4192678245001
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.5358569342893575,
|
|
"min": 0.775417,
|
|
"med": 1.251875,
|
|
"p(90)": 1.6651083000000002,
|
|
"p(95)": 2.0621581499999997,
|
|
"p(99)": 8.183535079999992,
|
|
"max": 45.303292
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.013416,
|
|
"p(90)": 0.03099590000000003,
|
|
"p(95)": 0.042125,
|
|
"p(99)": 0.07120849,
|
|
"max": 2.529959,
|
|
"avg": 0.017789765505381094,
|
|
"min": 0.003125
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 27001,
|
|
"rate": 666.4192678245001
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 0,
|
|
"rate": 1,
|
|
"passes": 36002
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 180,
|
|
"min": 180,
|
|
"max": 180
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 10552676,
|
|
"rate": 260453.56147954424
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 36052
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"values": {
|
|
"med": 0.001,
|
|
"p(90)": 0.001625,
|
|
"p(95)": 0.001916,
|
|
"p(99)": 0.003792,
|
|
"max": 21.170584,
|
|
"avg": 0.003991941196049825,
|
|
"min": 0.000417
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"values": {
|
|
"p(95)": 2.0928204999999998,
|
|
"p(99)": 8.22565607999999,
|
|
"max": 45.315083,
|
|
"avg": 1.5612428744591114,
|
|
"min": 0.7945,
|
|
"med": 1.276875,
|
|
"p(90)": 1.695833
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration": {
|
|
"values": {
|
|
"max": 45.315083,
|
|
"avg": 1.5612428744591114,
|
|
"min": 0.7945,
|
|
"med": 1.276875,
|
|
"p(90)": 1.695833,
|
|
"p(95)": 2.0928204999999998,
|
|
"p(99)": 8.22565607999999
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.277125,
|
|
"p(90)": 1.677208,
|
|
"p(95)": 2.019416,
|
|
"p(99)": 6.424708,
|
|
"max": 45.315083,
|
|
"avg": 1.5041934956853518,
|
|
"min": 0.897917
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 27001,
|
|
"rate": 0,
|
|
"passes": 0
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.010625,
|
|
"p(95)": 0.015,
|
|
"p(99)": 0.035644249999999954,
|
|
"max": 2.868208,
|
|
"avg": 0.007596174664373652,
|
|
"min": 0.001666,
|
|
"med": 0.006875
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 90397547,
|
|
"rate": 2231127.257689376
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2,
|
|
"min": 0,
|
|
"max": 3
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 36002,
|
|
"rate": 888.5754779533222
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.5262110241708593,
|
|
"min": 0.927416,
|
|
"med": 1.290583,
|
|
"p(90)": 1.6969672,
|
|
"p(95)": 2.0499756,
|
|
"p(99)": 6.587885979999999,
|
|
"max": 41.606167
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.8275,
|
|
"med": 1.326334,
|
|
"p(90)": 1.7534128,
|
|
"p(95)": 2.1453204999999995,
|
|
"p(99)": 7.70381884,
|
|
"max": 45.365625,
|
|
"avg": 1.6041708951724938
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 36052,
|
|
"rate": 889.8095420024769
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 5.818678819999999,
|
|
"max": 45.315083,
|
|
"avg": 1.414505784291623,
|
|
"min": 0.897917,
|
|
"med": 1.1933335,
|
|
"p(90)": 1.5982167,
|
|
"p(95)": 1.8633055999999983
|
|
}
|
|
}
|
|
}
|
|
} |