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": [
|
|
{
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 21791,
|
|
"fails": 0,
|
|
"name": "message 201"
|
|
},
|
|
{
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 5410
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40500.554005
|
|
},
|
|
"metrics": {
|
|
"http_req_sending": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.007909100546768896,
|
|
"min": 0.00175,
|
|
"med": 0.007208,
|
|
"p(90)": 0.011041,
|
|
"p(95)": 0.0135,
|
|
"p(99)": 0.02768749999999997,
|
|
"max": 1.688708
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 13.942649279999994,
|
|
"max": 62.456084,
|
|
"avg": 1.7205290824219455,
|
|
"min": 0.83975,
|
|
"med": 1.199292,
|
|
"p(90)": 1.9382664,
|
|
"p(95)": 3.3337160999999984
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 27251
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 11.686916499999997,
|
|
"max": 62.456084,
|
|
"avg": 1.6847337003412834,
|
|
"min": 0.712584,
|
|
"med": 1.214875,
|
|
"p(90)": 1.955042,
|
|
"p(95)": 3.2029584999999945
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 27201,
|
|
"rate": 671.6204424423897
|
|
}
|
|
},
|
|
"vus": {
|
|
"values": {
|
|
"value": 1,
|
|
"min": 0,
|
|
"max": 5
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.7717247999999999,
|
|
"p(95)": 2.6156578999999947,
|
|
"p(99)": 11.59595710999999,
|
|
"max": 58.634417,
|
|
"avg": 1.6092865815567683,
|
|
"min": 0.816833,
|
|
"med": 1.1395415
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 20401,
|
|
"rate": 0,
|
|
"passes": 0
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 11.686916499999997,
|
|
"max": 62.456084,
|
|
"avg": 1.6847337003412834,
|
|
"min": 0.712584,
|
|
"med": 1.214875,
|
|
"p(90)": 1.955042,
|
|
"p(95)": 3.2029584999999945
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 18.40575,
|
|
"avg": 0.0034420085501449494,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 136,
|
|
"min": 136,
|
|
"max": 136
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 18.418917,
|
|
"avg": 0.004815396425818932,
|
|
"min": 0.0005,
|
|
"med": 0.001083,
|
|
"p(90)": 0.001792,
|
|
"p(95)": 0.002125,
|
|
"p(99)": 0.004125
|
|
}
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.65883193457119,
|
|
"min": 0.695959,
|
|
"med": 1.19,
|
|
"p(90)": 1.923292,
|
|
"p(95)": 3.162249999999983,
|
|
"p(99)": 11.650895499999999,
|
|
"max": 62.435583
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"values": {
|
|
"count": 7965063,
|
|
"rate": 196665.53200770225
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.06683299999999996,
|
|
"max": 3.962917,
|
|
"avg": 0.01799266522329467,
|
|
"min": 0.003375,
|
|
"med": 0.01425,
|
|
"p(90)": 0.030167,
|
|
"p(95)": 0.038542
|
|
}
|
|
},
|
|
"checks": {
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 27201,
|
|
"fails": 0
|
|
},
|
|
"type": "rate"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 27251,
|
|
"rate": 672.8549934560334
|
|
}
|
|
},
|
|
"http_req_tls_handshaking": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 0,
|
|
"p(99)": 0,
|
|
"max": 0,
|
|
"avg": 0,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0
|
|
}
|
|
},
|
|
"iteration_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 2.013,
|
|
"p(95)": 3.155667,
|
|
"p(99)": 11.442583,
|
|
"max": 62.588667,
|
|
"avg": 1.7296741081945501,
|
|
"min": 0.754167,
|
|
"med": 1.269542
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 1.187083,
|
|
"p(90)": 1.906,
|
|
"p(95)": 3.188083,
|
|
"p(99)": 13.758458,
|
|
"max": 62.456084,
|
|
"avg": 1.698532501446017,
|
|
"min": 0.816833
|
|
}
|
|
},
|
|
"data_received": {
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 68563681,
|
|
"rate": 1692907.237553725
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 20401,
|
|
"rate": 503.72150458686053
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 20401,
|
|
"rate": 503.72150458686053
|
|
}
|
|
}
|
|
}
|
|
} |