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 | 1793223452 | mtusi2026lab3-api-1 | 73.71% | 119.9MiB / 512MiB | 23.42% | 591MB / 831MB | 0B / 0B | 7 |
| 3 | 1793223452 | mtusi2026lab3-postgres-1 | 27.03% | 157.9MiB / 1GiB | 15.42% | 190MB / 392MB | 53.2kB / 1.95GB | 13 |
| 4 | 1793223452 | mtusi2026lab3-lb-1 | 8.49% | 17.71MiB / 128MiB | 13.84% | 703MB / 733MB | 0B / 0B | 2 |
| 5 | 1793223452 | mtusi2026lab3-valkey-1 | 2.39% | 11.3MiB / 128MiB | 8.83% | 34.7MB / 38.4MB | 0B / 831kB | 6 |
| 6 | 1793223455 | mtusi2026lab3-k6-run-8f041d103ab3 | 17.72% | 68.6MiB / 1GiB | 6.70% | 12.9MB / 2.24MB | 0B / 0B | 8 |
| 7 | 1793223455 | mtusi2026lab3-api-1 | 77.51% | 119.7MiB / 512MiB | 23.38% | 601MB / 845MB | 0B / 0B | 7 |
| 8 | 1793223455 | mtusi2026lab3-postgres-1 | 29.04% | 162.7MiB / 1GiB | 15.89% | 194MB / 399MB | 53.2kB / 1.98GB | 14 |
| 9 | 1793223455 | mtusi2026lab3-lb-1 | 8.49% | 19.84MiB / 128MiB | 15.50% | 715MB / 746MB | 0B / 0B | 2 |
| 10 | 1793223455 | mtusi2026lab3-valkey-1 | 2.45% | 11.32MiB / 128MiB | 8.85% | 35.3MB / 39MB | 0B / 831kB | 6 |
| 11 | 1793223459 | mtusi2026lab3-k6-run-8f041d103ab3 | 17.30% | 68.73MiB / 1GiB | 6.71% | 20.7MB / 3.53MB | 0B / 0B | 9 |
| 12 | 1793223459 | mtusi2026lab3-api-1 | 64.16% | 120.2MiB / 512MiB | 23.47% | 612MB / 861MB | 0B / 0B | 7 |
| 13 | 1793223459 | mtusi2026lab3-postgres-1 | 28.02% | 164.8MiB / 1GiB | 16.09% | 196MB / 405MB | 53.2kB / 2GB | 20 |
| 14 | 1793223459 | mtusi2026lab3-lb-1 | 7.94% | 19.83MiB / 128MiB | 15.49% | 725MB / 756MB | 0B / 0B | 2 |
| 15 | 1793223459 | mtusi2026lab3-valkey-1 | 2.48% | 11.07MiB / 128MiB | 8.65% | 35.8MB / 39.6MB | 0B / 831kB | 6 |
| 16 | 1793223462 | mtusi2026lab3-k6-run-8f041d103ab3 | 16.97% | 77.45MiB / 1GiB | 7.56% | 30MB / 5.12MB | 0B / 0B | 9 |
| 17 | 1793223462 | mtusi2026lab3-api-1 | 62.12% | 119.7MiB / 512MiB | 23.38% | 622MB / 875MB | 0B / 0B | 7 |
| 18 | 1793223462 | mtusi2026lab3-postgres-1 | 25.69% | 165MiB / 1GiB | 16.11% | 199MB / 409MB | 53.2kB / 2.02GB | 14 |
| 19 | 1793223462 | mtusi2026lab3-lb-1 | 7.98% | 19.65MiB / 128MiB | 15.35% | 736MB / 768MB | 0B / 0B | 2 |
| 20 | 1793223462 | mtusi2026lab3-valkey-1 | 2.42% | 11.07MiB / 128MiB | 8.65% | 36.4MB / 40.2MB | 0B / 831kB | 6 |
| 21 | 1793223466 | mtusi2026lab3-k6-run-8f041d103ab3 | 16.66% | 77.48MiB / 1GiB | 7.57% | 37MB / 6.27MB | 0B / 0B | 9 |
| 22 | 1793223466 | mtusi2026lab3-api-1 | 66.30% | 119.6MiB / 512MiB | 23.37% | 632MB / 889MB | 0B / 0B | 7 |
| 23 | 1793223466 | mtusi2026lab3-postgres-1 | 29.41% | 167MiB / 1GiB | 16.30% | 203MB / 418MB | 53.2kB / 2.07GB | 14 |
| 24 | 1793223466 | mtusi2026lab3-lb-1 | 8.71% | 21.71MiB / 128MiB | 16.96% | 748MB / 781MB | 0B / 0B | 2 |
| 25 | 1793223466 | mtusi2026lab3-valkey-1 | 2.44% | 11.07MiB / 128MiB | 8.65% | 37MB / 40.9MB | 0B / 831kB | 6 |
| 26 | 1793223469 | mtusi2026lab3-k6-run-8f041d103ab3 | 16.42% | 79.29MiB / 1GiB | 7.74% | 49.3MB / 8.3MB | 0B / 0B | 9 |
| 27 | 1793223469 | mtusi2026lab3-api-1 | 69.46% | 129.8MiB / 512MiB | 25.35% | 642MB / 903MB | 0B / 0B | 8 |
| 28 | 1793223469 | mtusi2026lab3-postgres-1 | 29.86% | 168.7MiB / 1GiB | 16.47% | 205MB / 423MB | 53.2kB / 2.09GB | 14 |
| 29 | 1793223469 | mtusi2026lab3-lb-1 | 8.48% | 21.75MiB / 128MiB | 16.99% | 760MB / 793MB | 0B / 0B | 2 |
| 30 | 1793223469 | mtusi2026lab3-valkey-1 | 1.83% | 11.31MiB / 128MiB | 8.84% | 37.6MB / 41.5MB | 0B / 831kB | 6 |
| 31 | 1793223473 | mtusi2026lab3-k6-run-8f041d103ab3 | 15.92% | 79.25MiB / 1GiB | 7.74% | 59.3MB / 9.88MB | 0B / 0B | 9 |
| 32 | 1793223473 | mtusi2026lab3-api-1 | 65.22% | 122.1MiB / 512MiB | 23.85% | 652MB / 917MB | 0B / 0B | 7 |
| 33 | 1793223473 | mtusi2026lab3-postgres-1 | 28.90% | 170.4MiB / 1GiB | 16.64% | 209MB / 431MB | 53.2kB / 2.13GB | 14 |
| 34 | 1793223473 | mtusi2026lab3-lb-1 | 7.92% | 21.71MiB / 128MiB | 16.96% | 772MB / 806MB | 0B / 0B | 2 |
| 35 | 1793223473 | mtusi2026lab3-valkey-1 | 2.43% | 11.16MiB / 128MiB | 8.72% | 38MB / 42MB | 0B / 840kB | 6 |
| 36 | 1793223477 | mtusi2026lab3-k6-run-8f041d103ab3 | 15.49% | 79.27MiB / 1GiB | 7.74% | 69.3MB / 11.5MB | 0B / 0B | 9 |
| 37 | 1793223477 | mtusi2026lab3-api-1 | 62.48% | 121.8MiB / 512MiB | 23.79% | 662MB / 932MB | 0B / 0B | 7 |
| 38 | 1793223477 | mtusi2026lab3-postgres-1 | 25.71% | 171.5MiB / 1GiB | 16.75% | 213MB / 438MB | 53.2kB / 2.16GB | 14 |
| 39 | 1793223477 | mtusi2026lab3-lb-1 | 7.97% | 21.68MiB / 128MiB | 16.94% | 784MB / 819MB | 0B / 0B | 2 |
| 40 | 1793223477 | mtusi2026lab3-valkey-1 | 2.55% | 11.08MiB / 128MiB | 8.66% | 38.6MB / 42.7MB | 0B / 840kB | 6 |
| 41 | 1793223481 | mtusi2026lab3-k6-run-8f041d103ab3 | 16.57% | 79.28MiB / 1GiB | 7.74% | 76.3MB / 12.6MB | 0B / 0B | 9 |
| 42 | 1793223481 | mtusi2026lab3-api-1 | 75.80% | 122.2MiB / 512MiB | 23.87% | 672MB / 946MB | 0B / 0B | 7 |
| 43 | 1793223481 | mtusi2026lab3-postgres-1 | 27.71% | 173.1MiB / 1GiB | 16.90% | 216MB / 445MB | 53.2kB / 2.2GB | 14 |
| 44 | 1793223481 | mtusi2026lab3-lb-1 | 8.12% | 21.7MiB / 128MiB | 16.95% | 796MB / 831MB | 0B / 0B | 2 |
| 45 | 1793223481 | mtusi2026lab3-valkey-1 | 2.45% | 11.07MiB / 128MiB | 8.65% | 39.3MB / 43.5MB | 0B / 840kB | 6 |
| 46 | 1793223484 | mtusi2026lab3-k6-run-8f041d103ab3 | 15.52% | 79.34MiB / 1GiB | 7.75% | 86.9MB / 14.3MB | 0B / 0B | 9 |
| 47 | 1793223484 | mtusi2026lab3-api-1 | 64.05% | 124MiB / 512MiB | 24.22% | 681MB / 958MB | 0B / 0B | 7 |
| 48 | 1793223484 | mtusi2026lab3-postgres-1 | 26.88% | 174.5MiB / 1GiB | 17.04% | 219MB / 450MB | 53.2kB / 2.22GB | 14 |
| 49 | 1793223484 | mtusi2026lab3-lb-1 | 8.29% | 21.23MiB / 128MiB | 16.58% | 806MB / 841MB | 0B / 0B | 2 |
| 50 | 1793223484 | mtusi2026lab3-valkey-1 | 1.80% | 11.07MiB / 128MiB | 8.65% | 39.8MB / 44MB | 0B / 840kB | 6 |
| 51 | 1793223487 | mtusi2026lab3-k6-run-8f041d103ab3 | 15.95% | 81.38MiB / 1GiB | 7.95% | 97MB / 15.9MB | 0B / 0B | 9 |
| 52 | 1793223487 | mtusi2026lab3-api-1 | 77.56% | 123.9MiB / 512MiB | 24.19% | 688MB / 969MB | 0B / 0B | 7 |
| 53 | 1793223487 | mtusi2026lab3-postgres-1 | 29.41% | 176.2MiB / 1GiB | 17.21% | 222MB / 457MB | 53.2kB / 2.26GB | 14 |
| 54 | 1793223487 | mtusi2026lab3-lb-1 | 8.13% | 22.06MiB / 128MiB | 17.23% | 819MB / 854MB | 0B / 0B | 2 |
| 55 | 1793223487 | mtusi2026lab3-valkey-1 | 1.88% | 11.06MiB / 128MiB | 8.64% | 40.4MB / 44.7MB | 0B / 840kB | 6 |