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.7 KiB
JSON
309 lines
5.7 KiB
JSON
{
|
|
"metrics": {
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.0125,
|
|
"p(90)": 0.028375,
|
|
"p(95)": 0.0385,
|
|
"p(99)": 0.07085399999999989,
|
|
"max": 0.553292,
|
|
"avg": 0.016449725099503144,
|
|
"min": 0.003208
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 30300,
|
|
"rate": 748.2030627243896
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.9967705000000042,
|
|
"p(95)": 20.65385865,
|
|
"p(99)": 66.36486114,
|
|
"max": 118.001709,
|
|
"avg": 4.156535566022934,
|
|
"min": 0.83375,
|
|
"med": 1.3482295
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.713917,
|
|
"med": 1.310375,
|
|
"p(90)": 3.100875,
|
|
"p(95)": 20.983770999999887,
|
|
"p(99)": 67.61206299999999,
|
|
"max": 131.007,
|
|
"avg": 4.195771365528659
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 202,
|
|
"min": 202,
|
|
"max": 202
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 20.958812499999837,
|
|
"p(99)": 67.59362449999999,
|
|
"max": 130.98275,
|
|
"avg": 4.1717174933623715,
|
|
"min": 0.694125,
|
|
"med": 1.286417,
|
|
"p(90)": 3.059084
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40401,
|
|
"rate": 997.6287768029064
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.80875,
|
|
"med": 1.3212915,
|
|
"p(90)": 3.019899700000003,
|
|
"p(95)": 22.570545499999923,
|
|
"p(99)": 69.8714405,
|
|
"max": 131.007,
|
|
"avg": 4.323180078481826
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 30300
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40451,
|
|
"rate": 998.8634353222535
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 104022673,
|
|
"rate": 2568649.5884943125
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 40451
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 11817373,
|
|
"rate": 291808.40501506627
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 67.667083,
|
|
"max": 131.043333,
|
|
"avg": 4.24132524737009,
|
|
"min": 0.749417,
|
|
"med": 1.357917,
|
|
"p(90)": 3.113125,
|
|
"p(95)": 21.139542
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 14.118791,
|
|
"avg": 0.0032699110034358587,
|
|
"min": 0.0005,
|
|
"med": 0.000959,
|
|
"p(90)": 0.001584,
|
|
"p(95)": 0.001917,
|
|
"p(99)": 0.003875
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 14.107,
|
|
"avg": 0.0019714172949988856
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.007604147066821422,
|
|
"min": 0.001708,
|
|
"med": 0.006875,
|
|
"p(90)": 0.010625,
|
|
"p(95)": 0.015104499999999927,
|
|
"p(99)": 0.03181249999999999,
|
|
"max": 3.067167
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 1,
|
|
"min": 0,
|
|
"max": 59
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 3.1125415000000034,
|
|
"p(95)": 33.73909324999996,
|
|
"p(99)": 82.86895854999997,
|
|
"max": 131.007,
|
|
"avg": 4.988933971480381,
|
|
"min": 0.80875,
|
|
"med": 1.2243545
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 4.195771365528659,
|
|
"min": 0.713917,
|
|
"med": 1.310375,
|
|
"p(90)": 3.100875,
|
|
"p(95)": 20.983770999999887,
|
|
"p(99)": 67.61206299999999,
|
|
"max": 131.007
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 40401,
|
|
"fails": 0,
|
|
"rate": 1
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"values": {
|
|
"count": 30300,
|
|
"rate": 748.2030627243896
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
}
|
|
},
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 32221,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201"
|
|
},
|
|
{
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 8180
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40497.027491
|
|
}
|
|
} |