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.7 KiB
JSON
309 lines
5.7 KiB
JSON
{
|
|
"root_group": {
|
|
"name": "",
|
|
"path": "",
|
|
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
|
"groups": [],
|
|
"checks": [
|
|
{
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 32364
|
|
},
|
|
{
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 8037,
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40479.360324
|
|
},
|
|
"metrics": {
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 3.3010195226062113,
|
|
"min": 0.852833,
|
|
"med": 1.331208,
|
|
"p(90)": 2.5750580000000016,
|
|
"p(95)": 9.639479199999982,
|
|
"p(99)": 53.57656506,
|
|
"max": 107.730375
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.00748487970631124,
|
|
"min": 0.001667,
|
|
"med": 0.006834,
|
|
"p(90)": 0.010625,
|
|
"p(95)": 0.015166,
|
|
"p(99)": 0.030875,
|
|
"max": 1.371209
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0035339913475560154,
|
|
"min": 0.000458,
|
|
"med": 0.000959,
|
|
"p(90)": 0.001584,
|
|
"p(95)": 0.001917,
|
|
"p(99)": 0.0040834999999999995,
|
|
"max": 20.881416
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 11833972,
|
|
"rate": 292345.8252620583
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"values": {
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"checks": {
|
|
"values": {
|
|
"fails": 0,
|
|
"rate": 1,
|
|
"passes": 40401
|
|
},
|
|
"type": "rate",
|
|
"contains": "default"
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 30300,
|
|
"rate": 0,
|
|
"passes": 0
|
|
}
|
|
},
|
|
"iterations": {
|
|
"values": {
|
|
"count": 40401,
|
|
"rate": 998.0641906548722
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 30300,
|
|
"rate": 748.529615030386
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 20.870666,
|
|
"avg": 0.0023043074584064675,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 40451
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.692625,
|
|
"med": 1.302834,
|
|
"p(90)": 2.657834,
|
|
"p(95)": 12.291291999999958,
|
|
"p(99)": 54.632645999999994,
|
|
"max": 125.227,
|
|
"avg": 3.4245117481644614
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 3.850412172504518,
|
|
"min": 0.819833,
|
|
"med": 1.21775,
|
|
"p(90)": 2.350792,
|
|
"p(95)": 12.00325,
|
|
"p(99)": 68.0202082,
|
|
"max": 125.227
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 30300,
|
|
"rate": 748.529615030386
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"vus": {
|
|
"values": {
|
|
"value": 1,
|
|
"min": 1,
|
|
"max": 57
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 9.908814599999955,
|
|
"p(99)": 56.64377199999999,
|
|
"max": 125.227,
|
|
"avg": 3.411278819768989,
|
|
"min": 0.819833,
|
|
"med": 1.3087285,
|
|
"p(90)": 2.5320869000000004
|
|
}
|
|
},
|
|
"data_received": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 102409173,
|
|
"rate": 2529910.8528472013
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"max": 202,
|
|
"value": 202,
|
|
"min": 202
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 40451,
|
|
"rate": 999.2993880394107
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.278084,
|
|
"p(90)": 2.623833,
|
|
"p(95)": 12.2473745,
|
|
"p(99)": 54.610083499999995,
|
|
"max": 125.194292,
|
|
"avg": 3.4006661772267748,
|
|
"min": 0.678125
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.657834,
|
|
"p(95)": 12.291291999999958,
|
|
"p(99)": 54.632645999999994,
|
|
"max": 125.227,
|
|
"avg": 3.4245117481644614,
|
|
"min": 0.692625,
|
|
"med": 1.302834
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"values": {
|
|
"avg": 0.016360691231366502,
|
|
"min": 0.0035,
|
|
"med": 0.012417,
|
|
"p(90)": 0.028042,
|
|
"p(95)": 0.038,
|
|
"p(99)": 0.069958,
|
|
"max": 1.042916
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 54.683375,
|
|
"max": 125.268583,
|
|
"avg": 3.4693725827083117,
|
|
"min": 0.738083,
|
|
"med": 1.349875,
|
|
"p(90)": 2.697292,
|
|
"p(95)": 12.409208
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
},
|
|
"type": "counter"
|
|
}
|
|
}
|
|
} |