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
{
|
|
"metrics": {
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 108001,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 144052
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.002333,
|
|
"p(99)": 0.004167,
|
|
"max": 14.825459,
|
|
"avg": 0.003869291283703103,
|
|
"min": 0.000458,
|
|
"med": 0.001458,
|
|
"p(90)": 0.002042
|
|
}
|
|
},
|
|
"data_received": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 365992137,
|
|
"rate": 9033794.391029475
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 108001,
|
|
"rate": 2665.791773623744
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 3.0516880000000004,
|
|
"p(95)": 4.548885499999996,
|
|
"p(99)": 51.06890895,
|
|
"max": 180.11975,
|
|
"avg": 3.425129297508788,
|
|
"min": 1.15775,
|
|
"med": 1.8866665
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 42263740,
|
|
"rate": 1043197.103865453
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 108001,
|
|
"rate": 2665.791773623744
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 144052,
|
|
"rate": 3555.639638281568
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"values": {
|
|
"avg": 3.7280440774164507,
|
|
"min": 1.15775,
|
|
"med": 2.122375,
|
|
"p(90)": 3.889021100000001,
|
|
"p(95)": 7.8444128,
|
|
"p(99)": 42.71270374999994,
|
|
"max": 323.986541
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 323.986541,
|
|
"avg": 4.188380339922469,
|
|
"min": 1.287625,
|
|
"med": 2.178833,
|
|
"p(90)": 4.3378580000000015,
|
|
"p(95)": 11.143774999999977,
|
|
"p(99)": 49.43364199999998
|
|
}
|
|
},
|
|
"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"
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 144002,
|
|
"rate": 3554.405486850737
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 4.0275,
|
|
"p(95)": 9.663541,
|
|
"p(99)": 49.755541,
|
|
"max": 323.986541,
|
|
"avg": 4.035759813149916,
|
|
"min": 1.15775,
|
|
"med": 2.130208
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.15775,
|
|
"med": 2.122375,
|
|
"p(90)": 3.889021100000001,
|
|
"p(95)": 7.8444128,
|
|
"p(99)": 42.71270374999994,
|
|
"max": 323.986541,
|
|
"avg": 3.7280440774164507
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.117625,
|
|
"max": 9.726666,
|
|
"avg": 0.012044390247966694,
|
|
"min": 0.001375,
|
|
"med": 0.00475,
|
|
"p(90)": 0.013875,
|
|
"p(95)": 0.03891644999999999
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.02229801961097368,
|
|
"min": 0.003042,
|
|
"med": 0.012334,
|
|
"p(90)": 0.058875,
|
|
"p(95)": 0.08541645,
|
|
"p(99)": 0.13585357999999995,
|
|
"max": 9.676791
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 720,
|
|
"min": 720,
|
|
"max": 720
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 323.975083,
|
|
"avg": 3.6937016675575496,
|
|
"min": 1.136875,
|
|
"med": 2.094583,
|
|
"p(90)": 3.8320337,
|
|
"p(95)": 7.778652049999995,
|
|
"p(99)": 42.67558276
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 3.7887662111151315,
|
|
"min": 1.196542,
|
|
"med": 2.1811045,
|
|
"p(90)": 3.952667,
|
|
"p(95)": 7.893206849999999,
|
|
"p(99)": 42.77675407999995,
|
|
"max": 324.049084
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 6,
|
|
"min": 4,
|
|
"max": 81
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 144002,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0,
|
|
"max": 14.811709,
|
|
"avg": 0.0020389439785632995,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
}
|
|
}
|
|
},
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 28587,
|
|
"fails": 0,
|
|
"name": "history 200"
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 115415,
|
|
"fails": 0
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40513.666922
|
|
}
|
|
} |