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": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"passes": 43362,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 10638,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40481.631991
|
|
},
|
|
"metrics": {
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 54050,
|
|
"rate": 1335.1734438971373
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 135924568,
|
|
"rate": 3357684.987359679
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 4.2445998499999975,
|
|
"p(99)": 22.164474739999996,
|
|
"max": 119.559083,
|
|
"avg": 2.036510589546733,
|
|
"min": 0.726959,
|
|
"med": 1.269375,
|
|
"p(90)": 1.93975
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 54050
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.005334,
|
|
"p(90)": 0.010375,
|
|
"p(95)": 0.014166,
|
|
"p(99)": 0.035917329999999956,
|
|
"max": 1.2305,
|
|
"avg": 0.006959343940795404,
|
|
"min": 0.001459
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.2048125,
|
|
"p(90)": 1.7666250000000001,
|
|
"p(95)": 3.481271249999997,
|
|
"p(99)": 24.304020799999993,
|
|
"max": 93.193875,
|
|
"avg": 2.0028003314157066,
|
|
"min": 0.849875
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 119.645834,
|
|
"avg": 2.1077150763888945,
|
|
"min": 0.782292,
|
|
"med": 1.34275,
|
|
"p(90)": 2.0273128000000002,
|
|
"p(95)": 4.254933949999995,
|
|
"p(99)": 22.2613555
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.9652082,
|
|
"p(95)": 4.088749699999999,
|
|
"p(99)": 21.681558019999944,
|
|
"max": 96.667125,
|
|
"avg": 2.055015175214194,
|
|
"min": 0.849875,
|
|
"med": 1.307666
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 40499
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40499,
|
|
"rate": 1000.4290343087912
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40499,
|
|
"rate": 1000.4290343087912
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0022937395004625364,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 15.984917
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.033458,
|
|
"p(95)": 0.050273099999999904,
|
|
"p(99)": 0.079584,
|
|
"max": 1.557833,
|
|
"avg": 0.017863196096207158,
|
|
"min": 0.002792,
|
|
"med": 0.013292
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.864625,
|
|
"med": 1.324125,
|
|
"p(90)": 2.007050200000001,
|
|
"p(95)": 4.307012799999992,
|
|
"p(99)": 21.25470949999997,
|
|
"max": 96.667125,
|
|
"avg": 2.0678604476817624
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_blocked": {
|
|
"values": {
|
|
"min": 0.000458,
|
|
"med": 0.001,
|
|
"p(90)": 0.001583,
|
|
"p(95)": 0.001833,
|
|
"p(99)": 0.003625,
|
|
"max": 15.995666,
|
|
"avg": 0.0035202896392226572
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 270,
|
|
"min": 270,
|
|
"max": 270
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 2.061333129583709,
|
|
"min": 0.736917,
|
|
"med": 1.293209,
|
|
"p(90)": 1.9680125000000002,
|
|
"p(95)": 4.2730956499999975,
|
|
"p(99)": 22.188422839999998,
|
|
"max": 119.596917
|
|
}
|
|
},
|
|
"iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 54000,
|
|
"rate": 1333.9383158269272
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 2.061333129583709,
|
|
"min": 0.736917,
|
|
"med": 1.293209,
|
|
"p(90)": 1.9680125000000002,
|
|
"p(95)": 4.2730956499999975,
|
|
"p(99)": 22.188422839999998,
|
|
"max": 119.596917
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 15838215,
|
|
"rate": 391244.4785704588
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 54000,
|
|
"fails": 0,
|
|
"rate": 1
|
|
}
|
|
},
|
|
"vus": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1,
|
|
"min": 0,
|
|
"max": 32
|
|
},
|
|
"type": "gauge"
|
|
}
|
|
}
|
|
} |