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": {
|
|
"checks": [
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 54917,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 13826
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": []
|
|
},
|
|
"options": {
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": ""
|
|
},
|
|
"state": {
|
|
"testRunDurationMs": 40981.366131,
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_reqs{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 50790,
|
|
"rate": 1239.343750465662
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.016209,
|
|
"p(99)": 0.043416,
|
|
"max": 2.844,
|
|
"avg": 0.007284858096026964,
|
|
"min": 0.001417,
|
|
"med": 0.004291,
|
|
"p(90)": 0.010959
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1824,
|
|
"min": 487,
|
|
"max": 1824
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 696.106626,
|
|
"avg": 530.3733093113102,
|
|
"min": 327.576334,
|
|
"med": 519.6315414999999,
|
|
"p(90)": 608.2913955,
|
|
"p(95)": 644.41952125,
|
|
"p(99)": 662.37326525
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 509.7003092938342,
|
|
"min": 2.630041,
|
|
"med": 516.650959,
|
|
"p(90)": 595.7975342000001,
|
|
"p(95)": 644.2791503,
|
|
"p(99)": 663.392154,
|
|
"max": 706.69
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"values": {
|
|
"min": 1.380833,
|
|
"med": 516.588958,
|
|
"p(90)": 595.7116169999999,
|
|
"p(95)": 644.2154672,
|
|
"p(99)": 663.3399790000001,
|
|
"max": 706.652542,
|
|
"avg": 509.2829432976664
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 664.37863726,
|
|
"max": 706.652542,
|
|
"avg": 531.652773402281,
|
|
"min": 327.576334,
|
|
"med": 520.8964100000001,
|
|
"p(90)": 609.8470212,
|
|
"p(95)": 645.3573462
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"values": {
|
|
"fails": 68793,
|
|
"rate": 0,
|
|
"passes": 0
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 68793,
|
|
"rate": 1678.6409652645066
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 509.2582157923819,
|
|
"min": 1.358,
|
|
"med": 516.562791,
|
|
"p(90)": 595.6846168,
|
|
"p(95)": 644.1969758,
|
|
"p(99)": 663.32114728,
|
|
"max": 706.628167
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 17611,
|
|
"rate": 429.7318918970422
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 547.98075613718,
|
|
"count": 22457
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 706.652542,
|
|
"avg": 536.7542972512787,
|
|
"min": 330.762625,
|
|
"med": 526.5593755,
|
|
"p(90)": 616.7854044000001,
|
|
"p(95)": 651.14475005,
|
|
"p(99)": 670.58487436
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 68743,
|
|
"rate": 1677.420898567848
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 50790,
|
|
"rate": 1239.343750465662
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.004225929222449946,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.056878279999999976,
|
|
"max": 19.139959
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 2.88825,
|
|
"avg": 0.0174426472024771,
|
|
"min": 0.003334,
|
|
"med": 0.012125,
|
|
"p(90)": 0.0325,
|
|
"p(95)": 0.057292,
|
|
"p(99)": 0.09550327999999998
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 176393681,
|
|
"rate": 4304241.113781918
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 68743,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 20134155,
|
|
"rate": 491300.23961718765
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 509.2829432976664,
|
|
"min": 1.380833,
|
|
"med": 516.588958,
|
|
"p(90)": 595.7116169999999,
|
|
"p(95)": 644.2154672,
|
|
"p(99)": 663.3399790000001,
|
|
"max": 706.652542
|
|
}
|
|
},
|
|
"vus": {
|
|
"values": {
|
|
"value": 68,
|
|
"min": 68,
|
|
"max": 912
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 50790
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.000375,
|
|
"med": 0.000875,
|
|
"p(90)": 0.001542,
|
|
"p(95)": 0.002083,
|
|
"p(99)": 0.08091608,
|
|
"max": 19.156833,
|
|
"avg": 0.006262718401580894
|
|
}
|
|
}
|
|
}
|
|
} |