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": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 28787,
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200"
|
|
},
|
|
{
|
|
"passes": 115219,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40526.912699
|
|
},
|
|
"metrics": {
|
|
"http_req_receiving": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.13835189999999994,
|
|
"max": 7.265834,
|
|
"avg": 0.022380652072805287,
|
|
"min": -0.026764,
|
|
"med": 0.012416,
|
|
"p(90)": 0.05906250000000013,
|
|
"p(95)": 0.08480224999999975
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 368260435,
|
|
"rate": 9086811.959626198
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.237416,
|
|
"med": 2.2577915,
|
|
"p(90)": 23.6223747,
|
|
"p(95)": 54.245200549999986,
|
|
"p(99)": 97.93020456999994,
|
|
"max": 478.415042,
|
|
"avg": 8.803422124663879
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 108004
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_sending": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.012797750090243419,
|
|
"min": 0.001459,
|
|
"med": 0.00475,
|
|
"p(90)": 0.014334,
|
|
"p(95)": 0.041833,
|
|
"p(99)": 0.12714344999999994,
|
|
"max": 4.4565
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 14,
|
|
"min": 3,
|
|
"max": 222
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 3553.342468239712,
|
|
"count": 144006
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"values": {
|
|
"max": 720,
|
|
"value": 720,
|
|
"min": 720
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 144056
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 144056,
|
|
"rate": 3554.5762163016816
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.005955979570444872,
|
|
"min": 0.000458,
|
|
"med": 0.001458,
|
|
"p(90)": 0.002083,
|
|
"p(95)": 0.002334,
|
|
"p(99)": 0.004416,
|
|
"max": 28.296625
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.263333,
|
|
"med": 1.950542,
|
|
"p(90)": 17.4685163,
|
|
"p(95)": 70.98759374999993,
|
|
"p(99)": 117.72559149999998,
|
|
"max": 211.107084,
|
|
"avg": 9.193493549282165
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 42241028,
|
|
"rate": 1042295.7286120217
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"checks": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 144006,
|
|
"fails": 0
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 2.205167,
|
|
"p(90)": 22.772058300000023,
|
|
"p(95)": 56.08651244999997,
|
|
"p(99)": 104.70427750999991,
|
|
"max": 478.415042,
|
|
"avg": 8.881910256583083,
|
|
"min": 1.237416
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"values": {
|
|
"count": 108004,
|
|
"rate": 2664.9945136991646
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 7.372943754137374,
|
|
"min": 1.214125,
|
|
"med": 2.1350835,
|
|
"p(90)": 10.152833500000016,
|
|
"p(95)": 45.21908374999992,
|
|
"p(99)": 96.13875189999997,
|
|
"max": 478.37875
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 2.16375,
|
|
"p(90)": 10.202833000000009,
|
|
"p(95)": 45.264374999999994,
|
|
"p(99)": 96.1854644,
|
|
"max": 478.415042,
|
|
"avg": 7.408122156300325,
|
|
"min": 1.237416
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 7.408122156300325,
|
|
"min": 1.237416,
|
|
"med": 2.16375,
|
|
"p(90)": 10.202833000000009,
|
|
"p(95)": 45.264374999999994,
|
|
"p(99)": 96.1854644,
|
|
"max": 478.415042
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 108004,
|
|
"rate": 2664.9945136991646
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 10.243958500000012,
|
|
"p(95)": 45.37985424999993,
|
|
"p(99)": 96.26313959999996,
|
|
"max": 478.48725,
|
|
"avg": 7.472414826979515,
|
|
"min": 1.294542,
|
|
"med": 2.22175
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_connecting": {
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 28.246375,
|
|
"avg": 0.0032847853681901478,
|
|
"min": 0,
|
|
"med": 0
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
}
|
|
}
|
|
} |