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.6 KiB
JSON
309 lines
5.6 KiB
JSON
{
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"passes": 64843,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
},
|
|
{
|
|
"passes": 15958,
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40535.581658
|
|
},
|
|
"metrics": {
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60601,
|
|
"rate": 1495.0075346467847
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0,
|
|
"max": 16.309708,
|
|
"avg": 0.0018207330150523807,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0
|
|
}
|
|
},
|
|
"checks": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 80801,
|
|
"fails": 0
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_waiting": {
|
|
"values": {
|
|
"p(90)": 16.38975,
|
|
"p(95)": 40.538353999999934,
|
|
"p(99)": 74.31943799999999,
|
|
"max": 178.514375,
|
|
"avg": 6.5706003532176425,
|
|
"min": 0.86425,
|
|
"med": 1.757084
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 404,
|
|
"min": 404,
|
|
"max": 404
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0088587174803033,
|
|
"min": 0.0015,
|
|
"med": 0.005334,
|
|
"p(90)": 0.012209,
|
|
"p(95)": 0.020291,
|
|
"p(99)": 0.058187499999999975,
|
|
"max": 2.312792
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 80851
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 80851,
|
|
"rate": 1994.5686405129813
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.003041,
|
|
"med": 0.013,
|
|
"p(90)": 0.036042,
|
|
"p(95)": 0.063,
|
|
"p(99)": 0.09956249999999997,
|
|
"max": 3.040833,
|
|
"avg": 0.018736695983970462
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 6.598195766681958,
|
|
"min": 0.882708,
|
|
"med": 1.78425,
|
|
"p(90)": 16.404666,
|
|
"p(95)": 40.560333,
|
|
"p(99)": 74.3490625,
|
|
"max": 178.589334
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.695833,
|
|
"p(90)": 24.762833400000005,
|
|
"p(95)": 53.93914999999998,
|
|
"p(99)": 89.81217549999997,
|
|
"max": 178.589334,
|
|
"avg": 7.9269943372607585,
|
|
"min": 0.882708
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.000458,
|
|
"med": 0.00125,
|
|
"p(90)": 0.001875,
|
|
"p(95)": 0.002166,
|
|
"p(99)": 0.00425,
|
|
"max": 16.698459,
|
|
"avg": 0.00365106102583786
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"max": 67,
|
|
"value": 4,
|
|
"min": 2
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"rate": 5041420.8614092665,
|
|
"count": 204356927
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.92575,
|
|
"med": 1.841,
|
|
"p(90)": 16.535958,
|
|
"p(95)": 40.637,
|
|
"p(99)": 74.416792,
|
|
"max": 178.629542,
|
|
"avg": 6.655225955520333
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.882708,
|
|
"med": 1.78425,
|
|
"p(90)": 16.404666,
|
|
"p(95)": 40.560333,
|
|
"p(99)": 74.3490625,
|
|
"max": 178.589334,
|
|
"avg": 6.598195766681958
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"values": {
|
|
"avg": 7.095566221984684,
|
|
"min": 0.934083,
|
|
"med": 1.837396,
|
|
"p(90)": 20.2913579,
|
|
"p(95)": 44.63033564999996,
|
|
"p(99)": 74.95329802999996,
|
|
"max": 166.165334
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 60601
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 21.018792,
|
|
"p(95)": 46.606458,
|
|
"p(99)": 77.743917,
|
|
"max": 178.589334,
|
|
"avg": 7.259749985544839,
|
|
"min": 0.882708,
|
|
"med": 1.813958
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 60601,
|
|
"rate": 1495.0075346467847
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 80801,
|
|
"rate": 1993.335156300966
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 23706597,
|
|
"rate": 584834.2624021858
|
|
}
|
|
}
|
|
}
|
|
} |