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": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 5500,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 21702,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTimeUnit": "",
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
]
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40493.042866,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0022803645237046816,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 12.141458
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 27252,
|
|
"rate": 673.0044983327779
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 21.661458,
|
|
"avg": 1.6317911238879697,
|
|
"min": 0.739125,
|
|
"med": 1.3140205,
|
|
"p(90)": 2.133667,
|
|
"p(95)": 3.276336049999997,
|
|
"p(99)": 7.442139409999992
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 27252
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.5502007406783793,
|
|
"min": 0.847209,
|
|
"med": 1.228958,
|
|
"p(90)": 2.0135834000000004,
|
|
"p(95)": 3.259966399999999,
|
|
"p(99)": 7.165273479999997,
|
|
"max": 16.576084
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 136,
|
|
"min": 136,
|
|
"max": 136
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 3.486084,
|
|
"p(99)": 7.432125,
|
|
"max": 21.606083,
|
|
"avg": 1.626084370177932,
|
|
"min": 0.847209,
|
|
"med": 1.296417,
|
|
"p(90)": 2.146083
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.013541,
|
|
"p(99)": 0.02664508999999999,
|
|
"max": 1.309167,
|
|
"avg": 0.007897582672831303,
|
|
"min": 0.001875,
|
|
"med": 0.007291,
|
|
"p(90)": 0.01125
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 20401
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.5574545582709547,
|
|
"min": 0.667625,
|
|
"med": 1.2297704999999999,
|
|
"p(90)": 2.0397333000000004,
|
|
"p(95)": 3.2579518999999935,
|
|
"p(99)": 7.8208464199999925,
|
|
"max": 21.585334
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1,
|
|
"min": 0,
|
|
"max": 3
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 20401,
|
|
"rate": 503.8149409396375
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0037568091516217345,
|
|
"min": 0.000541,
|
|
"med": 0.001167,
|
|
"p(90)": 0.001958,
|
|
"p(95)": 0.002292,
|
|
"p(99)": 0.00447908999999999,
|
|
"max": 12.173333
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 20401,
|
|
"rate": 503.8149409396375
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"values": {
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"checks": {
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 27202,
|
|
"fails": 0
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"values": {
|
|
"min": 0.873584,
|
|
"med": 1.3133754999999998,
|
|
"p(90)": 2.1755251,
|
|
"p(95)": 3.5401982499999995,
|
|
"p(99)": 7.47555138,
|
|
"max": 21.606083,
|
|
"avg": 1.6455037402733381
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.5838872042785812,
|
|
"min": 0.687083,
|
|
"med": 1.2550835,
|
|
"p(90)": 2.0716628000000004,
|
|
"p(95)": 3.2873397999999985,
|
|
"p(99)": 7.886235169999988,
|
|
"max": 21.606083
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 69599333,
|
|
"rate": 1718797.3062513191
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 7954499,
|
|
"rate": 196441.12758636367
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 21.606083,
|
|
"avg": 1.5838872042785812,
|
|
"min": 0.687083,
|
|
"med": 1.2550835,
|
|
"p(90)": 2.0716628000000004,
|
|
"p(95)": 3.2873397999999985,
|
|
"p(99)": 7.886235169999988
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.018535063334801115,
|
|
"min": 0.003458,
|
|
"med": 0.015125,
|
|
"p(90)": 0.03075,
|
|
"p(95)": 0.039125,
|
|
"p(99)": 0.06441566999999998,
|
|
"max": 1.12525
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 27202,
|
|
"rate": 671.7697183196912
|
|
}
|
|
}
|
|
}
|
|
} |