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
{
|
|
"root_group": {
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 23343,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 94556,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201"
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40839.903713,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 88097,
|
|
"rate": 2157.1304530759044
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 34595188,
|
|
"rate": 847092.7905000862
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 186.641583,
|
|
"p(90)": 337.4652664,
|
|
"p(95)": 357.3048915999999,
|
|
"p(99)": 428.57863016,
|
|
"max": 522.056751,
|
|
"avg": 207.12423286112954,
|
|
"min": 1.1
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 186.615917,
|
|
"p(90)": 337.4283582,
|
|
"p(95)": 357.26499199999995,
|
|
"p(99)": 428.56543583999996,
|
|
"max": 522.037584,
|
|
"avg": 207.09511923576366,
|
|
"min": 1.088041
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 76.492166,
|
|
"med": 228.16535449999998,
|
|
"p(90)": 351.9065461,
|
|
"p(95)": 382.19214554999996,
|
|
"p(99)": 444.50300403,
|
|
"max": 522.056751,
|
|
"avg": 242.03461428762859
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.043293159999999914,
|
|
"max": 32.3275,
|
|
"avg": 0.00362835105003009,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 88097
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 234.93231050214712,
|
|
"min": 73.268958,
|
|
"med": 221.861959,
|
|
"p(90)": 342.351625,
|
|
"p(95)": 370.57489139999996,
|
|
"p(99)": 432.52262324,
|
|
"max": 492.901417
|
|
}
|
|
},
|
|
"vus": {
|
|
"values": {
|
|
"value": 970,
|
|
"min": 100,
|
|
"max": 999
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 117949,
|
|
"rate": 2888.08222538622
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.00175,
|
|
"p(95)": 0.002083,
|
|
"p(99)": 0.06110699999999987,
|
|
"max": 32.347084,
|
|
"avg": 0.00569635732392743,
|
|
"min": 0.000375,
|
|
"med": 0.001125
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.021542,
|
|
"p(99)": 0.074167,
|
|
"max": 8.055625,
|
|
"avg": 0.00928053612154417,
|
|
"min": 0.001416,
|
|
"med": 0.004041,
|
|
"p(90)": 0.011291
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 3104,
|
|
"rate": 76.00409691984525
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 88097,
|
|
"rate": 2157.1304530759044
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 4.649792,
|
|
"avg": 0.019833089241959867,
|
|
"min": 0.003083,
|
|
"med": 0.0115,
|
|
"p(90)": 0.054209,
|
|
"p(95)": 0.072958,
|
|
"p(99)": 0.11318883999999996
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 117899,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 186.744334,
|
|
"p(90)": 337.5264916,
|
|
"p(95)": 357.3859089,
|
|
"p(99)": 428.63861482,
|
|
"max": 522.09125,
|
|
"avg": 207.265006799467,
|
|
"min": 1.129375
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 344.71645,
|
|
"p(95)": 373.0357249999999,
|
|
"p(99)": 435.1599319999999,
|
|
"max": 522.056751,
|
|
"avg": 236.33992056939746,
|
|
"min": 73.268958,
|
|
"med": 223.073167
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 117899,
|
|
"rate": 2886.857932587898
|
|
}
|
|
},
|
|
"data_received": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 298903573,
|
|
"rate": 7318909.836333776
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.1,
|
|
"med": 186.641583,
|
|
"p(90)": 337.4652664,
|
|
"p(95)": 357.3048915999999,
|
|
"p(99)": 428.57863016,
|
|
"max": 522.056751,
|
|
"avg": 207.12423286112954
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 117949
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1596,
|
|
"min": 608,
|
|
"max": 1596
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 3700,
|
|
"rate": 90.59766707584647
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
}
|
|
}
|
|
}
|
|
} |