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": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 12068,
|
|
"fails": 0,
|
|
"name": "history 200"
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 48599,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"testRunDurationMs": 40608.003964,
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.006584,
|
|
"p(90)": 0.010833,
|
|
"p(95)": 0.016,
|
|
"p(99)": 0.037583,
|
|
"max": 1.0785,
|
|
"avg": 0.007496451866857623,
|
|
"min": 0.001541
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 17782819,
|
|
"rate": 437914.1367244967
|
|
}
|
|
},
|
|
"vus": {
|
|
"values": {
|
|
"min": 1,
|
|
"max": 185,
|
|
"value": 2
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60667,
|
|
"rate": 1493.9665602323817
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 97,
|
|
"rate": 2.388691650197653
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 142.46264692,
|
|
"max": 203.942916,
|
|
"avg": 18.785246445411452,
|
|
"min": 0.852,
|
|
"med": 2.02675,
|
|
"p(90)": 82.78663340000001,
|
|
"p(95)": 110.26164199999997
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"values": {
|
|
"avg": 15.357964704679052,
|
|
"min": 0.852,
|
|
"med": 2.044292,
|
|
"p(90)": 68.1564584,
|
|
"p(95)": 97.91964139999999,
|
|
"p(99)": 132.37672,
|
|
"max": 203.942916
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 1.053083,
|
|
"avg": 0.016687216611492646,
|
|
"min": 0.003125,
|
|
"med": 0.012,
|
|
"p(90)": 0.030583,
|
|
"p(95)": 0.05325,
|
|
"p(99)": 0.07986827999999997
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 377,
|
|
"min": 304,
|
|
"max": 377
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.852,
|
|
"med": 2.044292,
|
|
"p(90)": 68.1564584,
|
|
"p(95)": 97.91964139999999,
|
|
"p(99)": 132.37672,
|
|
"max": 203.942916,
|
|
"avg": 15.357964704679052
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 45504
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 154140112,
|
|
"rate": 3795806.170050836
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 77.17170020000002,
|
|
"p(95)": 103.97351689999998,
|
|
"p(99)": 133.17436533999998,
|
|
"max": 189.023625,
|
|
"avg": 17.783143439344283,
|
|
"min": 0.872875,
|
|
"med": 2.213084
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"values": {
|
|
"count": 60717,
|
|
"rate": 1495.1978445881537
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"checks": {
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 60667,
|
|
"fails": 0
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_req_blocked": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0034376972676513633,
|
|
"min": 0.000417,
|
|
"med": 0.001,
|
|
"p(90)": 0.001584,
|
|
"p(95)": 0.001875,
|
|
"p(99)": 0.004125,
|
|
"max": 16.1205
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 45504,
|
|
"rate": 1120.5672665009693
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 16.107958,
|
|
"avg": 0.0021923868932918287
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 97.85546659999997,
|
|
"p(99)": 132.35355972,
|
|
"max": 203.923,
|
|
"avg": 15.333781036200635,
|
|
"min": 0.826833,
|
|
"med": 2.019834,
|
|
"p(90)": 68.1391916
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 45504,
|
|
"rate": 1120.5672665009693
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"values": {
|
|
"max": 203.982792,
|
|
"avg": 15.412689494404098,
|
|
"min": 0.884167,
|
|
"med": 2.092834,
|
|
"p(90)": 68.2929748,
|
|
"p(95)": 98.02928319999997,
|
|
"p(99)": 132.46164894
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 135,
|
|
"rate": 3.324467760584363
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 17.983039909678176,
|
|
"min": 0.852,
|
|
"med": 2.1760205,
|
|
"p(90)": 78.18862890000001,
|
|
"p(95)": 105.07314989999998,
|
|
"p(99)": 134.48071072,
|
|
"max": 203.942916
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 60717
|
|
}
|
|
}
|
|
}
|
|
} |