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": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 95488,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 24050,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e"
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40805.001381
|
|
},
|
|
"metrics": {
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 119588,
|
|
"rate": 2930.719175411759
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.009456717864668954,
|
|
"min": 0.00125,
|
|
"med": 0.003791,
|
|
"p(90)": 0.011708,
|
|
"p(95)": 0.026166,
|
|
"p(99)": 0.082875,
|
|
"max": 4.855417
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 331.8103647647144,
|
|
"min": 208.160458,
|
|
"med": 320.93733299999997,
|
|
"p(90)": 390.22349230000003,
|
|
"p(95)": 411.62238929999995,
|
|
"p(99)": 447.92216225,
|
|
"max": 515.078833
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 89942
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 89942,
|
|
"rate": 2204.19058831057
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 119538,
|
|
"rate": 2929.4938354213705
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"values": {
|
|
"count": 62869,
|
|
"rate": 1540.7179971147764
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 119588
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 515.078833,
|
|
"avg": 338.0665950503872,
|
|
"min": 208.445333,
|
|
"med": 327.3022085,
|
|
"p(90)": 397.395342,
|
|
"p(95)": 419.51874024999995,
|
|
"p(99)": 454.54714021
|
|
}
|
|
},
|
|
"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{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 46863,
|
|
"rate": 1148.4621593915883
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 307136920,
|
|
"rate": 7526943.0120154815
|
|
}
|
|
},
|
|
"vus": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 999,
|
|
"min": 536,
|
|
"max": 1000
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 2204.19058831057,
|
|
"count": 89942
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 417.0282956,
|
|
"p(99)": 449.91740620999997,
|
|
"max": 541.1465,
|
|
"avg": 330.38408037964456,
|
|
"min": 1.581916,
|
|
"med": 323.589896,
|
|
"p(90)": 391.4275373
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 993,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"rate": 858502.6789463988,
|
|
"count": 35031203
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 330.2319780200336,
|
|
"min": 208.160458,
|
|
"med": 318.979458,
|
|
"p(90)": 388.21227120000003,
|
|
"p(95)": 409.31199375,
|
|
"p(99)": 445.66047681999993,
|
|
"max": 495.050792
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.062083,
|
|
"p(99)": 0.10279732999999995,
|
|
"max": 5.451334,
|
|
"avg": 0.017413732765829245,
|
|
"min": 0.0035,
|
|
"med": 0.011167,
|
|
"p(90)": 0.0310413
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.000917,
|
|
"p(90)": 0.0015,
|
|
"p(95)": 0.001834,
|
|
"p(99)": 0.067667,
|
|
"max": 19.66225,
|
|
"avg": 0.013418148493157837,
|
|
"min": 0.000333
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 416.99277490000003,
|
|
"p(99)": 449.90633087,
|
|
"max": 541.133292,
|
|
"avg": 330.3572099290188,
|
|
"min": 1.564333,
|
|
"med": 323.565813,
|
|
"p(90)": 391.4165589
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 323.65256250000004,
|
|
"p(90)": 391.5019045,
|
|
"p(95)": 417.0790651999999,
|
|
"p(99)": 449.966932,
|
|
"max": 541.197917,
|
|
"avg": 330.5809569534998,
|
|
"min": 4.597125
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 391.4275373,
|
|
"p(95)": 417.0282956,
|
|
"p(99)": 449.91740620999997,
|
|
"max": 541.1465,
|
|
"avg": 330.38408037964456,
|
|
"min": 1.581916,
|
|
"med": 323.589896
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 18.805208,
|
|
"avg": 0.010351375798575107,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.04720813
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 119538,
|
|
"fails": 0,
|
|
"rate": 1
|
|
}
|
|
}
|
|
}
|
|
} |