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
{
|
|
"root_group": {
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 12038,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 48626,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": ""
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40510.142755,
|
|
"isStdOutTTY": false
|
|
},
|
|
"metrics": {
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 185.742791,
|
|
"avg": 17.151832557973467,
|
|
"min": 0.872458,
|
|
"med": 1.974667,
|
|
"p(90)": 72.016292,
|
|
"p(95)": 99.768084,
|
|
"p(99)": 138.30499999999998
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 185.742791,
|
|
"avg": 15.761663532875248,
|
|
"min": 0.704375,
|
|
"med": 2.131333,
|
|
"p(90)": 65.48090900000003,
|
|
"p(95)": 92.31219154999997,
|
|
"p(99)": 127.19810421
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"values": {
|
|
"p(95)": 93.1626375,
|
|
"p(99)": 128.95914874999997,
|
|
"max": 185.742791,
|
|
"avg": 16.34417875685591,
|
|
"min": 0.871375,
|
|
"med": 2.1231045,
|
|
"p(90)": 66.7844711
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 14.415625,
|
|
"avg": 0.0036087776130708307,
|
|
"min": 0.000458,
|
|
"med": 0.001,
|
|
"p(90)": 0.001666,
|
|
"p(95)": 0.001958,
|
|
"p(99)": 0.00475
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"values": {
|
|
"rate": 439055.5991759551,
|
|
"count": 17786205
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"vus_max": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 379,
|
|
"min": 312,
|
|
"max": 379
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 45508,
|
|
"rate": 1123.3729852601703
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_reqs": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60714,
|
|
"rate": 1498.7357701302183
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"iterations": {
|
|
"values": {
|
|
"count": 60664,
|
|
"rate": 1497.5015113347754
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.007619531146028789,
|
|
"min": 0.001625,
|
|
"med": 0.006625,
|
|
"p(90)": 0.010917,
|
|
"p(95)": 0.015958,
|
|
"p(99)": 0.03820253999999998,
|
|
"max": 1.329583
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 127.26177504,
|
|
"max": 185.782,
|
|
"avg": 15.819705382698096,
|
|
"min": 0.734667,
|
|
"med": 2.1801874999999997,
|
|
"p(90)": 65.57605810000003,
|
|
"p(95)": 92.38484734999994
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 45508
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 127.19810421,
|
|
"max": 185.742791,
|
|
"avg": 15.761663532875248,
|
|
"min": 0.704375,
|
|
"med": 2.131333,
|
|
"p(90)": 65.48090900000003,
|
|
"p(95)": 92.31219154999997
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 60664,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 14.398291,
|
|
"avg": 0.0020083397239516404,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.003083,
|
|
"med": 0.012166,
|
|
"p(90)": 0.031166,
|
|
"p(95)": 0.054334,
|
|
"p(99)": 0.08266687,
|
|
"max": 1.118959,
|
|
"avg": 0.016950212273940123
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 138,
|
|
"rate": 3.40655427542198
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 60714
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 45508,
|
|
"rate": 1123.3729852601703
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.69575,
|
|
"med": 2.107792,
|
|
"p(90)": 65.44692150000002,
|
|
"p(95)": 92.28979779999993,
|
|
"p(99)": 127.17732682999998,
|
|
"max": 185.705875,
|
|
"avg": 15.73709378945546
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"min": 1,
|
|
"max": 180,
|
|
"value": 3
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 153696217,
|
|
"rate": 3794018.1531705395
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 93,
|
|
"rate": 2.2957213595235086
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 91.92375009999994,
|
|
"p(99)": 127.18990904,
|
|
"max": 170.081458,
|
|
"avg": 16.146149213752132,
|
|
"min": 0.871375,
|
|
"med": 2.15825,
|
|
"p(90)": 65.5657
|
|
}
|
|
}
|
|
}
|
|
} |