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": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 28904
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 7097,
|
|
"fails": 0
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40663.783463,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 27000
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 10552286,
|
|
"rate": 259500.8408305521
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 27000,
|
|
"rate": 663.9815014893367
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0,
|
|
"max": 10.338375,
|
|
"avg": 0.0014404719980028284,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 90482291,
|
|
"rate": 2225132.1272731517
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 180,
|
|
"min": 180,
|
|
"max": 180
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.707125,
|
|
"p(95)": 2.1447499999999993,
|
|
"p(99)": 9.406708499999997,
|
|
"max": 53.469042,
|
|
"avg": 1.5929649149815477,
|
|
"min": 0.76025,
|
|
"med": 1.271959
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 886.5628559330399,
|
|
"count": 36051
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 36001,
|
|
"rate": 885.3332605599115
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.285292,
|
|
"p(90)": 1.6925500000000002,
|
|
"p(95)": 2.0624124999999993,
|
|
"p(99)": 7.438369249999998,
|
|
"max": 35.961208,
|
|
"avg": 1.5220416205517246,
|
|
"min": 0.905959
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 53.469042,
|
|
"avg": 1.5929649149815477,
|
|
"min": 0.76025,
|
|
"med": 1.271959,
|
|
"p(90)": 1.707125,
|
|
"p(95)": 2.1447499999999993,
|
|
"p(99)": 9.406708499999997
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.0039794999999999865,
|
|
"max": 10.36575,
|
|
"avg": 0.0027369035810376084,
|
|
"min": 0.000459,
|
|
"med": 0.001,
|
|
"p(90)": 0.001666,
|
|
"p(95)": 0.001959
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.677167,
|
|
"p(95)": 2.118333,
|
|
"p(99)": 9.352770499999993,
|
|
"max": 53.304792,
|
|
"avg": 1.5681324177692701,
|
|
"min": 0.742167,
|
|
"med": 1.248667
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.006917,
|
|
"p(90)": 0.010708,
|
|
"p(95)": 0.01475,
|
|
"p(99)": 0.032042,
|
|
"max": 1.482875,
|
|
"avg": 0.00759293833735536,
|
|
"min": 0.001709
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 663.9815014893367,
|
|
"count": 27000
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 1.8115998499999992,
|
|
"p(99)": 4.689775339999997,
|
|
"max": 41.978375,
|
|
"avg": 1.3984840384761887,
|
|
"min": 0.835666,
|
|
"med": 1.1889375,
|
|
"p(90)": 1.6013169
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.0058895999999997,
|
|
"p(99)": 6.943714589999992,
|
|
"max": 41.978375,
|
|
"avg": 1.4980165351481487,
|
|
"min": 0.835666,
|
|
"med": 1.2719165000000001,
|
|
"p(90)": 1.6740411
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.202625,
|
|
"p(99)": 8.793833,
|
|
"max": 53.68475,
|
|
"avg": 1.6312559804727722,
|
|
"min": 0.79775,
|
|
"med": 1.321542,
|
|
"p(90)": 1.768334
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 36001,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"vus": {
|
|
"contains": "default",
|
|
"values": {
|
|
"min": 0,
|
|
"max": 6,
|
|
"value": 2
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.0374165,
|
|
"p(99)": 0.06625,
|
|
"max": 0.469166,
|
|
"avg": 0.01723955887492743,
|
|
"min": 0.003125,
|
|
"med": 0.013458,
|
|
"p(90)": 0.029541
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 36051
|
|
}
|
|
}
|
|
}
|
|
} |