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": [
|
|
{
|
|
"passes": 91719,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 22846,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40806.532672
|
|
},
|
|
"metrics": {
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0194907253937094,
|
|
"min": 0.002917,
|
|
"med": 0.0115,
|
|
"p(90)": 0.04975,
|
|
"p(95)": 0.07009629999999979,
|
|
"p(99)": 0.11028611999999996,
|
|
"max": 2.686792
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 33594405,
|
|
"rate": 823260.4634662158
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 114615
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1384,
|
|
"min": 608,
|
|
"max": 1384
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 432.33065009999996,
|
|
"p(99)": 471.35303489999995,
|
|
"max": 535.996417,
|
|
"avg": 239.67014168168944,
|
|
"min": 0.998792,
|
|
"med": 301.221125,
|
|
"p(90)": 400.0784588
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.010278803612093039,
|
|
"min": 0.001459,
|
|
"med": 0.003958,
|
|
"p(90)": 0.011625,
|
|
"p(95)": 0.022167,
|
|
"p(99)": 0.07599425999999995,
|
|
"max": 7.894042
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 84301,
|
|
"rate": 2065.870204597029
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 7035,
|
|
"rate": 172.3988670281503
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 114565,
|
|
"rate": 2807.516162200432
|
|
}
|
|
},
|
|
"checks": {
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 114565,
|
|
"fails": 0
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 84301
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 536.043542,
|
|
"avg": 239.82713069402408,
|
|
"min": 1.027542,
|
|
"med": 301.307625,
|
|
"p(90)": 400.1725584,
|
|
"p(95)": 432.3865252,
|
|
"p(99)": 471.42238987999997
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 987,
|
|
"min": 6,
|
|
"max": 1000
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 114615,
|
|
"rate": 2808.7414562091612
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 439.20878969999995,
|
|
"p(99)": 472.52059375,
|
|
"max": 530.858917,
|
|
"avg": 303.4537510953846,
|
|
"min": 1.159125,
|
|
"med": 320.0149375,
|
|
"p(90)": 414.3394376
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.001042,
|
|
"p(90)": 0.001666,
|
|
"p(95)": 0.002,
|
|
"p(99)": 0.05732223999999992,
|
|
"max": 22.294583,
|
|
"avg": 0.005252261100204376,
|
|
"min": 0.000375
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 304.8491709642452,
|
|
"min": 0.998792,
|
|
"med": 321.153125,
|
|
"p(90)": 416.254875,
|
|
"p(95)": 441.600917,
|
|
"p(99)": 474.634667,
|
|
"max": 535.996417
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.03836337999999991,
|
|
"max": 22.286916,
|
|
"avg": 0.003434107664790826,
|
|
"min": 0,
|
|
"med": 0
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 400.06076640000003,
|
|
"p(95)": 432.30665889999995,
|
|
"p(99)": 471.33149979999996,
|
|
"max": 535.985167,
|
|
"avg": 239.6403721526821,
|
|
"min": 0.989917,
|
|
"med": 301.19625
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"values": {
|
|
"p(95)": 449.8115584,
|
|
"p(99)": 483.56979872,
|
|
"max": 535.996417,
|
|
"avg": 310.4671232032444,
|
|
"min": 0.998792,
|
|
"med": 326.103291,
|
|
"p(90)": 424.1073584
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.998792,
|
|
"med": 301.221125,
|
|
"p(90)": 400.0784588,
|
|
"p(95)": 432.33065009999996,
|
|
"p(99)": 471.35303489999995,
|
|
"max": 535.996417,
|
|
"avg": 239.67014168168944
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 292292733,
|
|
"rate": 7162890.690797675
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 84301,
|
|
"rate": 2065.870204597029
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 6898,
|
|
"rate": 169.04156144423325
|
|
}
|
|
}
|
|
}
|
|
} |