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": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 137047,
|
|
"fails": 0,
|
|
"name": "message 201"
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 33889,
|
|
"fails": 0
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": ""
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40715.220047
|
|
},
|
|
"metrics": {
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 235.59674010527476,
|
|
"min": 116.662334,
|
|
"med": 229.352084,
|
|
"p(90)": 278.6854166,
|
|
"p(95)": 298.83303839999996,
|
|
"p(99)": 347.18483794,
|
|
"max": 748.776819
|
|
}
|
|
},
|
|
"iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 170936,
|
|
"rate": 4198.331724664104
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"data_received": {
|
|
"values": {
|
|
"count": 434358154,
|
|
"rate": 10668201.068263773
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 276.7412085,
|
|
"p(95)": 297.58161425,
|
|
"p(99)": 347.18793805,
|
|
"max": 762.951084,
|
|
"avg": 229.8009751500105,
|
|
"min": 1.948667,
|
|
"med": 225.951792
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.036131299999999936,
|
|
"max": 16.089042,
|
|
"avg": 0.008220498789374567,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 229.7625597531544,
|
|
"min": 1.930375,
|
|
"med": 225.914396,
|
|
"p(90)": 276.69910400000003,
|
|
"p(95)": 297.53277099999997,
|
|
"p(99)": 347.15992745,
|
|
"max": 762.936208
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 126499,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 14.145459,
|
|
"avg": 0.015323848086978873,
|
|
"min": 0.001541,
|
|
"med": 0.004584,
|
|
"p(90)": 0.025125,
|
|
"p(95)": 0.059292,
|
|
"p(99)": 0.167833
|
|
}
|
|
},
|
|
"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_receiving": {
|
|
"values": {
|
|
"med": 0.013458,
|
|
"p(90)": 0.051042,
|
|
"p(95)": 0.083417,
|
|
"p(99)": 0.1425,
|
|
"max": 7.274834,
|
|
"avg": 0.02309154877007456,
|
|
"min": 0.003375
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 126499,
|
|
"rate": 3106.921683193034
|
|
}
|
|
},
|
|
"vus": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 997,
|
|
"min": 550,
|
|
"max": 1000
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 292.08763780000004,
|
|
"p(95)": 308.8698205,
|
|
"p(99)": 345.54028705999997,
|
|
"max": 448.518,
|
|
"avg": 252.76653485357497,
|
|
"min": 122.833917,
|
|
"med": 248.17362500000002
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 45065,
|
|
"rate": 1106.8342489118022
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 126499,
|
|
"rate": 3106.921683193034
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 1092,
|
|
"max": 2000
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 170986,
|
|
"rate": 0
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 50203816,
|
|
"rate": 1233047.8858286103
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 273.2120006,
|
|
"p(95)": 294.53993339999994,
|
|
"p(99)": 347.983765,
|
|
"max": 748.776819,
|
|
"avg": 231.35713835025376,
|
|
"min": 116.662334,
|
|
"med": 224.139959
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 170986,
|
|
"rate": 4199.559766657792
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 3.340125,
|
|
"med": 226.021521,
|
|
"p(90)": 276.81766700000003,
|
|
"p(95)": 297.6518125,
|
|
"p(99)": 347.25202084999995,
|
|
"max": 762.997792,
|
|
"avg": 229.93568961973858
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 35502,
|
|
"rate": 871.958937198864
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 170936,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.001834,
|
|
"p(95)": 0.002208,
|
|
"p(99)": 0.05484559999999987,
|
|
"max": 18.695166,
|
|
"avg": 0.010911047477569786,
|
|
"min": 0.000333,
|
|
"med": 0.001167
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 229.8009751500105,
|
|
"min": 1.948667,
|
|
"med": 225.951792,
|
|
"p(90)": 276.7412085,
|
|
"p(95)": 297.58161425,
|
|
"p(99)": 347.18793805,
|
|
"max": 762.951084
|
|
}
|
|
}
|
|
}
|
|
} |