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": {
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 14398,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 3604,
|
|
"fails": 0
|
|
}
|
|
],
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e"
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40619.827755
|
|
},
|
|
"metrics": {
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.0114461499999985,
|
|
"p(99)": 5.201851839999999,
|
|
"max": 16.847792,
|
|
"avg": 1.3254963250749965,
|
|
"min": 0.7745,
|
|
"med": 1.129458,
|
|
"p(90)": 1.6569497
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 3,
|
|
"min": 0,
|
|
"max": 3
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.2252774042081942,
|
|
"min": 0.83325,
|
|
"med": 1.06675,
|
|
"p(90)": 1.5256994000000001,
|
|
"p(95)": 1.7731161999999991,
|
|
"p(99)": 4.414765999999994,
|
|
"max": 14.159542
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"values": {
|
|
"avg": 1.2986416459672028,
|
|
"min": 0.737459,
|
|
"med": 1.0763544999999999,
|
|
"p(90)": 1.5957753000000001,
|
|
"p(95)": 1.970547699999999,
|
|
"p(99)": 5.710172499999997,
|
|
"max": 25.423084
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"http_req_waiting": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.2741147767006453,
|
|
"min": 0.718833,
|
|
"med": 1.052937,
|
|
"p(90)": 1.5649792,
|
|
"p(95)": 1.9290999999999996,
|
|
"p(99)": 5.6448376699999985,
|
|
"max": 25.368708
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 45579458,
|
|
"rate": 1122098.7512530626
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 13501
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 18052,
|
|
"rate": 444.4135043821778
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"checks": {
|
|
"values": {
|
|
"passes": 18002,
|
|
"fails": 0,
|
|
"rate": 1
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 13501,
|
|
"rate": 332.3746245659086
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 18002,
|
|
"rate": 443.1825784338558
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 12.746417,
|
|
"avg": 0.0018237357633503208,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0
|
|
}
|
|
},
|
|
"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_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.2986416459672028,
|
|
"min": 0.737459,
|
|
"med": 1.0763544999999999,
|
|
"p(90)": 1.5957753000000001,
|
|
"p(95)": 1.970547699999999,
|
|
"p(99)": 5.710172499999997,
|
|
"max": 25.423084
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 1.971167,
|
|
"p(99)": 5.082083,
|
|
"max": 14.498375,
|
|
"avg": 1.2844651585067828,
|
|
"min": 0.83325,
|
|
"med": 1.099375,
|
|
"p(90)": 1.608416
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.00175,
|
|
"p(95)": 0.002125,
|
|
"p(99)": 0.003979089999999993,
|
|
"max": 12.761625,
|
|
"avg": 0.0032236751606466918,
|
|
"min": 0.000458,
|
|
"med": 0.001041
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 18052
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 1.041625,
|
|
"avg": 0.008429410037668963,
|
|
"min": 0.002125,
|
|
"med": 0.007375,
|
|
"p(90)": 0.011292,
|
|
"p(95)": 0.014583,
|
|
"p(99)": 0.02618657999999999
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 90,
|
|
"min": 90,
|
|
"max": 90
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 13501,
|
|
"rate": 332.3746245659086
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.836583,
|
|
"med": 1.108792,
|
|
"p(90)": 1.6217792000000002,
|
|
"p(95)": 2.0200293499999993,
|
|
"p(99)": 5.159064969999999,
|
|
"max": 14.498375,
|
|
"avg": 1.2993224255930333
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 1.203375,
|
|
"avg": 0.016097459228894415,
|
|
"min": 0.003791,
|
|
"med": 0.013291,
|
|
"p(90)": 0.024,
|
|
"p(95)": 0.030917,
|
|
"p(99)": 0.048351919999999965
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 5265579,
|
|
"rate": 129630.75648078902
|
|
}
|
|
}
|
|
}
|
|
} |