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
{
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40775.584505
|
|
},
|
|
"metrics": {
|
|
"http_req_connecting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.035483599999999935,
|
|
"max": 13.52625,
|
|
"avg": 0.003062816045730209,
|
|
"min": 0
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 127804,
|
|
"rate": 3134.326620978992
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.002208,
|
|
"p(99)": 0.05430019999999956,
|
|
"max": 15.668416,
|
|
"avg": 0.006134636408194102,
|
|
"min": 0.000375,
|
|
"med": 0.001166,
|
|
"p(90)": 0.001833
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 127804,
|
|
"rate": 0,
|
|
"passes": 0
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 127804,
|
|
"rate": 3134.326620978992
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.002917,
|
|
"med": 0.013375,
|
|
"p(90)": 0.050792,
|
|
"p(95)": 0.082833,
|
|
"p(99)": 0.14065019999999992,
|
|
"max": 6.439,
|
|
"avg": 0.02287586104959831
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 288.3112815,
|
|
"p(99)": 341.0628171999999,
|
|
"max": 688.265292,
|
|
"avg": 229.1132719264847,
|
|
"min": 106.523083,
|
|
"med": 222.3235005,
|
|
"p(90)": 268.48931250000004
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"rate": 10612266.635857511,
|
|
"count": 432721375
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 169291,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 1080,
|
|
"max": 2000
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 299.920625,
|
|
"p(99)": 346.7650584,
|
|
"max": 688.265292,
|
|
"avg": 231.82020524600227,
|
|
"min": 1.54825,
|
|
"med": 228.000917,
|
|
"p(90)": 279.122542
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.676917,
|
|
"med": 228.077666,
|
|
"p(90)": 279.193084,
|
|
"p(95)": 299.993021,
|
|
"p(99)": 346.82619550000004,
|
|
"max": 688.335501,
|
|
"avg": 231.94866838627706
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 49695130,
|
|
"rate": 1218747.2136397276
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 998,
|
|
"min": 462,
|
|
"max": 1000
|
|
}
|
|
},
|
|
"iterations": {
|
|
"values": {
|
|
"count": 169291,
|
|
"rate": 4151.773715941243
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 34197,
|
|
"rate": 838.6636369567353
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 231.82020524600227,
|
|
"min": 1.54825,
|
|
"med": 228.000917,
|
|
"p(90)": 279.122542,
|
|
"p(95)": 299.920625,
|
|
"p(99)": 346.7650584,
|
|
"max": 688.265292
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 46711,
|
|
"rate": 1145.562977626285
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 227.3454375,
|
|
"p(90)": 273.7578338,
|
|
"p(95)": 292.00390795,
|
|
"p(99)": 336.69302176,
|
|
"max": 688.265292,
|
|
"avg": 233.29081136662924,
|
|
"min": 106.523083
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"values": {
|
|
"p(90)": 279.08325,
|
|
"p(95)": 299.888792,
|
|
"p(99)": 346.722467,
|
|
"max": 688.156667,
|
|
"avg": 231.7822430305199,
|
|
"min": 1.528292,
|
|
"med": 227.963334
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 169341,
|
|
"rate": 4152.99993993305
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.015086354432772401,
|
|
"min": 0.001458,
|
|
"med": 0.004708,
|
|
"p(90)": 0.025542,
|
|
"p(95)": 0.060167,
|
|
"p(99)": 0.162417,
|
|
"max": 6.100333
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 300.61940615,
|
|
"p(99)": 326.72238625,
|
|
"max": 405.748084,
|
|
"avg": 250.0770794735367,
|
|
"min": 133.562542,
|
|
"med": 246.8278125,
|
|
"p(90)": 285.5832831
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 169341
|
|
}
|
|
}
|
|
},
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 33827,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 135464,
|
|
"fails": 0,
|
|
"name": "message 201"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTimeUnit": "",
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
]
|
|
}
|
|
} |