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": [
|
|
{
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 14357,
|
|
"fails": 0,
|
|
"name": "message 201"
|
|
},
|
|
{
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 3646
|
|
}
|
|
],
|
|
"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": 40616.72263
|
|
},
|
|
"metrics": {
|
|
"http_reqs{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 13502,
|
|
"rate": 332.42465481513915
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"vus_max": {
|
|
"contains": "default",
|
|
"values": {
|
|
"min": 90,
|
|
"max": 90,
|
|
"value": 90
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 13502
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.0050418,
|
|
"p(95)": 3.200641799999998,
|
|
"p(99)": 9.66333511999999,
|
|
"max": 50.101,
|
|
"avg": 1.638938478866691,
|
|
"min": 0.864,
|
|
"med": 1.26475
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.7382083999999995,
|
|
"p(99)": 8.37244134,
|
|
"max": 50.258666,
|
|
"avg": 1.5893141789701717,
|
|
"min": 0.716375,
|
|
"med": 1.27075,
|
|
"p(90)": 1.9333828
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 18053
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 15.058333,
|
|
"avg": 0.002243427020439817,
|
|
"min": 0
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 13502,
|
|
"rate": 332.42465481513915
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 18003,
|
|
"rate": 443.24107988719817
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.346566599999999,
|
|
"p(99)": 6.805445119999999,
|
|
"max": 49.15225,
|
|
"avg": 1.5101697267080765,
|
|
"min": 0.826209,
|
|
"med": 1.176917,
|
|
"p(90)": 1.7610664000000003
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1,
|
|
"min": 0,
|
|
"max": 7
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.553021746302556,
|
|
"min": 0.668583,
|
|
"med": 1.211958,
|
|
"p(90)": 1.8631084,
|
|
"p(95)": 2.7446167999999997,
|
|
"p(99)": 9.248095319999994,
|
|
"max": 50.101
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 50.101,
|
|
"avg": 1.612835673752042,
|
|
"min": 0.826209,
|
|
"med": 1.2491249999999998,
|
|
"p(90)": 1.952542,
|
|
"p(95)": 2.991354149999998,
|
|
"p(99)": 9.397401749999997
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"values": {
|
|
"min": 0.668583,
|
|
"med": 1.211958,
|
|
"p(90)": 1.8631084,
|
|
"p(95)": 2.7446167999999997,
|
|
"p(99)": 9.248095319999994,
|
|
"max": 50.101,
|
|
"avg": 1.553021746302556
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_waiting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 9.223916999999995,
|
|
"max": 50.038334,
|
|
"avg": 1.5254590924500058,
|
|
"min": 0.649084,
|
|
"med": 1.18575,
|
|
"p(90)": 1.8264500000000001,
|
|
"p(95)": 2.6795915999999984
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.0356664,
|
|
"p(99)": 0.05895683999999998,
|
|
"max": 0.678666,
|
|
"avg": 0.018753640558356065,
|
|
"min": 0.003542,
|
|
"med": 0.015625,
|
|
"p(90)": 0.02915780000000002
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 444.4720999390984,
|
|
"count": 18053
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 5260963,
|
|
"rate": 129527.0189061042
|
|
}
|
|
},
|
|
"data_received": {
|
|
"values": {
|
|
"count": 45797449,
|
|
"rate": 1127551.5608975661
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"checks": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 18003,
|
|
"fails": 0
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.002042,
|
|
"p(95)": 0.002417,
|
|
"p(99)": 0.005145159999999993,
|
|
"max": 15.079709,
|
|
"avg": 0.0037994511161577953,
|
|
"min": 0.0005,
|
|
"med": 0.001208
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.007958,
|
|
"p(90)": 0.0121668,
|
|
"p(95)": 0.014583,
|
|
"p(99)": 0.027645159999999995,
|
|
"max": 0.382875,
|
|
"avg": 0.008809013294189327,
|
|
"min": 0.001791
|
|
},
|
|
"type": "trend"
|
|
}
|
|
}
|
|
} |