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
5.0 KiB
5.0 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793223498 | mtusi2026lab3-api-1 | 91.59% | 124.9MiB / 512MiB | 24.39% | 705MB / 992MB | 0B / 0B | 7 |
| 3 | 1793223498 | mtusi2026lab3-postgres-1 | 42.06% | 179MiB / 1GiB | 17.48% | 227MB / 466MB | 53.2kB / 2.31GB | 14 |
| 4 | 1793223498 | mtusi2026lab3-lb-1 | 6.18% | 22.06MiB / 128MiB | 17.24% | 831MB / 867MB | 0B / 0B | 2 |
| 5 | 1793223498 | mtusi2026lab3-valkey-1 | 3.20% | 11.32MiB / 128MiB | 8.84% | 41.3MB / 45.6MB | 0B / 930kB | 6 |
| 6 | 1793223502 | mtusi2026lab3-k6-run-7a76262f42a3 | 23.98% | 102.1MiB / 1GiB | 9.97% | 19.9MB / 3.34MB | 0B / 0B | 9 |
| 7 | 1793223502 | mtusi2026lab3-api-1 | 90.73% | 137.3MiB / 512MiB | 26.81% | 716MB / 1.01GB | 0B / 0B | 8 |
| 8 | 1793223502 | mtusi2026lab3-postgres-1 | 45.84% | 180.7MiB / 1GiB | 17.65% | 231MB / 476MB | 53.2kB / 2.35GB | 14 |
| 9 | 1793223502 | mtusi2026lab3-lb-1 | 12.73% | 24.73MiB / 128MiB | 19.32% | 853MB / 891MB | 0B / 0B | 2 |
| 10 | 1793223502 | mtusi2026lab3-valkey-1 | 3.43% | 11.08MiB / 128MiB | 8.66% | 42.1MB / 46.6MB | 0B / 930kB | 6 |
| 11 | 1793223506 | mtusi2026lab3-k6-run-7a76262f42a3 | 22.59% | 106.4MiB / 1GiB | 10.39% | 34.4MB / 5.73MB | 0B / 0B | 9 |
| 12 | 1793223506 | mtusi2026lab3-api-1 | 89.90% | 125.2MiB / 512MiB | 24.46% | 732MB / 1.03GB | 0B / 0B | 7 |
| 13 | 1793223506 | mtusi2026lab3-postgres-1 | 41.10% | 182.7MiB / 1GiB | 17.84% | 236MB / 487MB | 53.2kB / 2.39GB | 14 |
| 14 | 1793223506 | mtusi2026lab3-lb-1 | 11.63% | 24.53MiB / 128MiB | 19.17% | 871MB / 909MB | 0B / 0B | 2 |
| 15 | 1793223506 | mtusi2026lab3-valkey-1 | 2.49% | 11.07MiB / 128MiB | 8.65% | 43MB / 47.6MB | 0B / 930kB | 6 |
| 16 | 1793223510 | mtusi2026lab3-k6-run-7a76262f42a3 | 22.62% | 119.5MiB / 1GiB | 11.67% | 49MB / 8.09MB | 0B / 0B | 9 |
| 17 | 1793223510 | mtusi2026lab3-api-1 | 90.09% | 125.2MiB / 512MiB | 24.44% | 751MB / 1.06GB | 0B / 0B | 7 |
| 18 | 1793223510 | mtusi2026lab3-postgres-1 | 42.18% | 185.7MiB / 1GiB | 18.14% | 241MB / 497MB | 53.2kB / 2.45GB | 14 |
| 19 | 1793223510 | mtusi2026lab3-lb-1 | 11.52% | 26.47MiB / 128MiB | 20.68% | 889MB / 928MB | 0B / 0B | 2 |
| 20 | 1793223510 | mtusi2026lab3-valkey-1 | 3.12% | 11.07MiB / 128MiB | 8.65% | 43.7MB / 48.3MB | 0B / 930kB | 6 |
| 21 | 1793223513 | mtusi2026lab3-k6-run-7a76262f42a3 | 23.30% | 121MiB / 1GiB | 11.82% | 63.9MB / 10.4MB | 0B / 0B | 9 |
| 22 | 1793223513 | mtusi2026lab3-api-1 | 87.17% | 125.4MiB / 512MiB | 24.49% | 766MB / 1.08GB | 0B / 0B | 7 |
| 23 | 1793223513 | mtusi2026lab3-postgres-1 | 40.69% | 187.8MiB / 1GiB | 18.34% | 246MB / 507MB | 53.2kB / 2.49GB | 14 |
| 24 | 1793223513 | mtusi2026lab3-lb-1 | 11.04% | 25.9MiB / 128MiB | 20.23% | 907MB / 947MB | 0B / 0B | 2 |
| 25 | 1793223513 | mtusi2026lab3-valkey-1 | 2.51% | 11.07MiB / 128MiB | 8.65% | 44.6MB / 49.3MB | 0B / 930kB | 6 |
| 26 | 1793223517 | mtusi2026lab3-k6-run-7a76262f42a3 | 23.11% | 121.3MiB / 1GiB | 11.84% | 79.2MB / 12.8MB | 0B / 0B | 9 |
| 27 | 1793223517 | mtusi2026lab3-api-1 | 91.27% | 136.3MiB / 512MiB | 26.62% | 782MB / 1.1GB | 0B / 0B | 8 |
| 28 | 1793223517 | mtusi2026lab3-postgres-1 | 41.68% | 190.2MiB / 1GiB | 18.57% | 251MB / 517MB | 53.2kB / 2.53GB | 14 |
| 29 | 1793223517 | mtusi2026lab3-lb-1 | 11.12% | 26.27MiB / 128MiB | 20.52% | 926MB / 967MB | 0B / 0B | 2 |
| 30 | 1793223517 | mtusi2026lab3-valkey-1 | 2.66% | 11.31MiB / 128MiB | 8.84% | 45.4MB / 50.3MB | 0B / 930kB | 6 |
| 31 | 1793223521 | mtusi2026lab3-k6-run-7a76262f42a3 | 23.48% | 125.1MiB / 1GiB | 12.22% | 91.8MB / 14.8MB | 0B / 0B | 9 |
| 32 | 1793223521 | mtusi2026lab3-api-1 | 89.39% | 126.3MiB / 512MiB | 24.67% | 795MB / 1.12GB | 0B / 0B | 7 |
| 33 | 1793223521 | mtusi2026lab3-postgres-1 | 43.36% | 192.2MiB / 1GiB | 18.77% | 255MB / 526MB | 53.2kB / 2.58GB | 14 |
| 34 | 1793223521 | mtusi2026lab3-lb-1 | 11.91% | 25.81MiB / 128MiB | 20.16% | 941MB / 983MB | 0B / 0B | 2 |
| 35 | 1793223521 | mtusi2026lab3-valkey-1 | 2.55% | 11.07MiB / 128MiB | 8.65% | 46.4MB / 51.3MB | 0B / 938kB | 6 |
| 36 | 1793223524 | mtusi2026lab3-k6-run-7a76262f42a3 | 25.73% | 125.2MiB / 1GiB | 12.22% | 107MB / 17.1MB | 0B / 0B | 9 |
| 37 | 1793223524 | mtusi2026lab3-api-1 | 98.93% | 126.2MiB / 512MiB | 24.66% | 810MB / 1.14GB | 0B / 0B | 7 |
| 38 | 1793223524 | mtusi2026lab3-postgres-1 | 50.92% | 194.3MiB / 1GiB | 18.97% | 260MB / 536MB | 53.2kB / 2.62GB | 14 |
| 39 | 1793223524 | mtusi2026lab3-lb-1 | 13.44% | 25.83MiB / 128MiB | 20.18% | 960MB / 1GB | 0B / 0B | 2 |
| 40 | 1793223524 | mtusi2026lab3-valkey-1 | 3.00% | 11.32MiB / 128MiB | 8.84% | 47MB / 52MB | 0B / 938kB | 6 |
| 41 | 1793223527 | mtusi2026lab3-k6-run-7a76262f42a3 | 23.01% | 129.3MiB / 1GiB | 12.63% | 118MB / 18.9MB | 0B / 0B | 9 |
| 42 | 1793223527 | mtusi2026lab3-api-1 | 89.74% | 126.5MiB / 512MiB | 24.71% | 825MB / 1.16GB | 0B / 0B | 7 |
| 43 | 1793223527 | mtusi2026lab3-postgres-1 | 43.58% | 196.3MiB / 1GiB | 19.17% | 265MB / 546MB | 53.2kB / 2.68GB | 14 |
| 44 | 1793223527 | mtusi2026lab3-lb-1 | 11.48% | 25.66MiB / 128MiB | 20.05% | 978MB / 1.02GB | 0B / 0B | 2 |
| 45 | 1793223527 | mtusi2026lab3-valkey-1 | 3.20% | 11.08MiB / 128MiB | 8.66% | 48.2MB / 53.3MB | 0B / 938kB | 6 |
| 46 | 1793223531 | mtusi2026lab3-k6-run-7a76262f42a3 | 24.13% | 133.6MiB / 1GiB | 13.04% | 134MB / 21.5MB | 0B / 0B | 9 |
| 47 | 1793223531 | mtusi2026lab3-api-1 | 90.90% | 126.7MiB / 512MiB | 24.75% | 838MB / 1.18GB | 0B / 0B | 7 |
| 48 | 1793223531 | mtusi2026lab3-postgres-1 | 46.24% | 197.9MiB / 1GiB | 19.33% | 269MB / 555MB | 53.2kB / 2.72GB | 14 |
| 49 | 1793223531 | mtusi2026lab3-lb-1 | 12.41% | 26.31MiB / 128MiB | 20.55% | 993MB / 1.04GB | 0B / 0B | 2 |
| 50 | 1793223531 | mtusi2026lab3-valkey-1 | 2.67% | 11.31MiB / 128MiB | 8.84% | 48.9MB / 54.2MB | 0B / 938kB | 6 |
| 51 | 1793223534 | mtusi2026lab3-k6-run-7a76262f42a3 | 24.55% | 133.6MiB / 1GiB | 13.04% | 149MB / 23.9MB | 0B / 0B | 9 |
| 52 | 1793223534 | mtusi2026lab3-api-1 | 92.67% | 126.6MiB / 512MiB | 24.73% | 854MB / 1.2GB | 0B / 0B | 7 |
| 53 | 1793223534 | mtusi2026lab3-postgres-1 | 44.91% | 200.9MiB / 1GiB | 19.62% | 274MB / 565MB | 53.2kB / 2.78GB | 14 |
| 54 | 1793223534 | mtusi2026lab3-lb-1 | 12.41% | 26.12MiB / 128MiB | 20.41% | 1.01GB / 1.06GB | 0B / 0B | 2 |
| 55 | 1793223534 | mtusi2026lab3-valkey-1 | 2.84% | 11.31MiB / 128MiB | 8.84% | 49.6MB / 54.9MB | 0B / 938kB | 6 |