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": {
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"passes": 28924,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 7077,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e"
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40491.994963
|
|
},
|
|
"metrics": {
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1,
|
|
"min": 1,
|
|
"max": 9
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 36051,
|
|
"rate": 890.3241253719899
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 27001
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"values": {
|
|
"avg": 1.5818953579622745,
|
|
"min": 0.847084,
|
|
"med": 1.313667,
|
|
"p(90)": 1.775875,
|
|
"p(95)": 2.23275,
|
|
"p(99)": 8.019708,
|
|
"max": 39.273
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 36001,
|
|
"rate": 889.0893134037061
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 8.2829585,
|
|
"max": 39.0885,
|
|
"avg": 1.513715490527307,
|
|
"min": 0.716458,
|
|
"med": 1.239292,
|
|
"p(90)": 1.682166,
|
|
"p(95)": 2.147124999999999
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"values": {
|
|
"avg": 1.56374739144858,
|
|
"min": 0.855375,
|
|
"med": 1.2797295,
|
|
"p(90)": 1.7302748000000001,
|
|
"p(95)": 2.1900267499999995,
|
|
"p(99)": 8.409701749999998,
|
|
"max": 39.124875
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0,
|
|
"max": 12.845875,
|
|
"avg": 0.0017272764694460628,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 27001,
|
|
"rate": 666.823159112621
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 36001,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"values": {
|
|
"max": 180,
|
|
"value": 180,
|
|
"min": 180
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.1821249999999988,
|
|
"p(99)": 8.311041499999998,
|
|
"max": 39.124875,
|
|
"avg": 1.53905726160162,
|
|
"min": 0.749208,
|
|
"med": 1.263584,
|
|
"p(90)": 1.713666
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.004062499999999986,
|
|
"max": 12.858875,
|
|
"avg": 0.0030890714543282513,
|
|
"min": 0.000416,
|
|
"med": 0.001,
|
|
"p(90)": 0.001625,
|
|
"p(95)": 0.001917
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 1.383584,
|
|
"avg": 0.007572822085379031,
|
|
"min": 0.001625,
|
|
"med": 0.006833,
|
|
"p(90)": 0.010708,
|
|
"p(95)": 0.014729499999999934,
|
|
"p(99)": 0.035332999999999976
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.4107482792146502,
|
|
"min": 0.825167,
|
|
"med": 1.187541,
|
|
"p(90)": 1.6224754000000001,
|
|
"p(95)": 1.9405743999999998,
|
|
"p(99)": 5.572708639999996,
|
|
"max": 32.938375
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.146917,
|
|
"p(99)": 7.981125,
|
|
"max": 39.124875,
|
|
"avg": 1.5337323439502237,
|
|
"min": 0.825167,
|
|
"med": 1.267417,
|
|
"p(90)": 1.711458
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 36051
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.53905726160162,
|
|
"min": 0.749208,
|
|
"med": 1.263584,
|
|
"p(90)": 1.713666,
|
|
"p(95)": 2.1821249999999988,
|
|
"p(99)": 8.311041499999998,
|
|
"max": 39.124875
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"values": {
|
|
"count": 27001,
|
|
"rate": 666.823159112621
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.01776894898893222,
|
|
"min": 0.003333,
|
|
"med": 0.013292,
|
|
"p(90)": 0.030708,
|
|
"p(95)": 0.042979499999999934,
|
|
"p(99)": 0.07258349999999997,
|
|
"max": 1.526083
|
|
}
|
|
},
|
|
"data_received": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 90181247,
|
|
"rate": 2227137.662207162
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"count": 0
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 10554456,
|
|
"rate": 260655.37175049656
|
|
}
|
|
}
|
|
}
|
|
} |