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
{
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40508.225505,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60596,
|
|
"rate": 1495.893716512478
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.001042,
|
|
"p(90)": 0.001625,
|
|
"p(95)": 0.001875,
|
|
"p(99)": 0.003542,
|
|
"max": 17.030917,
|
|
"avg": 0.003487568028893811,
|
|
"min": 0.000458
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.048167,
|
|
"max": 2.351625,
|
|
"avg": 0.00795142844597253,
|
|
"min": 0.001541,
|
|
"med": 0.004916,
|
|
"p(90)": 0.011125,
|
|
"p(95)": 0.017458649999999996
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 33.425891849999985,
|
|
"p(99)": 81.42798203999999,
|
|
"max": 169.787375,
|
|
"avg": 5.3370498513970555,
|
|
"min": 0.946084,
|
|
"med": 1.5842295,
|
|
"p(90)": 4.624153900000005
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"rate": 584836.2574429684,
|
|
"count": 23690679
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"values": {
|
|
"avg": 5.586643056402131,
|
|
"min": 0.858375,
|
|
"med": 1.555208,
|
|
"p(90)": 4.962170600000003,
|
|
"p(95)": 37.594779149999994,
|
|
"p(99)": 83.12165648999998,
|
|
"max": 169.787375
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 80848,
|
|
"rate": 1995.841560376936
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 5,
|
|
"rate": 0.12343172127801158
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 60596,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 80798,
|
|
"rate": 1994.607243164156
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.031583,
|
|
"p(95)": 0.056417,
|
|
"p(99)": 0.08843825999999996,
|
|
"max": 2.8605,
|
|
"avg": 0.016849969028299945,
|
|
"min": 0.003041,
|
|
"med": 0.011917
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 0,
|
|
"rate": 1,
|
|
"passes": 80798
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 5.637774761392563,
|
|
"min": 0.912209,
|
|
"med": 1.6051665000000002,
|
|
"p(90)": 4.974241100000001,
|
|
"p(95)": 37.70129384999996,
|
|
"p(99)": 83.17723948999999,
|
|
"max": 169.835916
|
|
}
|
|
},
|
|
"data_received": {
|
|
"values": {
|
|
"count": 205471245,
|
|
"rate": 5072333.888697206
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"vus_max": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 408,
|
|
"min": 404,
|
|
"max": 408
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 80848
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 37.57773619999997,
|
|
"p(99)": 83.10228227999998,
|
|
"max": 169.773667,
|
|
"avg": 5.561841658927913,
|
|
"min": 0.83725,
|
|
"med": 1.532291,
|
|
"p(90)": 4.936587600000005
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 5,
|
|
"rate": 0.12343172127801158
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 37.594779149999994,
|
|
"p(99)": 83.12165648999998,
|
|
"max": 169.787375,
|
|
"avg": 5.586643056402131,
|
|
"min": 0.858375,
|
|
"med": 1.555208,
|
|
"p(90)": 4.962170600000003
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 17.020625,
|
|
"avg": 0.002085265918761133,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 3.7698089000000006,
|
|
"p(95)": 36.784126899999954,
|
|
"p(99)": 92.95991020999995,
|
|
"max": 165.588959,
|
|
"avg": 5.7160558153183025,
|
|
"min": 0.899458,
|
|
"med": 1.4365205
|
|
}
|
|
},
|
|
"vus": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 4,
|
|
"min": 1,
|
|
"max": 118
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60596,
|
|
"rate": 1495.893716512478
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 34.16185399999991,
|
|
"p(99)": 83.4905027,
|
|
"max": 169.787375,
|
|
"avg": 5.41250578823692,
|
|
"min": 0.899458,
|
|
"med": 1.5608955,
|
|
"p(90)": 4.4568955
|
|
}
|
|
}
|
|
},
|
|
"root_group": {
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"passes": 64714,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 16084,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e"
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
}
|
|
} |