forked from mtusi2026/mtusi2026lab3
Record the growth series of track 1
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
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
be19abf364
commit
3bdc8fad23
@@ -0,0 +1,309 @@
|
||||
{
|
||||
"root_group": {
|
||||
"name": "",
|
||||
"path": "",
|
||||
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"groups": [],
|
||||
"checks": [
|
||||
{
|
||||
"name": "message 201",
|
||||
"path": "::message 201",
|
||||
"id": "6445aff337e1ade0bc10402fbac79882",
|
||||
"passes": 64689,
|
||||
"fails": 0
|
||||
},
|
||||
{
|
||||
"fails": 0,
|
||||
"name": "history 200",
|
||||
"path": "::history 200",
|
||||
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
||||
"passes": 16092
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"summaryTrendStats": [
|
||||
"avg",
|
||||
"min",
|
||||
"med",
|
||||
"p(90)",
|
||||
"p(95)",
|
||||
"p(99)",
|
||||
"max"
|
||||
],
|
||||
"summaryTimeUnit": "",
|
||||
"noColor": false
|
||||
},
|
||||
"state": {
|
||||
"isStdOutTTY": false,
|
||||
"isStdErrTTY": false,
|
||||
"testRunDurationMs": 40553.328755
|
||||
},
|
||||
"metrics": {
|
||||
"http_req_blocked": {
|
||||
"values": {
|
||||
"med": 0.001042,
|
||||
"p(90)": 0.001625,
|
||||
"p(95)": 0.001875,
|
||||
"p(99)": 0.003792,
|
||||
"max": 14.787208,
|
||||
"avg": 0.0032771497197856196,
|
||||
"min": 0.000458
|
||||
},
|
||||
"type": "trend",
|
||||
"contains": "time"
|
||||
},
|
||||
"http_req_connecting": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(90)": 0,
|
||||
"p(95)": 0,
|
||||
"p(99)": 0,
|
||||
"max": 14.778583,
|
||||
"avg": 0.0017851670275018246,
|
||||
"min": 0,
|
||||
"med": 0
|
||||
}
|
||||
},
|
||||
"data_received": {
|
||||
"type": "counter",
|
||||
"contains": "data",
|
||||
"values": {
|
||||
"count": 205618224,
|
||||
"rate": 5070316.7979681175
|
||||
}
|
||||
},
|
||||
"http_req_failed": {
|
||||
"type": "rate",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"passes": 0,
|
||||
"fails": 80831,
|
||||
"rate": 0
|
||||
}
|
||||
},
|
||||
"http_req_failed{scenario:measure}": {
|
||||
"type": "rate",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"fails": 60580,
|
||||
"rate": 0,
|
||||
"passes": 0
|
||||
}
|
||||
},
|
||||
"dropped_iterations": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 21,
|
||||
"rate": 0.5178366522479567
|
||||
}
|
||||
},
|
||||
"vus": {
|
||||
"type": "gauge",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"min": 0,
|
||||
"max": 160,
|
||||
"value": 4
|
||||
}
|
||||
},
|
||||
"iterations": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 80781,
|
||||
"rate": 1991.9696478686758
|
||||
}
|
||||
},
|
||||
"http_req_duration{scenario:measure}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(90)": 11.639879200000001,
|
||||
"p(95)": 48.673212199999966,
|
||||
"p(99)": 92.66270610999999,
|
||||
"max": 174.11875,
|
||||
"avg": 6.8789914623472725,
|
||||
"min": 0.894208,
|
||||
"med": 1.5438334999999999
|
||||
}
|
||||
},
|
||||
"http_req_tls_handshaking": {
|
||||
"values": {
|
||||
"p(95)": 0,
|
||||
"p(99)": 0,
|
||||
"max": 0,
|
||||
"avg": 0,
|
||||
"min": 0,
|
||||
"med": 0,
|
||||
"p(90)": 0
|
||||
},
|
||||
"type": "trend",
|
||||
"contains": "time"
|
||||
},
|
||||
"http_req_waiting": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"min": 0.853625,
|
||||
"med": 1.499417,
|
||||
"p(90)": 7.287083,
|
||||
"p(95)": 41.397563,
|
||||
"p(99)": 88.26277969999998,
|
||||
"max": 174.111708,
|
||||
"avg": 6.020123244893691
|
||||
}
|
||||
},
|
||||
"vus_max": {
|
||||
"type": "gauge",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"min": 404,
|
||||
"max": 412,
|
||||
"value": 412
|
||||
}
|
||||
},
|
||||
"http_req_duration{expected_response:true}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"med": 1.522375,
|
||||
"p(90)": 7.334166,
|
||||
"p(95)": 41.4357085,
|
||||
"p(99)": 88.32085019999998,
|
||||
"max": 174.11875,
|
||||
"avg": 6.045241222216753,
|
||||
"min": 0.87425
|
||||
}
|
||||
},
|
||||
"http_req_sending": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"min": 0.0015,
|
||||
"med": 0.004833,
|
||||
"p(90)": 0.011042,
|
||||
"p(95)": 0.017729499999999853,
|
||||
"p(99)": 0.05102939999999997,
|
||||
"max": 3.771625,
|
||||
"avg": 0.008041365763135373
|
||||
}
|
||||
},
|
||||
"checks": {
|
||||
"type": "rate",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"rate": 1,
|
||||
"passes": 80781,
|
||||
"fails": 0
|
||||
}
|
||||
},
|
||||
"http_reqs{scenario:measure}": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 60580,
|
||||
"rate": 1493.8354472943438
|
||||
}
|
||||
},
|
||||
"http_req_duration{scenario:measure,name:get_history}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"avg": 7.444568678237633,
|
||||
"min": 0.894208,
|
||||
"med": 1.424958,
|
||||
"p(90)": 10.923375100000007,
|
||||
"p(95)": 57.39841694999996,
|
||||
"p(99)": 100.67688516999999,
|
||||
"max": 155.459125
|
||||
}
|
||||
},
|
||||
"iteration_duration": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(95)": 41.514291,
|
||||
"p(99)": 88.38739219999998,
|
||||
"max": 174.153208,
|
||||
"avg": 6.09597923191091,
|
||||
"min": 0.9025,
|
||||
"med": 1.572292,
|
||||
"p(90)": 7.352958
|
||||
}
|
||||
},
|
||||
"data_sent": {
|
||||
"type": "counter",
|
||||
"contains": "data",
|
||||
"values": {
|
||||
"count": 23684723,
|
||||
"rate": 584038.9365590563
|
||||
}
|
||||
},
|
||||
"http_req_duration{scenario:measure,name:post_message}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(90)": 11.770291500000006,
|
||||
"p(95)": 46.38401049999994,
|
||||
"p(99)": 89.78310444999998,
|
||||
"max": 174.11875,
|
||||
"avg": 6.739517485986475,
|
||||
"min": 0.908709,
|
||||
"med": 1.5654375
|
||||
}
|
||||
},
|
||||
"iterations{scenario:measure}": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 60580,
|
||||
"rate": 1493.8354472943438
|
||||
}
|
||||
},
|
||||
"dropped_iterations{scenario:measure}": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 21,
|
||||
"rate": 0.5178366522479567
|
||||
}
|
||||
},
|
||||
"http_req_receiving": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(95)": 0.056708,
|
||||
"p(99)": 0.090167,
|
||||
"max": 2.597875,
|
||||
"avg": 0.017076611559921313,
|
||||
"min": 0.003083,
|
||||
"med": 0.011959,
|
||||
"p(90)": 0.032084
|
||||
}
|
||||
},
|
||||
"http_req_duration": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(95)": 41.4357085,
|
||||
"p(99)": 88.32085019999998,
|
||||
"max": 174.11875,
|
||||
"avg": 6.045241222216753,
|
||||
"min": 0.87425,
|
||||
"med": 1.522375,
|
||||
"p(90)": 7.334166
|
||||
}
|
||||
},
|
||||
"http_reqs": {
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 80831,
|
||||
"rate": 1993.20259227879
|
||||
},
|
||||
"type": "counter"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user