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
{
|
|
"options": {
|
|
"summaryTimeUnit": "",
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
]
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40756.51549
|
|
},
|
|
"metrics": {
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 3074.4041411181006,
|
|
"count": 125302
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"values": {
|
|
"avg": 0.012117764200042638,
|
|
"min": 0.000333,
|
|
"med": 0.001167,
|
|
"p(90)": 0.001875,
|
|
"p(95)": 0.002208,
|
|
"p(99)": 0.04891615999999994,
|
|
"max": 23.451708
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 15.458125,
|
|
"avg": 0.007594249562322319,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.031499159999999936
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 168503
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 237.09532127615728,
|
|
"min": 1.894583,
|
|
"med": 231.634875,
|
|
"p(90)": 279.3004834,
|
|
"p(95)": 299.0462372,
|
|
"p(99)": 347.50454049999996,
|
|
"max": 702.929903
|
|
}
|
|
},
|
|
"vus": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 999,
|
|
"min": 964,
|
|
"max": 1000
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 125302
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"values": {
|
|
"max": 481.503167,
|
|
"avg": 256.6103840897495,
|
|
"min": 162.435833,
|
|
"med": 252.89602050000002,
|
|
"p(90)": 292.9944039,
|
|
"p(95)": 309.9074564,
|
|
"p(99)": 340.76911523
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"dropped_iterations": {
|
|
"values": {
|
|
"rate": 3816.494077815974,
|
|
"count": 155547
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 0,
|
|
"rate": 1,
|
|
"passes": 168453
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 117700,
|
|
"rate": 2887.8818168073967
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 353.43032398,
|
|
"max": 702.948278,
|
|
"avg": 234.9562914155929,
|
|
"min": 159.109917,
|
|
"med": 227.639521,
|
|
"p(90)": 275.16444260000003,
|
|
"p(95)": 297.1774792
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.001458,
|
|
"med": 0.004708,
|
|
"p(90)": 0.039708,
|
|
"p(95)": 0.068042,
|
|
"p(99)": 0.18320717999999994,
|
|
"max": 5.528708,
|
|
"avg": 0.016845818044783606
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 4.881958,
|
|
"med": 231.751625,
|
|
"p(90)": 279.4257998,
|
|
"p(95)": 299.14802579999997,
|
|
"p(99)": 347.62935716,
|
|
"max": 703.010625,
|
|
"avg": 237.2724580965197
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 125302,
|
|
"rate": 3074.4041411181006
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"rate": 10562499.831606679,
|
|
"count": 430490688
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 1775,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.914041,
|
|
"med": 231.675875,
|
|
"p(90)": 279.3607,
|
|
"p(95)": 299.08115,
|
|
"p(99)": 347.52959549999997,
|
|
"max": 702.948278,
|
|
"avg": 237.132972390882
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 237.132972390882,
|
|
"min": 1.914041,
|
|
"med": 231.675875,
|
|
"p(90)": 279.3607,
|
|
"p(95)": 299.08115,
|
|
"p(99)": 347.52959549999997,
|
|
"max": 702.948278
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.034875,
|
|
"p(95)": 0.06757889999999969,
|
|
"p(99)": 0.125667,
|
|
"max": 6.260333,
|
|
"avg": 0.020805296689080013,
|
|
"min": 0.003875,
|
|
"med": 0.013541
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 168453,
|
|
"rate": 4133.155103539986
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 4134.3819012531585,
|
|
"count": 168503
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 49446062,
|
|
"rate": 1213206.3157394323
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 702.948278,
|
|
"avg": 239.2887689765345,
|
|
"min": 159.109917,
|
|
"med": 232.78858300000002,
|
|
"p(90)": 280.6277834,
|
|
"p(95)": 301.00618125,
|
|
"p(99)": 350.325947
|
|
}
|
|
}
|
|
},
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 134824
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 33629,
|
|
"fails": 0
|
|
}
|
|
]
|
|
}
|
|
} |