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": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 134169,
|
|
"fails": 0,
|
|
"name": "message 201"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 33561,
|
|
"fails": 0
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40725.324407
|
|
},
|
|
"metrics": {
|
|
"http_req_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 279.3586045,
|
|
"p(95)": 298.64879105,
|
|
"p(99)": 344.10705192999995,
|
|
"max": 645.6265,
|
|
"avg": 238.13211813912525,
|
|
"min": 2.029291,
|
|
"med": 232.6023335
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 125087
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 49224364,
|
|
"rate": 1208691.7591634742
|
|
}
|
|
},
|
|
"data_received": {
|
|
"values": {
|
|
"rate": 10547778.470885932,
|
|
"count": 429561700
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 167780,
|
|
"rate": 4119.795297963579
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 167730,
|
|
"rate": 4118.567560659382
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.007904487257122427,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.032667,
|
|
"max": 13.186333
|
|
}
|
|
},
|
|
"vus": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 995,
|
|
"min": 993,
|
|
"max": 1000
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"values": {
|
|
"rate": 3071.4795234018966,
|
|
"count": 125087
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"iteration_duration": {
|
|
"values": {
|
|
"med": 232.675084,
|
|
"p(90)": 279.4281545,
|
|
"p(95)": 298.73307285,
|
|
"p(99)": 344.17519806999996,
|
|
"max": 645.674292,
|
|
"avg": 238.27457261062682,
|
|
"min": 2.481292
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 253.04704149999998,
|
|
"p(90)": 292.6274278,
|
|
"p(95)": 308.13740829999995,
|
|
"p(99)": 339.94659272999996,
|
|
"max": 427.864084,
|
|
"avg": 256.5527141125274,
|
|
"min": 168.574708
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 125087,
|
|
"rate": 3071.4795234018966
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 238.13211813912525,
|
|
"min": 2.029291,
|
|
"med": 232.6023335,
|
|
"p(90)": 279.3586045,
|
|
"p(95)": 298.64879105,
|
|
"p(99)": 344.10705192999995,
|
|
"max": 645.6265
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.014427798235779546,
|
|
"min": 0.000333,
|
|
"med": 0.001167,
|
|
"p(90)": 0.001875,
|
|
"p(95)": 0.00225,
|
|
"p(99)": 0.050542,
|
|
"max": 16.97125
|
|
}
|
|
},
|
|
"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_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 1810,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.021294873411610172,
|
|
"min": 0.003834,
|
|
"med": 0.013583,
|
|
"p(90)": 0.035583,
|
|
"p(95)": 0.068833,
|
|
"p(99)": 0.129791,
|
|
"max": 13.454125
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 167780,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 298.60057945,
|
|
"p(99)": 344.08680143,
|
|
"max": 645.541001,
|
|
"avg": 238.09313693499985,
|
|
"min": 1.937667,
|
|
"med": 232.561166,
|
|
"p(90)": 279.32633780000003
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"values": {
|
|
"p(95)": 294.54468749999995,
|
|
"p(99)": 347.14012299999996,
|
|
"max": 620.805876,
|
|
"avg": 235.4179282821175,
|
|
"min": 164.504,
|
|
"med": 228.269791,
|
|
"p(90)": 274.599158
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 164.504,
|
|
"med": 233.576958,
|
|
"p(90)": 279.8425836,
|
|
"p(95)": 299.0920545,
|
|
"p(99)": 345.027938,
|
|
"max": 620.805876,
|
|
"avg": 239.66424834327196
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 2895.397439233958,
|
|
"count": 117916
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 156274,
|
|
"rate": 3837.268389521757
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.017686330718799687,
|
|
"min": 0.001458,
|
|
"med": 0.004791,
|
|
"p(90)": 0.04225,
|
|
"p(95)": 0.070125,
|
|
"p(99)": 0.19884181999999995,
|
|
"max": 5.220834
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 167730,
|
|
"fails": 0
|
|
}
|
|
}
|
|
}
|
|
} |