forked from mtusi2026/mtusi2026lab2
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": {
|
|
"checks": [
|
|
{
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 48413,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 12274,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": []
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40483.938338
|
|
},
|
|
"metrics": {
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 45550
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60687,
|
|
"rate": 1499.038939673429
|
|
}
|
|
},
|
|
"data_received": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 156402369,
|
|
"rate": 3863319.020353162
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.001875,
|
|
"p(99)": 0.00425,
|
|
"max": 12.559667,
|
|
"avg": 0.003450192765529826,
|
|
"min": 0.000417,
|
|
"med": 0.001,
|
|
"p(90)": 0.001583
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 79.56801004999988,
|
|
"p(99)": 112.20114442,
|
|
"max": 165.479625,
|
|
"avg": 12.66644126917683,
|
|
"min": 0.872583,
|
|
"med": 2.061063,
|
|
"p(90)": 52.89919610000002
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1500.2739973790935,
|
|
"count": 60737
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 12.545666,
|
|
"avg": 0.0020820535752506713,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 60737
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"values": {
|
|
"count": 51,
|
|
"rate": 1.259758859777957
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"values": {
|
|
"p(90)": 60.32176640000001,
|
|
"p(95)": 85.53035039999999,
|
|
"p(99)": 120.35786,
|
|
"max": 165.479625,
|
|
"avg": 13.591761625739814,
|
|
"min": 0.8745,
|
|
"med": 1.944958
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"checks": {
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 60687,
|
|
"fails": 0
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 3,
|
|
"min": 2,
|
|
"max": 171
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.872583,
|
|
"med": 2.087084,
|
|
"p(90)": 51.532008600000005,
|
|
"p(95)": 77.65156699999999,
|
|
"p(99)": 110.90454003999997,
|
|
"max": 154.25275,
|
|
"avg": 12.42927321684094
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.007482163146022878,
|
|
"min": 0.001542,
|
|
"med": 0.006541,
|
|
"p(90)": 0.010709,
|
|
"p(95)": 0.015917,
|
|
"p(99)": 0.038787999999999934,
|
|
"max": 1.075917
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 170.864834,
|
|
"avg": 13.164961810955369,
|
|
"min": 0.791291,
|
|
"med": 2.010959,
|
|
"p(90)": 54.882834000000024,
|
|
"p(95)": 84.37911659999997,
|
|
"p(99)": 119.59760863999998
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0.05325,
|
|
"p(99)": 0.08037135999999993,
|
|
"max": 1.746834,
|
|
"avg": 0.01669946495546366,
|
|
"min": 0.00325,
|
|
"med": 0.011917,
|
|
"p(90)": 0.03075
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 45550,
|
|
"rate": 1125.1375698605086
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 13.189143439056895,
|
|
"min": 0.81175,
|
|
"med": 2.03375,
|
|
"p(90)": 54.90158360000001,
|
|
"p(95)": 84.4035426,
|
|
"p(99)": 119.61445147999999,
|
|
"max": 170.880042
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 17764433,
|
|
"rate": 438801.9972682728
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 364,
|
|
"min": 304,
|
|
"max": 364
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 13.189143439056895,
|
|
"min": 0.81175,
|
|
"med": 2.03375,
|
|
"p(90)": 54.90158360000001,
|
|
"p(95)": 84.4035426,
|
|
"p(99)": 119.61445147999999,
|
|
"max": 170.880042
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 84.4784088999999,
|
|
"p(99)": 119.68143323999999,
|
|
"max": 170.926833,
|
|
"avg": 13.243890110831028,
|
|
"min": 0.840083,
|
|
"med": 2.081417,
|
|
"p(90)": 55.0342328
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 45550,
|
|
"rate": 1125.1375698605086
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 113,
|
|
"rate": 2.79123041480214
|
|
}
|
|
}
|
|
}
|
|
} |