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": {
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 10782,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 43221,
|
|
"fails": 0,
|
|
"name": "message 201"
|
|
}
|
|
],
|
|
"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": 40495.076713
|
|
},
|
|
"metrics": {
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 15822063,
|
|
"rate": 390715.7186572435
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.0132748,
|
|
"p(95)": 3.812671099999997,
|
|
"p(99)": 27.340729179999997,
|
|
"max": 109.610583,
|
|
"avg": 2.1307726997389156,
|
|
"min": 0.873208,
|
|
"med": 1.343792
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 54003,
|
|
"rate": 1333.5695196414727
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"max": 270,
|
|
"value": 270,
|
|
"min": 270
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 3.831316899999996,
|
|
"p(99)": 28.596500609999985,
|
|
"max": 109.562083,
|
|
"avg": 2.146448155284103,
|
|
"min": 0.904833,
|
|
"med": 1.318708,
|
|
"p(90)": 1.9813456
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.872833,
|
|
"med": 1.302292,
|
|
"p(90)": 1.9412744000000002,
|
|
"p(95)": 3.7743582999999994,
|
|
"p(99)": 28.434269999999973,
|
|
"max": 109.562083,
|
|
"avg": 2.1301102915164694
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"values": {
|
|
"count": 54053,
|
|
"rate": 1334.8042376382891
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.0055,
|
|
"p(90)": 0.01025,
|
|
"p(95)": 0.014041,
|
|
"p(99)": 0.036625,
|
|
"max": 1.019458,
|
|
"avg": 0.006893062753223555,
|
|
"min": 0.001417
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2,
|
|
"min": 0,
|
|
"max": 26
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 54003,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"values": {
|
|
"max": 109.562083,
|
|
"avg": 2.0847035169740775,
|
|
"min": 0.801208,
|
|
"med": 1.295042,
|
|
"p(90)": 1.9585500000000005,
|
|
"p(95)": 3.8232166,
|
|
"p(99)": 27.287795999999997
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 137610248,
|
|
"rate": 3398196.995039237
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 54053,
|
|
"rate": 0,
|
|
"passes": 0
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.017858752520674023,
|
|
"min": 0.003083,
|
|
"med": 0.013292,
|
|
"p(90)": 0.033542,
|
|
"p(95)": 0.0505,
|
|
"p(99)": 0.079042,
|
|
"max": 2.201958
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.271125,
|
|
"p(90)": 1.9286494,
|
|
"p(95)": 3.794350399999997,
|
|
"p(99)": 27.23283348,
|
|
"max": 109.469292,
|
|
"avg": 2.059951701700174,
|
|
"min": 0.780042
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 3.8232166,
|
|
"p(99)": 27.287795999999997,
|
|
"max": 109.562083,
|
|
"avg": 2.0847035169740775,
|
|
"min": 0.801208,
|
|
"med": 1.295042,
|
|
"p(90)": 1.9585500000000005
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 40502
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 2.064593113433935,
|
|
"min": 0.872833,
|
|
"med": 1.2062085,
|
|
"p(90)": 1.7960421000000002,
|
|
"p(95)": 3.5164705499999975,
|
|
"p(99)": 28.17166338999998,
|
|
"max": 101.725416
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.003708,
|
|
"max": 15.473166,
|
|
"avg": 0.003692385085008864,
|
|
"min": 0.000375,
|
|
"med": 0.001,
|
|
"p(90)": 0.001542,
|
|
"p(95)": 0.001792
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40502,
|
|
"rate": 1000.1709661411204
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"values": {
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 15.433667,
|
|
"avg": 0.0022125769892512906,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"values": {
|
|
"rate": 1000.1709661411204,
|
|
"count": 40502
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0
|
|
},
|
|
"type": "trend"
|
|
}
|
|
}
|
|
} |