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": {
|
|
"testRunDurationMs": 40732.293296,
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 107979,
|
|
"rate": 2650.943299836343
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 26.062833,
|
|
"avg": 0.002563519186273418,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 13.871057931704627,
|
|
"count": 565
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 22,
|
|
"rate": 0.540111990261065
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 143438,
|
|
"rate": 3521.481075412121
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 61.99460844999997,
|
|
"p(99)": 152.93672529,
|
|
"max": 552.634792,
|
|
"avg": 10.23149713187146,
|
|
"min": 1.165916,
|
|
"med": 2.204875,
|
|
"p(90)": 18.59547890000004
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 107979,
|
|
"rate": 2650.943299836343
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 552.571042,
|
|
"avg": 10.194574166041686,
|
|
"min": 1.140333,
|
|
"med": 2.174563,
|
|
"p(90)": 18.53936250000003,
|
|
"p(95)": 61.9505481499999,
|
|
"p(99)": 152.86950596
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 42077320,
|
|
"rate": 1033021.1386387146
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 7.254175473547177,
|
|
"min": 1.329583,
|
|
"med": 2.262291,
|
|
"p(90)": 11.893383700000003,
|
|
"p(95)": 39.33237049999999,
|
|
"p(99)": 94.12037574999998,
|
|
"max": 400.750251
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 107979
|
|
}
|
|
},
|
|
"data_received": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 366675114,
|
|
"rate": 9002073.890988315
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 143438,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 18.696833100000013,
|
|
"p(95)": 62.123973199999895,
|
|
"p(99)": 153.03317825,
|
|
"max": 552.688667,
|
|
"avg": 10.295902606721887,
|
|
"min": 1.213958,
|
|
"med": 2.2636665000000002
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 143488,
|
|
"rate": 3522.708602662714
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 4.835341200000001,
|
|
"p(95)": 36.34679939999999,
|
|
"p(99)": 112.50258531999998,
|
|
"max": 224.330584,
|
|
"avg": 6.791496993888662,
|
|
"min": 1.165916,
|
|
"med": 1.921208
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.165916,
|
|
"med": 2.205792,
|
|
"p(90)": 10.400350000000014,
|
|
"p(95)": 38.93344169999997,
|
|
"p(99)": 99.29480703999998,
|
|
"max": 400.750251,
|
|
"avg": 7.161626065957275
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.012709,
|
|
"p(90)": 0.061042,
|
|
"p(95)": 0.087375,
|
|
"p(99)": 0.141292,
|
|
"max": 14.378459,
|
|
"avg": 0.023257434531110614,
|
|
"min": 0.003083
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 143488
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"values": {
|
|
"med": 2.204875,
|
|
"p(90)": 18.59547890000004,
|
|
"p(95)": 61.99460844999997,
|
|
"p(99)": 152.93672529,
|
|
"max": 552.634792,
|
|
"avg": 10.23149713187146,
|
|
"min": 1.165916
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"values": {
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 9,
|
|
"min": 4,
|
|
"max": 480
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"values": {
|
|
"value": 926,
|
|
"min": 768,
|
|
"max": 926
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.000417,
|
|
"med": 0.0015,
|
|
"p(90)": 0.002125,
|
|
"p(95)": 0.002417,
|
|
"p(99)": 0.005833129999999998,
|
|
"max": 31.019125,
|
|
"avg": 0.0052745619145852475
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.013665531298785562,
|
|
"min": 0.001625,
|
|
"med": 0.004958,
|
|
"p(90)": 0.01525,
|
|
"p(95)": 0.044208,
|
|
"p(99)": 0.12768237999999985,
|
|
"max": 5.799875
|
|
},
|
|
"type": "trend"
|
|
}
|
|
},
|
|
"root_group": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 28657,
|
|
"fails": 0,
|
|
"name": "history 200"
|
|
},
|
|
{
|
|
"passes": 114781,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
}
|
|
} |