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": {
|
|
"checks": [
|
|
{
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 134390,
|
|
"fails": 0,
|
|
"name": "message 201"
|
|
},
|
|
{
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 33817,
|
|
"fails": 0,
|
|
"name": "history 200"
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": []
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40717.44663
|
|
},
|
|
"metrics": {
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 155795,
|
|
"rate": 3826.2468031385006
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 432493317,
|
|
"rate": 10621818.232613474
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 999,
|
|
"min": 979,
|
|
"max": 1001
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 125221,
|
|
"rate": 3075.3647481357307
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.035333,
|
|
"max": 28.795,
|
|
"avg": 0.009464696268208773
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 309.4604022,
|
|
"p(99)": 340.66014959,
|
|
"max": 426.727083,
|
|
"avg": 256.51348800840395,
|
|
"min": 167.262625,
|
|
"med": 252.3194165,
|
|
"p(90)": 293.3829169
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 231.618458,
|
|
"p(90)": 279.7026746,
|
|
"p(95)": 298.7903581999999,
|
|
"p(99)": 345.38793848,
|
|
"max": 788.040626,
|
|
"avg": 237.45871273169848,
|
|
"min": 1.9225
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 8.255917,
|
|
"avg": 0.02034889020961994,
|
|
"min": 0.0035,
|
|
"med": 0.013334,
|
|
"p(90)": 0.03375,
|
|
"p(95)": 0.066709,
|
|
"p(99)": 0.12325
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 168257
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 49345008,
|
|
"rate": 1211888.5658130476
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 235.1254576064095,
|
|
"min": 159.699459,
|
|
"med": 227.422666,
|
|
"p(90)": 276.370309,
|
|
"p(95)": 296.5016334,
|
|
"p(99)": 349.22759335999996,
|
|
"max": 788.057208
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 168257,
|
|
"rate": 4132.307252194709
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 117781,
|
|
"rate": 2892.6420919827706
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 231.654709,
|
|
"p(90)": 279.7429662,
|
|
"p(95)": 298.8373334,
|
|
"p(99)": 345.43636556,
|
|
"max": 788.057208,
|
|
"avg": 237.49627440354297,
|
|
"min": 1.94625
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.018549592545920906,
|
|
"min": 0.000333,
|
|
"med": 0.001166,
|
|
"p(90)": 0.001833,
|
|
"p(95)": 0.002167,
|
|
"p(99)": 0.05394803999999975,
|
|
"max": 34.624708
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 168207,
|
|
"rate": 4131.079277354971
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 788.057208,
|
|
"avg": 239.43445714307848,
|
|
"min": 159.699459,
|
|
"med": 232.724333,
|
|
"p(90)": 281.22725,
|
|
"p(95)": 300.606834,
|
|
"p(99)": 346.6057336
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 1796,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 125221,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 231.731209,
|
|
"p(90)": 279.825141,
|
|
"p(95)": 298.9167666999999,
|
|
"p(99)": 345.50145698,
|
|
"max": 788.127334,
|
|
"avg": 237.64218400737911,
|
|
"min": 10.241208
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 125221,
|
|
"rate": 3075.3647481357307
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 788.057208,
|
|
"avg": 237.49627440354297,
|
|
"min": 1.94625,
|
|
"med": 231.654709,
|
|
"p(90)": 279.7429662,
|
|
"p(95)": 298.8373334,
|
|
"p(99)": 345.43636556
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"values": {
|
|
"avg": 0.017212781631671403,
|
|
"min": 0.001333,
|
|
"med": 0.00475,
|
|
"p(90)": 0.040683400000000154,
|
|
"p(95)": 0.069,
|
|
"p(99)": 0.19074495999999985,
|
|
"max": 4.53475
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 168207,
|
|
"fails": 0
|
|
}
|
|
}
|
|
}
|
|
} |