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": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 55839,
|
|
"fails": 0,
|
|
"name": "message 201"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 14000,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTimeUnit": "",
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
]
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 41027.047213
|
|
},
|
|
"metrics": {
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 695.4713439999999,
|
|
"p(99)": 712.2384921,
|
|
"max": 752.423667,
|
|
"avg": 579.4187693949016,
|
|
"min": 450.583334,
|
|
"med": 565.570938,
|
|
"p(90)": 677.0848545
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 69889,
|
|
"rate": 0,
|
|
"passes": 0
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1702.267278398493,
|
|
"count": 69839
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.00649367109273276,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.05758803999999998,
|
|
"max": 20.613666
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 584.71939946209,
|
|
"min": 450.583334,
|
|
"med": 571.111959,
|
|
"p(90)": 680.3319334,
|
|
"p(95)": 701.6859999,
|
|
"p(99)": 719.19101702,
|
|
"max": 752.423667
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"values": {
|
|
"avg": 0.007785171271587501,
|
|
"min": 0.001333,
|
|
"med": 0.003917,
|
|
"p(90)": 0.010917,
|
|
"p(95)": 0.017417,
|
|
"p(99)": 0.05243703999999989,
|
|
"max": 4.113
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 178645661,
|
|
"rate": 4354338.738357792
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1241.595568297668,
|
|
"count": 50939
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"values": {
|
|
"p(99)": 708.9348115,
|
|
"max": 744.119667,
|
|
"avg": 578.0817603275628,
|
|
"min": 451.035542,
|
|
"med": 563.951375,
|
|
"p(90)": 676.590559,
|
|
"p(95)": 694.7925465000001
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 69839,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 51666
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 816,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.016265360543146992,
|
|
"min": 0.002958,
|
|
"med": 0.011917,
|
|
"p(90)": 0.026167,
|
|
"p(95)": 0.049959,
|
|
"p(99)": 0.090083,
|
|
"max": 7.467709
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 20461009,
|
|
"rate": 498720.0003395964
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 69889,
|
|
"rate": 1703.4859866262732
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 2.692916,
|
|
"med": 563.588167,
|
|
"p(90)": 675.3504000000001,
|
|
"p(95)": 697.0947004,
|
|
"p(99)": 714.89920708,
|
|
"max": 762.028959,
|
|
"avg": 567.4421565526138
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 51666,
|
|
"rate": 1259.3155859295887
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 675.2051584000001,
|
|
"p(95)": 697.0208668,
|
|
"p(99)": 714.82533004,
|
|
"max": 761.951042,
|
|
"avg": 566.9622531005599,
|
|
"min": 1.350333,
|
|
"med": 563.49525
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 66967,
|
|
"rate": 1632.2646777948123
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 566.9863036323745,
|
|
"min": 1.364625,
|
|
"med": 563.522292,
|
|
"p(90)": 675.224759,
|
|
"p(95)": 697.0408254,
|
|
"p(99)": 714.84582008,
|
|
"max": 761.980125
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"max": 1000,
|
|
"value": 189,
|
|
"min": 189
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 566.9863036323745,
|
|
"min": 1.364625,
|
|
"med": 563.522292,
|
|
"p(90)": 675.224759,
|
|
"p(95)": 697.0408254,
|
|
"p(99)": 714.84582008,
|
|
"max": 761.980125
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1259.3155859295887,
|
|
"count": 51666
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.000875,
|
|
"p(90)": 0.0015,
|
|
"p(95)": 0.002042,
|
|
"p(99)": 0.08267191999999998,
|
|
"max": 20.675792,
|
|
"avg": 0.009447986993661953,
|
|
"min": 0.000333
|
|
}
|
|
}
|
|
}
|
|
} |