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
5.4 KiB
5.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793223312 | mtusi2026lab3-api-1 | 56.41% | 127.9MiB / 512MiB | 24.98% | 298MB / 419MB | 0B / 0B | 8 |
| 3 | 1793223312 | mtusi2026lab3-postgres-1 | 11.67% | 115.3MiB / 1GiB | 11.26% | 95.1MB / 196MB | 53.2kB / 982MB | 14 |
| 4 | 1793223312 | mtusi2026lab3-lb-1 | 6.75% | 14.42MiB / 128MiB | 11.26% | 352MB / 368MB | 0B / 0B | 2 |
| 5 | 1793223312 | mtusi2026lab3-valkey-1 | 2.08% | 10.89MiB / 128MiB | 8.51% | 17.5MB / 19.3MB | 0B / 516kB | 6 |
| 6 | 1793223315 | mtusi2026lab3-k6-run-4ae0515e555f | 12.00% | 51.83MiB / 1GiB | 5.06% | 8.74MB / 1.5MB | 0B / 0B | 9 |
| 7 | 1793223315 | mtusi2026lab3-api-1 | 46.63% | 116.6MiB / 512MiB | 22.76% | 305MB / 429MB | 0B / 0B | 7 |
| 8 | 1793223315 | mtusi2026lab3-postgres-1 | 19.43% | 113.3MiB / 1GiB | 11.07% | 97.8MB / 201MB | 53.2kB / 1.02GB | 13 |
| 9 | 1793223315 | mtusi2026lab3-lb-1 | 6.29% | 14.66MiB / 128MiB | 11.45% | 361MB / 376MB | 0B / 0B | 2 |
| 10 | 1793223315 | mtusi2026lab3-valkey-1 | 1.48% | 10.89MiB / 128MiB | 8.51% | 17.8MB / 19.6MB | 0B / 516kB | 6 |
| 11 | 1793223319 | mtusi2026lab3-k6-run-4ae0515e555f | 11.39% | 51.95MiB / 1GiB | 5.07% | 15.6MB / 2.55MB | 0B / 0B | 9 |
| 12 | 1793223319 | mtusi2026lab3-api-1 | 41.48% | 116.5MiB / 512MiB | 22.76% | 312MB / 438MB | 0B / 0B | 7 |
| 13 | 1793223319 | mtusi2026lab3-postgres-1 | 18.29% | 117.7MiB / 1GiB | 11.49% | 100MB / 206MB | 53.2kB / 1.04GB | 14 |
| 14 | 1793223319 | mtusi2026lab3-lb-1 | 5.24% | 14.92MiB / 128MiB | 11.66% | 369MB / 385MB | 0B / 0B | 2 |
| 15 | 1793223319 | mtusi2026lab3-valkey-1 | 1.82% | 10.89MiB / 128MiB | 8.51% | 18.2MB / 20MB | 0B / 516kB | 6 |
| 16 | 1793223323 | mtusi2026lab3-k6-run-4ae0515e555f | 11.09% | 56.39MiB / 1GiB | 5.51% | 22.1MB / 3.63MB | 0B / 0B | 9 |
| 17 | 1793223323 | mtusi2026lab3-api-1 | 55.35% | 116.5MiB / 512MiB | 22.76% | 318MB / 448MB | 0B / 0B | 7 |
| 18 | 1793223323 | mtusi2026lab3-postgres-1 | 16.56% | 118.8MiB / 1GiB | 11.60% | 102MB / 209MB | 53.2kB / 1.05GB | 14 |
| 19 | 1793223323 | mtusi2026lab3-lb-1 | 5.42% | 15.02MiB / 128MiB | 11.73% | 377MB / 394MB | 0B / 0B | 2 |
| 20 | 1793223323 | mtusi2026lab3-valkey-1 | 1.23% | 11.14MiB / 128MiB | 8.70% | 18.7MB / 20.6MB | 0B / 516kB | 6 |
| 21 | 1793223326 | mtusi2026lab3-k6-run-4ae0515e555f | 12.19% | 56.34MiB / 1GiB | 5.50% | 27.3MB / 4.51MB | 0B / 0B | 9 |
| 22 | 1793223326 | mtusi2026lab3-api-1 | 46.68% | 116.7MiB / 512MiB | 22.79% | 324MB / 456MB | 0B / 0B | 7 |
| 23 | 1793223326 | mtusi2026lab3-postgres-1 | 19.53% | 119.9MiB / 1GiB | 11.71% | 104MB / 214MB | 53.2kB / 1.07GB | 14 |
| 24 | 1793223326 | mtusi2026lab3-lb-1 | 6.15% | 15.2MiB / 128MiB | 11.87% | 384MB / 400MB | 0B / 0B | 2 |
| 25 | 1793223326 | mtusi2026lab3-valkey-1 | 1.96% | 10.89MiB / 128MiB | 8.51% | 19MB / 21MB | 0B / 516kB | 6 |
| 26 | 1793223329 | mtusi2026lab3-k6-run-4ae0515e555f | 11.99% | 56.44MiB / 1GiB | 5.51% | 33.8MB / 5.57MB | 0B / 0B | 9 |
| 27 | 1793223329 | mtusi2026lab3-api-1 | 45.18% | 116.7MiB / 512MiB | 22.80% | 329MB / 463MB | 0B / 0B | 7 |
| 28 | 1793223329 | mtusi2026lab3-postgres-1 | 19.65% | 121MiB / 1GiB | 11.81% | 106MB / 219MB | 53.2kB / 1.09GB | 14 |
| 29 | 1793223329 | mtusi2026lab3-lb-1 | 6.11% | 14.93MiB / 128MiB | 11.66% | 392MB / 409MB | 0B / 0B | 2 |
| 30 | 1793223329 | mtusi2026lab3-valkey-1 | 1.34% | 10.89MiB / 128MiB | 8.51% | 19.4MB / 21.4MB | 0B / 516kB | 6 |
| 31 | 1793223333 | mtusi2026lab3-k6-run-4ae0515e555f | 12.02% | 56.47MiB / 1GiB | 5.51% | 39.8MB / 6.62MB | 0B / 0B | 9 |
| 32 | 1793223333 | mtusi2026lab3-api-1 | 60.32% | 116.6MiB / 512MiB | 22.76% | 337MB / 474MB | 0B / 0B | 7 |
| 33 | 1793223333 | mtusi2026lab3-postgres-1 | 20.97% | 121.7MiB / 1GiB | 11.89% | 108MB / 223MB | 53.2kB / 1.11GB | 14 |
| 34 | 1793223333 | mtusi2026lab3-lb-1 | 5.83% | 15.04MiB / 128MiB | 11.75% | 399MB / 417MB | 0B / 0B | 2 |
| 35 | 1793223333 | mtusi2026lab3-valkey-1 | 1.90% | 11.1MiB / 128MiB | 8.67% | 19.7MB / 21.7MB | 0B / 516kB | 6 |
| 36 | 1793223337 | mtusi2026lab3-k6-run-4ae0515e555f | 11.49% | 56.5MiB / 1GiB | 5.52% | 45.5MB / 7.56MB | 0B / 0B | 9 |
| 37 | 1793223337 | mtusi2026lab3-api-1 | 41.81% | 116.7MiB / 512MiB | 22.80% | 343MB / 483MB | 0B / 0B | 7 |
| 38 | 1793223337 | mtusi2026lab3-postgres-1 | 16.91% | 122.7MiB / 1GiB | 11.99% | 110MB / 227MB | 53.2kB / 1.13GB | 14 |
| 39 | 1793223337 | mtusi2026lab3-lb-1 | 5.46% | 14.96MiB / 128MiB | 11.69% | 406MB / 424MB | 0B / 0B | 2 |
| 40 | 1793223337 | mtusi2026lab3-valkey-1 | 1.84% | 10.89MiB / 128MiB | 8.51% | 20.2MB / 22.2MB | 0B / 516kB | 6 |
| 41 | 1793223340 | mtusi2026lab3-k6-run-4ae0515e555f | 11.73% | 56.55MiB / 1GiB | 5.52% | 52MB / 8.62MB | 0B / 0B | 10 |
| 42 | 1793223340 | mtusi2026lab3-api-1 | 44.95% | 116.5MiB / 512MiB | 22.75% | 350MB / 492MB | 0B / 0B | 7 |
| 43 | 1793223340 | mtusi2026lab3-postgres-1 | 18.06% | 123.8MiB / 1GiB | 12.09% | 112MB / 231MB | 53.2kB / 1.15GB | 14 |
| 44 | 1793223340 | mtusi2026lab3-lb-1 | 6.03% | 15.21MiB / 128MiB | 11.88% | 414MB / 432MB | 0B / 0B | 2 |
| 45 | 1793223340 | mtusi2026lab3-valkey-1 | 1.37% | 10.89MiB / 128MiB | 8.51% | 20.5MB / 22.5MB | 0B / 516kB | 6 |
| 46 | 1793223343 | mtusi2026lab3-k6-run-4ae0515e555f | 12.87% | 56.59MiB / 1GiB | 5.53% | 56.8MB / 9.4MB | 0B / 0B | 10 |
| 47 | 1793223343 | mtusi2026lab3-api-1 | 61.71% | 116.6MiB / 512MiB | 22.77% | 357MB / 502MB | 0B / 0B | 7 |
| 48 | 1793223343 | mtusi2026lab3-postgres-1 | 20.84% | 125.1MiB / 1GiB | 12.21% | 115MB / 236MB | 53.2kB / 1.19GB | 14 |
| 49 | 1793223343 | mtusi2026lab3-lb-1 | 6.74% | 14.49MiB / 128MiB | 11.32% | 422MB / 441MB | 0B / 0B | 2 |
| 50 | 1793223343 | mtusi2026lab3-valkey-1 | 1.44% | 10.89MiB / 128MiB | 8.51% | 21MB / 23.1MB | 0B / 516kB | 6 |
| 51 | 1793223347 | mtusi2026lab3-k6-run-4ae0515e555f | 12.14% | 58.6MiB / 1GiB | 5.72% | 65.1MB / 10.8MB | 0B / 0B | 10 |
| 52 | 1793223347 | mtusi2026lab3-api-1 | 48.05% | 116.8MiB / 512MiB | 22.81% | 364MB / 512MB | 0B / 0B | 7 |
| 53 | 1793223347 | mtusi2026lab3-postgres-1 | 18.33% | 126MiB / 1GiB | 12.31% | 116MB / 239MB | 53.2kB / 1.2GB | 14 |
| 54 | 1793223347 | mtusi2026lab3-lb-1 | 5.88% | 14.97MiB / 128MiB | 11.69% | 430MB / 449MB | 0B / 0B | 2 |
| 55 | 1793223347 | mtusi2026lab3-valkey-1 | 1.39% | 10.88MiB / 128MiB | 8.50% | 21.4MB / 23.5MB | 0B / 516kB | 6 |
| 56 | 1793223351 | mtusi2026lab3-k6-run-4ae0515e555f | 11.57% | 59.38MiB / 1GiB | 5.80% | 70.3MB / 11.6MB | 0B / 0B | 10 |
| 57 | 1793223351 | mtusi2026lab3-api-1 | 36.82% | 116.6MiB / 512MiB | 22.76% | 369MB / 519MB | 0B / 0B | 7 |
| 58 | 1793223351 | mtusi2026lab3-postgres-1 | 14.87% | 126.5MiB / 1GiB | 12.35% | 119MB / 244MB | 53.2kB / 1.22GB | 14 |
| 59 | 1793223351 | mtusi2026lab3-lb-1 | 5.33% | 14.46MiB / 128MiB | 11.29% | 437MB / 456MB | 0B / 0B | 2 |
| 60 | 1793223351 | mtusi2026lab3-valkey-1 | 1.69% | 10.88MiB / 128MiB | 8.50% | 21.7MB / 23.9MB | 0B / 516kB | 6 |