forked from mtusi2026/mtusi2026lab3
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": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 41042.767449
|
|
},
|
|
"metrics": {
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 588.5418392513953,
|
|
"min": 3.791834,
|
|
"med": 586.348042,
|
|
"p(90)": 688.733867,
|
|
"p(95)": 728.3496130999999,
|
|
"p(99)": 751.93031296,
|
|
"max": 802.219042
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 50221,
|
|
"rate": 1223.6260642610157
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"values": {
|
|
"avg": 601.0335535014688,
|
|
"min": 441.591125,
|
|
"med": 588.149417,
|
|
"p(90)": 693.270626,
|
|
"p(95)": 732.8962505,
|
|
"p(99)": 760.6499713999999,
|
|
"max": 802.175459
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 588.0561240508075,
|
|
"min": 1.527042,
|
|
"med": 586.259542,
|
|
"p(90)": 688.6411666,
|
|
"p(95)": 728.2407756,
|
|
"p(99)": 751.863064,
|
|
"max": 802.175459
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 19.02475,
|
|
"avg": 0.005235654265497753,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.05824003999999995
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 67363,
|
|
"fails": 0,
|
|
"rate": 1
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.000333,
|
|
"med": 0.000958,
|
|
"p(90)": 0.001625,
|
|
"p(95)": 0.00225,
|
|
"p(99)": 0.08236995999999998,
|
|
"max": 19.324542,
|
|
"avg": 0.007407395828697251
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 811,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 69435,
|
|
"rate": 1691.77188371326
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 170508510,
|
|
"rate": 4154410.6452342654
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 218,
|
|
"min": 218,
|
|
"max": 1000
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.004417,
|
|
"p(90)": 0.0115,
|
|
"p(95)": 0.018333399999999996,
|
|
"p(99)": 0.05199495999999997,
|
|
"max": 3.85275,
|
|
"avg": 0.007694881343360844,
|
|
"min": 0.001375
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 586.227,
|
|
"p(90)": 688.6070002,
|
|
"p(95)": 728.2070835999999,
|
|
"p(99)": 751.8382459200001,
|
|
"max": 802.142084,
|
|
"avg": 588.0313022792106,
|
|
"min": 1.489125
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.0945,
|
|
"max": 2.003458,
|
|
"avg": 0.017126890243721535,
|
|
"min": 0.00325,
|
|
"med": 0.012709,
|
|
"p(90)": 0.027282800000000062,
|
|
"p(95)": 0.051458399999999994
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 67413
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 67413,
|
|
"rate": 1642.5061999965721
|
|
}
|
|
},
|
|
"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": {
|
|
"count": 19754926,
|
|
"rate": 481325.3888044366
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 580.9606045,
|
|
"p(90)": 687.3235208,
|
|
"p(95)": 727.4290855999998,
|
|
"p(99)": 750.1342295,
|
|
"max": 788.743626,
|
|
"avg": 594.4264518770497,
|
|
"min": 441.532917
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 50221,
|
|
"rate": 1223.6260642610157
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 67363,
|
|
"rate": 1641.287958559463
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"values": {
|
|
"avg": 595.725085917286,
|
|
"min": 441.532917,
|
|
"med": 582.327375,
|
|
"p(90)": 687.794042,
|
|
"p(95)": 728.115834,
|
|
"p(99)": 752.0278334,
|
|
"max": 802.175459
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 50221,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 588.0561240508075,
|
|
"min": 1.527042,
|
|
"med": 586.259542,
|
|
"p(90)": 688.6411666,
|
|
"p(95)": 728.2407756,
|
|
"p(99)": 751.863064,
|
|
"max": 802.175459
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 52380,
|
|
"rate": 1276.2297295153821
|
|
}
|
|
}
|
|
},
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"passes": 54020,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
},
|
|
{
|
|
"passes": 13343,
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": ""
|
|
}
|
|
} |