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": [
|
|
{
|
|
"name": "message 201",
|
|
"path": "::message 201",
|
|
"id": "6445aff337e1ade0bc10402fbac79882",
|
|
"passes": 21819,
|
|
"fails": 0
|
|
},
|
|
{
|
|
"fails": 0,
|
|
"name": "history 200",
|
|
"path": "::history 200",
|
|
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
|
"passes": 5383
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"summaryTrendStats": [
|
|
"avg",
|
|
"min",
|
|
"med",
|
|
"p(90)",
|
|
"p(95)",
|
|
"p(99)",
|
|
"max"
|
|
],
|
|
"summaryTimeUnit": "",
|
|
"noColor": false
|
|
},
|
|
"state": {
|
|
"isStdOutTTY": false,
|
|
"isStdErrTTY": false,
|
|
"testRunDurationMs": 40540.984214
|
|
},
|
|
"metrics": {
|
|
"http_req_waiting": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"min": 0.715958,
|
|
"med": 1.148667,
|
|
"p(90)": 1.7897786,
|
|
"p(95)": 2.72391235,
|
|
"p(99)": 7.440885079999996,
|
|
"max": 19.294792,
|
|
"avg": 1.436604624761493
|
|
}
|
|
},
|
|
"http_req_sending": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 0.0075231912887127024,
|
|
"min": 0.002,
|
|
"med": 0.007042,
|
|
"p(90)": 0.01025,
|
|
"p(95)": 0.012666,
|
|
"p(99)": 0.02427057999999999,
|
|
"max": 1.535708
|
|
}
|
|
},
|
|
"checks": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 1,
|
|
"passes": 27202,
|
|
"fails": 0
|
|
}
|
|
},
|
|
"iterations": {
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 27202,
|
|
"rate": 670.9753235494057
|
|
},
|
|
"type": "counter"
|
|
},
|
|
"http_reqs": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 672.2086433853542,
|
|
"count": 27252
|
|
}
|
|
},
|
|
"http_req_receiving": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"max": 1.577791,
|
|
"avg": 0.016455570270072127,
|
|
"min": 0.003583,
|
|
"med": 0.012917,
|
|
"p(90)": 0.027083,
|
|
"p(95)": 0.035208,
|
|
"p(99)": 0.06143757999999999
|
|
}
|
|
},
|
|
"http_req_duration": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"avg": 1.4605833863202637,
|
|
"min": 0.738292,
|
|
"med": 1.1703540000000001,
|
|
"p(90)": 1.819475,
|
|
"p(95)": 2.751628799999998,
|
|
"p(99)": 7.4727467499999936,
|
|
"max": 19.303625
|
|
}
|
|
},
|
|
"http_req_blocked": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(99)": 0.00472908999999999,
|
|
"max": 18.116917,
|
|
"avg": 0.004817550124761154,
|
|
"min": 0.0005,
|
|
"med": 0.001041,
|
|
"p(90)": 0.001709,
|
|
"p(95)": 0.002083
|
|
}
|
|
},
|
|
"http_reqs{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 20401,
|
|
"rate": 503.21915946369484
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.773042,
|
|
"p(95)": 2.598375,
|
|
"p(99)": 7.097,
|
|
"max": 19.303625,
|
|
"avg": 1.4384950971030825,
|
|
"min": 0.827541,
|
|
"med": 1.169542
|
|
}
|
|
},
|
|
"vus": {
|
|
"values": {
|
|
"value": 1,
|
|
"min": 0,
|
|
"max": 4
|
|
},
|
|
"type": "gauge",
|
|
"contains": "default"
|
|
},
|
|
"dropped_iterations": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:post_message}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(90)": 1.7933663,
|
|
"p(95)": 2.6903330999999975,
|
|
"p(99)": 7.131378019999999,
|
|
"max": 19.303625,
|
|
"avg": 1.4509370801927044,
|
|
"min": 0.843667,
|
|
"med": 1.178125
|
|
}
|
|
},
|
|
"data_received": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 68481487,
|
|
"rate": 1689191.526246946
|
|
}
|
|
},
|
|
"vus_max": {
|
|
"contains": "default",
|
|
"values": {
|
|
"max": 136,
|
|
"value": 136,
|
|
"min": 136
|
|
},
|
|
"type": "gauge"
|
|
},
|
|
"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)": 1.8771167,
|
|
"p(95)": 2.765121499999998,
|
|
"p(99)": 7.14286667,
|
|
"max": 24.734542,
|
|
"avg": 1.5007464051172725,
|
|
"min": 0.780542,
|
|
"med": 1.219625
|
|
}
|
|
},
|
|
"iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 503.21915946369484,
|
|
"count": 20401
|
|
}
|
|
},
|
|
"dropped_iterations{scenario:measure}": {
|
|
"type": "counter",
|
|
"contains": "default",
|
|
"values": {
|
|
"count": 0,
|
|
"rate": 0
|
|
}
|
|
},
|
|
"http_req_duration{expected_response:true}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.751628799999998,
|
|
"p(99)": 7.4727467499999936,
|
|
"max": 19.303625,
|
|
"avg": 1.4605833863202637,
|
|
"min": 0.738292,
|
|
"med": 1.1703540000000001,
|
|
"p(90)": 1.819475
|
|
}
|
|
},
|
|
"http_req_connecting": {
|
|
"values": {
|
|
"max": 18.096667,
|
|
"avg": 0.0034885432995743447,
|
|
"min": 0,
|
|
"med": 0,
|
|
"p(90)": 0,
|
|
"p(95)": 0,
|
|
"p(99)": 0
|
|
},
|
|
"type": "trend",
|
|
"contains": "time"
|
|
},
|
|
"data_sent": {
|
|
"type": "counter",
|
|
"contains": "data",
|
|
"values": {
|
|
"count": 7968570,
|
|
"rate": 196555.90890287803
|
|
}
|
|
},
|
|
"http_req_duration{scenario:measure,name:get_history}": {
|
|
"type": "trend",
|
|
"contains": "time",
|
|
"values": {
|
|
"p(95)": 2.3424624999999994,
|
|
"p(99)": 6.546064179999998,
|
|
"max": 15.644042,
|
|
"avg": 1.387527413190104,
|
|
"min": 0.827541,
|
|
"med": 1.112125,
|
|
"p(90)": 1.7018418000000002
|
|
}
|
|
},
|
|
"http_req_failed{scenario:measure}": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 20401
|
|
}
|
|
},
|
|
"http_req_failed": {
|
|
"type": "rate",
|
|
"contains": "default",
|
|
"values": {
|
|
"rate": 0,
|
|
"passes": 0,
|
|
"fails": 27252
|
|
}
|
|
}
|
|
}
|
|
} |