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
{
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"testRunDurationMs": 40861.518408,
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 437.9054756,
|
|
"p(95)": 484.72916269999996,
|
|
"p(99)": 596.84911274,
|
|
"max": 724.450167,
|
|
"avg": 289.4613381376725,
|
|
"min": 1.145042,
|
|
"med": 325.487584
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 79337
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"checks": {
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 109065,
|
|
"fails": 0
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 109115,
|
|
"rate": 2670.3608737808704
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"values": {
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 277150321,
|
|
"rate": 6782673.082107947
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.009209175612885673,
|
|
"min": 0.001458,
|
|
"med": 0.00425,
|
|
"p(90)": 0.012667,
|
|
"p(95)": 0.024292,
|
|
"p(99)": 0.08036337999999991,
|
|
"max": 3.508708
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.07325,
|
|
"p(99)": 0.116583,
|
|
"max": 2.262208,
|
|
"avg": 0.02054697497136022,
|
|
"min": 0.003042,
|
|
"med": 0.0125,
|
|
"p(90)": 0.050375
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 31989118,
|
|
"rate": 782866.6003203901
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 109065,
|
|
"rate": 2669.137228602031
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"min": 16,
|
|
"max": 1000,
|
|
"value": 999
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 724.450167,
|
|
"avg": 357.97576079308044,
|
|
"min": 123.190875,
|
|
"med": 352.6677295,
|
|
"p(90)": 469.479167,
|
|
"p(95)": 523.96922875,
|
|
"p(99)": 623.5458855
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0032148548228932814,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.046667,
|
|
"max": 23.00925
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 325.460652,
|
|
"p(90)": 437.87476680000003,
|
|
"p(95)": 484.7153705,
|
|
"p(99)": 596.8109619999999,
|
|
"max": 724.43225,
|
|
"avg": 289.43158198708795,
|
|
"min": 1.127959
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 79337,
|
|
"rate": 1941.6067510713733
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 460.580791,
|
|
"p(95)": 508.40377149999995,
|
|
"p(99)": 608.2524714,
|
|
"max": 676.692626,
|
|
"avg": 348.5528607350465,
|
|
"min": 122.585833,
|
|
"med": 344.138583
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 596.9710821199999,
|
|
"max": 724.511167,
|
|
"avg": 289.6492341088534,
|
|
"min": 1.176,
|
|
"med": 325.576834,
|
|
"p(90)": 437.9869588,
|
|
"p(95)": 484.8739005999996
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 109115
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 11863,
|
|
"rate": 290.32205513139775
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"max": 1633,
|
|
"value": 1633,
|
|
"min": 608
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 1.145042,
|
|
"med": 325.487584,
|
|
"p(90)": 437.9054756,
|
|
"p(95)": 484.72916269999996,
|
|
"p(99)": 596.84911274,
|
|
"max": 724.450167,
|
|
"avg": 289.4613381376725
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 306.7923192385739,
|
|
"count": 12536
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.002166,
|
|
"p(99)": 0.0663038799999998,
|
|
"max": 23.018459,
|
|
"avg": 0.004882632397012368,
|
|
"min": 0.000375,
|
|
"med": 0.001084,
|
|
"p(90)": 0.001791
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 724.450167,
|
|
"avg": 350.42064658922317,
|
|
"min": 122.585833,
|
|
"med": 345.866875,
|
|
"p(90)": 462.5768418,
|
|
"p(95)": 511.2300831999999,
|
|
"p(99)": 611.48510888
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 79337,
|
|
"rate": 1941.6067510713733
|
|
},
|
|
"type": "counter"
|
|
}
|
|
},
|
|
"root_group": {
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 87400
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 21665,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": ""
|
|
}
|
|
} |