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": {
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 43248,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 10754,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"testRunDurationMs": 40489.574547,
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false
|
|
},
|
|
"metrics": {
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 54002,
|
|
"rate": 1333.7260419300005
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1,
|
|
"min": 0,
|
|
"max": 26
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40502,
|
|
"rate": 1000.3068803053384
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40502,
|
|
"rate": 1000.3068803053384
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 16.260292,
|
|
"avg": 0.002463925312661882,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 2.085496531430556,
|
|
"min": 0.875458,
|
|
"med": 1.322875,
|
|
"p(90)": 2.1981083000000003,
|
|
"p(95)": 4.402316049999996,
|
|
"p(99)": 21.291348159999984,
|
|
"max": 96.293792
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 54052
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.2103911000000003,
|
|
"p(95)": 4.410870649999998,
|
|
"p(99)": 21.642430989999998,
|
|
"max": 96.293792,
|
|
"avg": 2.094473757936808,
|
|
"min": 0.73225,
|
|
"med": 1.3273955
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.2484375,
|
|
"p(90)": 2.068925300000001,
|
|
"p(95)": 4.10501865,
|
|
"p(99)": 19.150172059999964,
|
|
"max": 96.293792,
|
|
"avg": 1.9917320551707087,
|
|
"min": 0.875458
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 137169206,
|
|
"rate": 3387766.04927708
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 54002,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.034167,
|
|
"p(95)": 0.0518934499999999,
|
|
"p(99)": 0.08275,
|
|
"max": 1.477166,
|
|
"avg": 0.01850511771997331,
|
|
"min": 0.002917,
|
|
"med": 0.013958
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"values": {
|
|
"max": 16.278292,
|
|
"avg": 0.003772429012802353,
|
|
"min": 0.000458,
|
|
"med": 0.001083,
|
|
"p(90)": 0.001708,
|
|
"p(95)": 0.001959,
|
|
"p(99)": 0.00375
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 2.1435163873375025,
|
|
"min": 0.7585,
|
|
"med": 1.3787289999999999,
|
|
"p(90)": 2.268949700000003,
|
|
"p(95)": 4.405139899999998,
|
|
"p(99)": 21.754541839999984,
|
|
"max": 96.34125
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 15825011,
|
|
"rate": 390841.62224600423
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 54052,
|
|
"rate": 1334.9609277137956
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.007292643454451239,
|
|
"min": 0.001542,
|
|
"med": 0.005958,
|
|
"p(90)": 0.010834,
|
|
"p(95)": 0.014935449999999902,
|
|
"p(99)": 0.04052057999999998,
|
|
"max": 0.662333
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 4.3876414499999985,
|
|
"p(99)": 21.60532558,
|
|
"max": 96.281083,
|
|
"avg": 2.068675996762387,
|
|
"min": 0.714042,
|
|
"med": 1.302854,
|
|
"p(90)": 2.1768459000000004
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 40502
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.2329920000000003,
|
|
"p(95)": 4.472806149999998,
|
|
"p(99)": 21.52803264,
|
|
"max": 95.938292,
|
|
"avg": 2.1088783571472716,
|
|
"min": 0.896792,
|
|
"med": 1.3382295
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 270,
|
|
"min": 270,
|
|
"max": 270
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 21.642430989999998,
|
|
"max": 96.293792,
|
|
"avg": 2.094473757936808,
|
|
"min": 0.73225,
|
|
"med": 1.3273955,
|
|
"p(90)": 2.2103911000000003,
|
|
"p(95)": 4.410870649999998
|
|
}
|
|
}
|
|
}
|
|
} |