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": {
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 23218,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 92890
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e"
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40819.912714,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 340.0482671388562,
|
|
"min": 1.519875,
|
|
"med": 336.928104,
|
|
"p(90)": 403.1851001,
|
|
"p(95)": 427.43345715,
|
|
"p(99)": 460.51178662999996,
|
|
"max": 525.424584
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 116158
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 116108,
|
|
"fails": 0,
|
|
"rate": 1
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.002,
|
|
"p(99)": 0.06764305999999996,
|
|
"max": 20.31775,
|
|
"avg": 0.005559961715938278,
|
|
"min": 0.000333,
|
|
"med": 0.001,
|
|
"p(90)": 0.001625
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.032666,
|
|
"p(95)": 0.064084,
|
|
"p(99)": 0.108875,
|
|
"max": 3.388834,
|
|
"avg": 0.01832336442604035,
|
|
"min": 0.003291,
|
|
"med": 0.012
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 999,
|
|
"min": 511,
|
|
"max": 1000
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.02854814999999979,
|
|
"p(99)": 0.0865776899999999,
|
|
"max": 20.072917,
|
|
"avg": 0.011031323103015498,
|
|
"min": 0.001292,
|
|
"med": 0.004083,
|
|
"p(90)": 0.012583
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 340.24722805173303,
|
|
"min": 4.342417,
|
|
"med": 336.994271,
|
|
"p(90)": 403.2600589,
|
|
"p(95)": 427.48861854999996,
|
|
"p(99)": 460.568167,
|
|
"max": 525.483501
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.003629174348731896,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.04710105999999996,
|
|
"max": 20.309458
|
|
}
|
|
},
|
|
"iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 116108,
|
|
"rate": 2844.396087113103
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 969,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 460.48792588,
|
|
"max": 525.403209,
|
|
"avg": 340.01891245133044,
|
|
"min": 1.499333,
|
|
"med": 336.90145800000005,
|
|
"p(90)": 403.15562950000003,
|
|
"p(95)": 427.4114625
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 296911180,
|
|
"rate": 7273684.833190945
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"values": {
|
|
"count": 34040077,
|
|
"rate": 833908.6180437931
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 345.5256365603996,
|
|
"min": 221.290041,
|
|
"med": 338.02725,
|
|
"p(90)": 401.1968335,
|
|
"p(95)": 423.32631250000003,
|
|
"p(99)": 451.41156044999997,
|
|
"max": 512.269125
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 432.2081632,
|
|
"p(99)": 463.22897642,
|
|
"max": 511.787917,
|
|
"avg": 353.77076245791494,
|
|
"min": 221.026625,
|
|
"med": 346.461583,
|
|
"p(90)": 409.8201584
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 50767,
|
|
"rate": 1243.6822282226108
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 340.0482671388562,
|
|
"min": 1.519875,
|
|
"med": 336.928104,
|
|
"p(90)": 403.1851001,
|
|
"p(95)": 427.43345715,
|
|
"p(99)": 460.51178662999996,
|
|
"max": 525.424584
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 424.7148297,
|
|
"p(99)": 454.0432396,
|
|
"max": 512.269125,
|
|
"avg": 347.1777284456462,
|
|
"min": 221.026625,
|
|
"med": 339.616334,
|
|
"p(90)": 403.31901700000003
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 86035,
|
|
"rate": 2107.6723167634946
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 2845.6209794922297,
|
|
"count": 116158
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 86035,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 66295,
|
|
"rate": 1624.0848054842315
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 86035,
|
|
"rate": 2107.6723167634946
|
|
}
|
|
}
|
|
}
|
|
} |