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
4.9 KiB
4.9 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793223218 | mtusi2026lab3-api-1 | 45.75% | 116.1MiB / 512MiB | 22.67% | 150MB / 210MB | 0B / 0B | 7 |
| 3 | 1793223218 | mtusi2026lab3-postgres-1 | 12.55% | 92.22MiB / 1GiB | 9.01% | 47.6MB / 97.7MB | 53.2kB / 527MB | 15 |
| 4 | 1793223218 | mtusi2026lab3-lb-1 | 6.25% | 14.8MiB / 128MiB | 11.56% | 177MB / 185MB | 0B / 0B | 2 |
| 5 | 1793223218 | mtusi2026lab3-valkey-1 | 1.90% | 10.91MiB / 128MiB | 8.52% | 8.85MB / 9.7MB | 0B / 344kB | 6 |
| 6 | 1793223222 | mtusi2026lab3-k6-run-8e35926f4fe8 | 13.07% | 49.73MiB / 1GiB | 4.86% | 8.53MB / 1.51MB | 0B / 0B | 8 |
| 7 | 1793223222 | mtusi2026lab3-api-1 | 47.82% | 116.4MiB / 512MiB | 22.73% | 156MB / 220MB | 0B / 0B | 7 |
| 8 | 1793223222 | mtusi2026lab3-postgres-1 | 18.83% | 90.88MiB / 1GiB | 8.87% | 50.3MB / 103MB | 53.2kB / 551MB | 13 |
| 9 | 1793223222 | mtusi2026lab3-lb-1 | 6.75% | 14.32MiB / 128MiB | 11.19% | 185MB / 193MB | 0B / 0B | 2 |
| 10 | 1793223222 | mtusi2026lab3-valkey-1 | 1.36% | 10.92MiB / 128MiB | 8.53% | 9.14MB / 10MB | 0B / 344kB | 6 |
| 11 | 1793223226 | mtusi2026lab3-k6-run-8e35926f4fe8 | 14.06% | 51.91MiB / 1GiB | 5.07% | 14.8MB / 2.51MB | 0B / 0B | 8 |
| 12 | 1793223226 | mtusi2026lab3-api-1 | 47.82% | 116.1MiB / 512MiB | 22.68% | 163MB / 229MB | 0B / 0B | 7 |
| 13 | 1793223226 | mtusi2026lab3-postgres-1 | 19.53% | 91.57MiB / 1GiB | 8.94% | 52.4MB / 108MB | 53.2kB / 568MB | 13 |
| 14 | 1793223226 | mtusi2026lab3-lb-1 | 6.41% | 14.6MiB / 128MiB | 11.40% | 193MB / 201MB | 0B / 0B | 2 |
| 15 | 1793223226 | mtusi2026lab3-valkey-1 | 1.44% | 10.9MiB / 128MiB | 8.52% | 9.62MB / 10.6MB | 0B / 344kB | 6 |
| 16 | 1793223229 | mtusi2026lab3-k6-run-8e35926f4fe8 | 12.07% | 56.4MiB / 1GiB | 5.51% | 21.4MB / 3.58MB | 0B / 0B | 8 |
| 17 | 1793223229 | mtusi2026lab3-api-1 | 44.04% | 116.1MiB / 512MiB | 22.68% | 170MB / 239MB | 0B / 0B | 7 |
| 18 | 1793223229 | mtusi2026lab3-postgres-1 | 18.12% | 95.97MiB / 1GiB | 9.37% | 54.6MB / 112MB | 53.2kB / 586MB | 14 |
| 19 | 1793223229 | mtusi2026lab3-lb-1 | 6.78% | 14.74MiB / 128MiB | 11.51% | 199MB / 207MB | 0B / 0B | 2 |
| 20 | 1793223229 | mtusi2026lab3-valkey-1 | 1.29% | 11.15MiB / 128MiB | 8.71% | 10MB / 11MB | 0B / 344kB | 6 |
| 21 | 1793223233 | mtusi2026lab3-k6-run-8e35926f4fe8 | 13.37% | 58.47MiB / 1GiB | 5.71% | 27.8MB / 4.65MB | 0B / 0B | 9 |
| 22 | 1793223233 | mtusi2026lab3-api-1 | 61.13% | 129.1MiB / 512MiB | 25.21% | 176MB / 248MB | 0B / 0B | 8 |
| 23 | 1793223233 | mtusi2026lab3-postgres-1 | 21.73% | 96.84MiB / 1GiB | 9.46% | 56.8MB / 117MB | 53.2kB / 605MB | 14 |
| 24 | 1793223233 | mtusi2026lab3-lb-1 | 6.46% | 14.64MiB / 128MiB | 11.43% | 209MB / 218MB | 0B / 0B | 2 |
| 25 | 1793223233 | mtusi2026lab3-valkey-1 | 1.38% | 10.91MiB / 128MiB | 8.52% | 10.3MB / 11.3MB | 0B / 344kB | 6 |
| 26 | 1793223236 | mtusi2026lab3-k6-run-8e35926f4fe8 | 12.91% | 58.47MiB / 1GiB | 5.71% | 34.4MB / 5.71MB | 0B / 0B | 9 |
| 27 | 1793223236 | mtusi2026lab3-api-1 | 49.24% | 116.4MiB / 512MiB | 22.73% | 183MB / 258MB | 0B / 0B | 7 |
| 28 | 1793223236 | mtusi2026lab3-postgres-1 | 20.17% | 94.22MiB / 1GiB | 9.20% | 58.9MB / 121MB | 53.2kB / 628MB | 13 |
| 29 | 1793223236 | mtusi2026lab3-lb-1 | 6.37% | 14.73MiB / 128MiB | 11.51% | 215MB / 224MB | 0B / 0B | 2 |
| 30 | 1793223236 | mtusi2026lab3-valkey-1 | 1.49% | 10.91MiB / 128MiB | 8.52% | 10.7MB / 11.8MB | 0B / 344kB | 6 |
| 31 | 1793223240 | mtusi2026lab3-k6-run-8e35926f4fe8 | 11.64% | 58.49MiB / 1GiB | 5.71% | 39.7MB / 6.58MB | 0B / 0B | 9 |
| 32 | 1793223240 | mtusi2026lab3-api-1 | 42.66% | 116.6MiB / 512MiB | 22.78% | 189MB / 266MB | 0B / 0B | 7 |
| 33 | 1793223240 | mtusi2026lab3-postgres-1 | 17.93% | 98.95MiB / 1GiB | 9.66% | 60.7MB / 125MB | 53.2kB / 660MB | 14 |
| 34 | 1793223240 | mtusi2026lab3-lb-1 | 5.44% | 15.03MiB / 128MiB | 11.74% | 223MB / 233MB | 0B / 0B | 2 |
| 35 | 1793223240 | mtusi2026lab3-valkey-1 | 1.27% | 10.91MiB / 128MiB | 8.52% | 11.1MB / 12.2MB | 0B / 344kB | 6 |
| 36 | 1793223243 | mtusi2026lab3-k6-run-8e35926f4fe8 | 12.30% | 58.51MiB / 1GiB | 5.71% | 44.5MB / 7.34MB | 0B / 0B | 9 |
| 37 | 1793223243 | mtusi2026lab3-api-1 | 42.66% | 116.4MiB / 512MiB | 22.73% | 196MB / 275MB | 0B / 0B | 7 |
| 38 | 1793223243 | mtusi2026lab3-postgres-1 | 16.81% | 99.8MiB / 1GiB | 9.75% | 62.9MB / 129MB | 53.2kB / 678MB | 14 |
| 39 | 1793223243 | mtusi2026lab3-lb-1 | 5.53% | 14.77MiB / 128MiB | 11.54% | 232MB / 242MB | 0B / 0B | 2 |
| 40 | 1793223243 | mtusi2026lab3-valkey-1 | 1.24% | 10.9MiB / 128MiB | 8.52% | 11.5MB / 12.7MB | 0B / 344kB | 6 |
| 41 | 1793223247 | mtusi2026lab3-k6-run-8e35926f4fe8 | 11.69% | 58.55MiB / 1GiB | 5.72% | 52.9MB / 8.7MB | 0B / 0B | 9 |
| 42 | 1793223247 | mtusi2026lab3-api-1 | 42.89% | 116.4MiB / 512MiB | 22.74% | 203MB / 285MB | 0B / 0B | 7 |
| 43 | 1793223247 | mtusi2026lab3-postgres-1 | 18.13% | 96.91MiB / 1GiB | 9.46% | 64.5MB / 133MB | 53.2kB / 692MB | 13 |
| 44 | 1793223247 | mtusi2026lab3-lb-1 | 6.05% | 14.77MiB / 128MiB | 11.54% | 240MB / 250MB | 0B / 0B | 2 |
| 45 | 1793223247 | mtusi2026lab3-valkey-1 | 1.87% | 10.91MiB / 128MiB | 8.52% | 11.9MB / 13.1MB | 0B / 344kB | 6 |
| 46 | 1793223250 | mtusi2026lab3-k6-run-8e35926f4fe8 | 12.11% | 58.58MiB / 1GiB | 5.72% | 58.5MB / 9.63MB | 0B / 0B | 9 |
| 47 | 1793223250 | mtusi2026lab3-api-1 | 46.55% | 116.4MiB / 512MiB | 22.74% | 208MB / 293MB | 0B / 0B | 7 |
| 48 | 1793223250 | mtusi2026lab3-postgres-1 | 20.26% | 101.6MiB / 1GiB | 9.92% | 67MB / 138MB | 53.2kB / 713MB | 14 |
| 49 | 1793223250 | mtusi2026lab3-lb-1 | 6.28% | 14.44MiB / 128MiB | 11.28% | 247MB / 258MB | 0B / 0B | 2 |
| 50 | 1793223250 | mtusi2026lab3-valkey-1 | 1.41% | 10.91MiB / 128MiB | 8.52% | 12.3MB / 13.5MB | 0B / 344kB | 6 |
| 51 | 1793223254 | mtusi2026lab3-k6-run-8e35926f4fe8 | 11.45% | 58.62MiB / 1GiB | 5.72% | 65.2MB / 10.7MB | 0B / 0B | 9 |
| 52 | 1793223254 | mtusi2026lab3-api-1 | 47.00% | 127.6MiB / 512MiB | 24.93% | 215MB / 303MB | 0B / 0B | 8 |
| 53 | 1793223254 | mtusi2026lab3-postgres-1 | 17.66% | 102.7MiB / 1GiB | 10.03% | 69.2MB / 142MB | 53.2kB / 732MB | 14 |
| 54 | 1793223254 | mtusi2026lab3-lb-1 | 5.52% | 14.95MiB / 128MiB | 11.68% | 255MB / 266MB | 0B / 0B | 2 |
| 55 | 1793223254 | mtusi2026lab3-valkey-1 | 2.06% | 10.91MiB / 128MiB | 8.52% | 12.6MB / 13.8MB | 0B / 344kB | 6 |