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": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 32344,
|
|
"fails": 0,
|
|
"name": "message 201"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 8058,
|
|
"fails": 0
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40503.203297,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 30301,
|
|
"rate": 748.1136683884048
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40452,
|
|
"rate": 998.7358210503861
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 59.156622169999984,
|
|
"max": 121.168125,
|
|
"avg": 3.8327630844952014,
|
|
"min": 0.726542,
|
|
"med": 1.311791,
|
|
"p(90)": 2.908404200000001,
|
|
"p(95)": 17.526965099999963
|
|
}
|
|
},
|
|
"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": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 202,
|
|
"min": 202,
|
|
"max": 202
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"http_req_waiting": {
|
|
"values": {
|
|
"p(95)": 17.486033549999945,
|
|
"p(99)": 59.13827908999998,
|
|
"max": 121.146709,
|
|
"avg": 3.8086475865964347,
|
|
"min": 0.688666,
|
|
"med": 1.288125,
|
|
"p(90)": 2.875795900000003
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 11832119,
|
|
"rate": 292127.9809213605
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.824375,
|
|
"med": 1.2048125,
|
|
"p(90)": 2.481166700000002,
|
|
"p(95)": 19.437960399999792,
|
|
"p(99)": 73.99584722999998,
|
|
"max": 121.168125,
|
|
"avg": 4.170367785761273
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 9,
|
|
"min": 0,
|
|
"max": 89
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.001708,
|
|
"med": 0.006875,
|
|
"p(90)": 0.0105,
|
|
"p(95)": 0.014602449999999927,
|
|
"p(99)": 0.0315,
|
|
"max": 1.544583,
|
|
"avg": 0.00750528354593091
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 102583520,
|
|
"rate": 2532726.0969405393
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.028208,
|
|
"p(95)": 0.038667,
|
|
"p(99)": 0.07322857999999997,
|
|
"max": 1.805875,
|
|
"avg": 0.016610214352813204,
|
|
"min": 0.003417,
|
|
"med": 0.0125
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.9389964000000006,
|
|
"p(95)": 17.64633539999992,
|
|
"p(99)": 59.21369582999999,
|
|
"max": 121.204667,
|
|
"avg": 3.8772359279986035,
|
|
"min": 0.780792,
|
|
"med": 1.3592295
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"count": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 3.820408350945509,
|
|
"min": 0.824375,
|
|
"med": 1.299125,
|
|
"p(90)": 2.843458,
|
|
"p(95)": 17.010167,
|
|
"p(99)": 60.085125,
|
|
"max": 121.168125
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 55.824168879999995,
|
|
"max": 119.383459,
|
|
"avg": 3.732524735496924,
|
|
"min": 0.847125,
|
|
"med": 1.325417,
|
|
"p(90)": 2.947108600000002,
|
|
"p(95)": 16.685233299999993
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 30301,
|
|
"rate": 748.1136683884048
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.000417,
|
|
"med": 0.000959,
|
|
"p(90)": 0.001584,
|
|
"p(95)": 0.001916,
|
|
"p(99)": 0.004208,
|
|
"max": 11.990541,
|
|
"avg": 0.003034025190348702
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 40402,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 40452
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.726542,
|
|
"med": 1.311791,
|
|
"p(90)": 2.908404200000001,
|
|
"p(95)": 17.526965099999963,
|
|
"p(99)": 59.156622169999984,
|
|
"max": 121.168125,
|
|
"avg": 3.8327630844952014
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_connecting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 11.972,
|
|
"avg": 0.0017975081330960149,
|
|
"min": 0,
|
|
"med": 0
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 30301
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 997.5013507880377,
|
|
"count": 40402
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter"
|
|
}
|
|
}
|
|
} |