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": [
|
|
{
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 13996
|
|
},
|
|
{
|
|
"passes": 55816,
|
|
"fails": 0,
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTimeUnit": "",
|
|
"noColor": false,
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
]
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 41044.735964
|
|
},
|
|
"metrics": {
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 51587,
|
|
"rate": 1256.8481387052054
|
|
}
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 20453369,
|
|
"rate": 498318.9322484492
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"values": {
|
|
"rate": 1242.9121250711623,
|
|
"count": 51015
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"fails": 0,
|
|
"rate": 1,
|
|
"passes": 69812
|
|
}
|
|
},
|
|
"dropped_iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 66988,
|
|
"rate": 1632.0728694357938
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 585.7929886110377,
|
|
"min": 446.311167,
|
|
"med": 572.461625,
|
|
"p(90)": 682.7655216,
|
|
"p(95)": 711.9898191,
|
|
"p(99)": 732.13389494,
|
|
"max": 777.555708
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 567.3401786896491,
|
|
"min": 1.456125,
|
|
"med": 564.5943540000001,
|
|
"p(90)": 677.6583625000001,
|
|
"p(95)": 705.0658438,
|
|
"p(99)": 722.62081312,
|
|
"max": 777.555708
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"values": {
|
|
"med": 0.012208,
|
|
"p(90)": 0.026584,
|
|
"p(95)": 0.050122949999999875,
|
|
"p(99)": 0.08984937999999996,
|
|
"max": 12.873208,
|
|
"avg": 0.016646016546906738,
|
|
"min": 0.003083
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"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_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 51587,
|
|
"rate": 1256.8481387052054
|
|
}
|
|
},
|
|
"vus": {
|
|
"type": "gauge",
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 230,
|
|
"min": 230,
|
|
"max": 1000
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 724.45695976,
|
|
"max": 777.555708,
|
|
"avg": 580.2737889934061,
|
|
"min": 445.990834,
|
|
"med": 566.88625,
|
|
"p(90)": 680.5189088,
|
|
"p(95)": 706.1144297
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 564.5943540000001,
|
|
"p(90)": 677.6583625000001,
|
|
"p(95)": 705.0658438,
|
|
"p(99)": 722.62081312,
|
|
"max": 777.555708,
|
|
"avg": 567.3401786896491,
|
|
"min": 1.456125
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"passes": 0,
|
|
"fails": 51587,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0.05693237999999998,
|
|
"max": 21.58375,
|
|
"avg": 0.0062235900775815135,
|
|
"min": 0
|
|
}
|
|
},
|
|
"data_received": {
|
|
"values": {
|
|
"count": 178475307,
|
|
"rate": 4348311.733727298
|
|
},
|
|
"type": "counter",
|
|
"contains": "data"
|
|
},
|
|
"vus_max": {
|
|
"contains": "default",
|
|
"values": {
|
|
"value": 2000,
|
|
"min": 817,
|
|
"max": 2000
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"iteration_duration": {
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 677.8014545000001,
|
|
"p(95)": 705.1298856,
|
|
"p(99)": 722.66715663,
|
|
"max": 777.59175,
|
|
"avg": 567.7950848492878,
|
|
"min": 3.846125,
|
|
"med": 564.666021
|
|
},
|
|
"type": "trend"
|
|
},
|
|
"iterations": {
|
|
"values": {
|
|
"count": 69812,
|
|
"rate": 1700.8758458388315
|
|
},
|
|
"type": "counter",
|
|
"contains": "default"
|
|
},
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 564.5698965,
|
|
"p(90)": 677.6429339,
|
|
"p(95)": 705.05098815,
|
|
"p(99)": 722.60162387,
|
|
"max": 777.536292,
|
|
"avg": 567.3160988670184,
|
|
"min": 1.44075
|
|
}
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 69862,
|
|
"rate": 1702.0940288488002
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"med": 0.000875,
|
|
"p(90)": 0.001542,
|
|
"p(95)": 0.002125,
|
|
"p(99)": 0.0813378699999998,
|
|
"max": 21.595,
|
|
"avg": 0.00796768324697272,
|
|
"min": 0.000333
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 0.011,
|
|
"p(95)": 0.0175,
|
|
"p(99)": 0.05124097999999995,
|
|
"max": 3.044833,
|
|
"avg": 0.007433806074833049,
|
|
"min": 0.001416,
|
|
"med": 0.004
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 679.7912078,
|
|
"p(95)": 705.1580258,
|
|
"p(99)": 722.079082,
|
|
"max": 757.240959,
|
|
"avg": 578.8978986278746,
|
|
"min": 445.990834,
|
|
"med": 565.562486
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 69862
|
|
}
|
|
}
|
|
}
|
|
} |