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.7 KiB
JSON
309 lines
5.7 KiB
JSON
{
|
|
"root_group": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 14354,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 3648,
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200"
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40649.928463
|
|
},
|
|
"metrics": {
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.5937502000000001,
|
|
"p(95)": 2.0221,
|
|
"p(99)": 5.3060741600000005,
|
|
"max": 25.941125,
|
|
"avg": 1.3006044138939632,
|
|
"min": 0.8195,
|
|
"med": 1.090167
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.1299375,
|
|
"p(90)": 1.6551125,
|
|
"p(95)": 2.167279349999999,
|
|
"p(99)": 7.279530669999998,
|
|
"max": 52.5815,
|
|
"avg": 1.3950223352537134,
|
|
"min": 0.650291
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.016227042765344635,
|
|
"min": 0.004125,
|
|
"med": 0.013208,
|
|
"p(90)": 0.024167,
|
|
"p(95)": 0.03175,
|
|
"p(99)": 0.05168708999999999,
|
|
"max": 1.936
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"values": {
|
|
"avg": 1.420588541828688,
|
|
"min": 0.681125,
|
|
"med": 1.1792915000000002,
|
|
"p(90)": 1.7158494000000002,
|
|
"p(95)": 2.2030559499999995,
|
|
"p(99)": 6.479539999999987,
|
|
"max": 34.461375
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 5260521,
|
|
"rate": 129410.33844101797
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 13501
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 34.362708,
|
|
"avg": 1.39098554969348,
|
|
"min": 0.866667,
|
|
"med": 1.1491045,
|
|
"p(90)": 1.6851040000000002,
|
|
"p(95)": 2.1492084999999985,
|
|
"p(99)": 6.760210199999991
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 13501,
|
|
"rate": 332.1285057681898
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 13501,
|
|
"rate": 332.1285057681898
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 10.11275,
|
|
"avg": 0.0029096208176375995,
|
|
"min": 0.0005,
|
|
"med": 0.001042,
|
|
"p(90)": 0.001792,
|
|
"p(95)": 0.002166,
|
|
"p(99)": 0.004583
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.108938,
|
|
"p(90)": 1.6248255999999999,
|
|
"p(95)": 2.12087675,
|
|
"p(99)": 7.2530127499999955,
|
|
"max": 52.478042,
|
|
"avg": 1.3702262768114222,
|
|
"min": 0.636666
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"count": 0
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 18052,
|
|
"rate": 444.0844223485196
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 90,
|
|
"min": 90,
|
|
"max": 90
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 52.5815,
|
|
"avg": 1.3950223352537134,
|
|
"min": 0.650291,
|
|
"med": 1.1299375,
|
|
"p(90)": 1.6551125,
|
|
"p(95)": 2.167279349999999,
|
|
"p(99)": 7.279530669999998
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0015715684134721911,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 10.0875
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"values": {
|
|
"avg": 0.008569015676933267,
|
|
"min": 0.002,
|
|
"med": 0.007417,
|
|
"p(90)": 0.011417,
|
|
"p(95)": 0.014708,
|
|
"p(99)": 0.02720849,
|
|
"max": 1.204875
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"data_received": {
|
|
"values": {
|
|
"count": 45779196,
|
|
"rate": 1126181.4652802823
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.665958,
|
|
"p(95)": 2.119875,
|
|
"p(99)": 6.150375,
|
|
"max": 34.362708,
|
|
"avg": 1.3726763573068672,
|
|
"min": 0.8195,
|
|
"med": 1.139208
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 442.8544078837829,
|
|
"count": 18002
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 18002,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 18052,
|
|
"rate": 0,
|
|
"passes": 0
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1,
|
|
"min": 0,
|
|
"max": 2
|
|
}
|
|
}
|
|
}
|
|
} |