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.4 KiB
5.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793223358 | mtusi2026lab3-api-1 | 62.07% | 116.6MiB / 512MiB | 22.78% | 373MB / 524MB | 0B / 0B | 7 |
| 3 | 1793223358 | mtusi2026lab3-postgres-1 | 23.77% | 127.5MiB / 1GiB | 12.45% | 120MB / 246MB | 53.2kB / 1.24GB | 14 |
| 4 | 1793223358 | mtusi2026lab3-lb-1 | 8.61% | 15.24MiB / 128MiB | 11.90% | 441MB / 461MB | 0B / 0B | 2 |
| 5 | 1793223358 | mtusi2026lab3-valkey-1 | 1.02% | 11.14MiB / 128MiB | 8.70% | 21.8MB / 24MB | 0B / 594kB | 6 |
| 6 | 1793223362 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 15.39% | 68.55MiB / 1GiB | 6.69% | 12.1MB / 1.95MB | 0B / 0B | 8 |
| 7 | 1793223362 | mtusi2026lab3-api-1 | 62.63% | 118.7MiB / 512MiB | 23.18% | 382MB / 537MB | 0B / 0B | 7 |
| 8 | 1793223362 | mtusi2026lab3-postgres-1 | 25.14% | 128.3MiB / 1GiB | 12.53% | 122MB / 252MB | 53.2kB / 1.26GB | 14 |
| 9 | 1793223362 | mtusi2026lab3-lb-1 | 7.94% | 15.68MiB / 128MiB | 12.25% | 452MB / 471MB | 0B / 0B | 2 |
| 10 | 1793223362 | mtusi2026lab3-valkey-1 | 1.84% | 11.14MiB / 128MiB | 8.70% | 22.4MB / 24.7MB | 0B / 594kB | 6 |
| 11 | 1793223365 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 16.07% | 70.77MiB / 1GiB | 6.91% | 22.2MB / 3.51MB | 0B / 0B | 9 |
| 12 | 1793223365 | mtusi2026lab3-api-1 | 68.56% | 126.9MiB / 512MiB | 24.78% | 389MB / 547MB | 0B / 0B | 8 |
| 13 | 1793223365 | mtusi2026lab3-postgres-1 | 29.70% | 130.2MiB / 1GiB | 12.72% | 126MB / 259MB | 53.2kB / 1.29GB | 14 |
| 14 | 1793223365 | mtusi2026lab3-lb-1 | 7.97% | 16.55MiB / 128MiB | 12.93% | 464MB / 484MB | 0B / 0B | 2 |
| 15 | 1793223365 | mtusi2026lab3-valkey-1 | 1.91% | 11.01MiB / 128MiB | 8.60% | 23MB / 25.3MB | 0B / 618kB | 6 |
| 16 | 1793223369 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 15.81% | 77.49MiB / 1GiB | 7.57% | 31.8MB / 5.11MB | 0B / 0B | 9 |
| 17 | 1793223369 | mtusi2026lab3-api-1 | 62.30% | 118.4MiB / 512MiB | 23.13% | 399MB / 562MB | 0B / 0B | 7 |
| 18 | 1793223369 | mtusi2026lab3-postgres-1 | 26.57% | 131.5MiB / 1GiB | 12.84% | 129MB / 266MB | 53.2kB / 1.31GB | 14 |
| 19 | 1793223369 | mtusi2026lab3-lb-1 | 8.63% | 16.21MiB / 128MiB | 12.66% | 476MB / 497MB | 0B / 0B | 2 |
| 20 | 1793223369 | mtusi2026lab3-valkey-1 | 2.42% | 11.01MiB / 128MiB | 8.60% | 23.6MB / 26MB | 0B / 618kB | 6 |
| 21 | 1793223372 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 18.04% | 79.36MiB / 1GiB | 7.75% | 41.4MB / 6.7MB | 0B / 0B | 9 |
| 22 | 1793223372 | mtusi2026lab3-api-1 | 60.78% | 118.4MiB / 512MiB | 23.12% | 412MB / 580MB | 0B / 0B | 7 |
| 23 | 1793223372 | mtusi2026lab3-postgres-1 | 23.48% | 133.6MiB / 1GiB | 13.04% | 132MB / 272MB | 53.2kB / 1.36GB | 14 |
| 24 | 1793223372 | mtusi2026lab3-lb-1 | 8.17% | 17.01MiB / 128MiB | 13.29% | 484MB / 506MB | 0B / 0B | 2 |
| 25 | 1793223372 | mtusi2026lab3-valkey-1 | 2.38% | 11.26MiB / 128MiB | 8.80% | 24.2MB / 26.6MB | 0B / 618kB | 6 |
| 26 | 1793223376 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 16.53% | 79.37MiB / 1GiB | 7.75% | 51.4MB / 8.28MB | 0B / 0B | 9 |
| 27 | 1793223376 | mtusi2026lab3-api-1 | 66.57% | 118.8MiB / 512MiB | 23.19% | 422MB / 594MB | 0B / 0B | 7 |
| 28 | 1793223376 | mtusi2026lab3-postgres-1 | 29.53% | 134.7MiB / 1GiB | 13.15% | 135MB / 279MB | 53.2kB / 1.39GB | 14 |
| 29 | 1793223376 | mtusi2026lab3-lb-1 | 8.71% | 16.83MiB / 128MiB | 13.15% | 500MB / 522MB | 0B / 0B | 2 |
| 30 | 1793223376 | mtusi2026lab3-valkey-1 | 2.41% | 11.26MiB / 128MiB | 8.80% | 24.6MB / 27.1MB | 0B / 618kB | 6 |
| 31 | 1793223380 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 16.21% | 79.4MiB / 1GiB | 7.75% | 61.4MB / 9.86MB | 0B / 0B | 9 |
| 32 | 1793223380 | mtusi2026lab3-api-1 | 64.79% | 118.5MiB / 512MiB | 23.14% | 433MB / 609MB | 0B / 0B | 7 |
| 33 | 1793223380 | mtusi2026lab3-postgres-1 | 28.47% | 136.1MiB / 1GiB | 13.29% | 139MB / 286MB | 53.2kB / 1.41GB | 14 |
| 34 | 1793223380 | mtusi2026lab3-lb-1 | 7.92% | 17.11MiB / 128MiB | 13.37% | 512MB / 535MB | 0B / 0B | 2 |
| 35 | 1793223380 | mtusi2026lab3-valkey-1 | 2.39% | 11.13MiB / 128MiB | 8.70% | 25.2MB / 27.8MB | 0B / 643kB | 6 |
| 36 | 1793223383 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 16.37% | 79.43MiB / 1GiB | 7.76% | 71.3MB / 11.4MB | 0B / 0B | 9 |
| 37 | 1793223383 | mtusi2026lab3-api-1 | 65.76% | 118.6MiB / 512MiB | 23.17% | 443MB / 623MB | 0B / 0B | 7 |
| 38 | 1793223383 | mtusi2026lab3-postgres-1 | 28.91% | 137.8MiB / 1GiB | 13.46% | 142MB / 293MB | 53.2kB / 1.44GB | 14 |
| 39 | 1793223383 | mtusi2026lab3-lb-1 | 8.59% | 17.52MiB / 128MiB | 13.69% | 521MB / 544MB | 0B / 0B | 2 |
| 40 | 1793223383 | mtusi2026lab3-valkey-1 | 1.85% | 11.03MiB / 128MiB | 8.62% | 25.9MB / 28.6MB | 0B / 643kB | 6 |
| 41 | 1793223387 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 16.01% | 81.47MiB / 1GiB | 7.96% | 79.3MB / 12.7MB | 0B / 0B | 9 |
| 42 | 1793223387 | mtusi2026lab3-api-1 | 64.56% | 119.6MiB / 512MiB | 23.37% | 451MB / 635MB | 0B / 0B | 7 |
| 43 | 1793223387 | mtusi2026lab3-postgres-1 | 26.26% | 138.9MiB / 1GiB | 13.57% | 145MB / 298MB | 53.2kB / 1.47GB | 14 |
| 44 | 1793223387 | mtusi2026lab3-lb-1 | 8.36% | 16.98MiB / 128MiB | 13.27% | 534MB / 558MB | 0B / 0B | 2 |
| 45 | 1793223387 | mtusi2026lab3-valkey-1 | 2.38% | 11.03MiB / 128MiB | 8.62% | 26.4MB / 29.2MB | 0B / 643kB | 6 |
| 46 | 1793223390 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 16.40% | 81.49MiB / 1GiB | 7.96% | 89MB / 14.3MB | 0B / 0B | 9 |
| 47 | 1793223390 | mtusi2026lab3-api-1 | 67.42% | 119.7MiB / 512MiB | 23.37% | 458MB / 645MB | 0B / 0B | 7 |
| 48 | 1793223390 | mtusi2026lab3-postgres-1 | 24.38% | 140.5MiB / 1GiB | 13.72% | 148MB / 305MB | 53.2kB / 1.49GB | 14 |
| 49 | 1793223390 | mtusi2026lab3-lb-1 | 8.79% | 17.52MiB / 128MiB | 13.69% | 546MB / 570MB | 0B / 0B | 2 |
| 50 | 1793223390 | mtusi2026lab3-valkey-1 | 1.87% | 11.03MiB / 128MiB | 8.62% | 27MB / 29.8MB | 0B / 643kB | 6 |
| 51 | 1793223394 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 18.03% | 81.51MiB / 1GiB | 7.96% | 98.6MB / 15.9MB | 0B / 0B | 9 |
| 52 | 1793223394 | mtusi2026lab3-api-1 | 65.77% | 119.7MiB / 512MiB | 23.37% | 471MB / 663MB | 0B / 0B | 7 |
| 53 | 1793223394 | mtusi2026lab3-postgres-1 | 28.67% | 142.4MiB / 1GiB | 13.90% | 151MB / 312MB | 53.2kB / 1.54GB | 14 |
| 54 | 1793223394 | mtusi2026lab3-lb-1 | 7.91% | 17.2MiB / 128MiB | 13.44% | 558MB / 583MB | 0B / 0B | 2 |
| 55 | 1793223394 | mtusi2026lab3-valkey-1 | 2.50% | 11.03MiB / 128MiB | 8.62% | 27.4MB / 30.3MB | 0B / 643kB | 6 |
| 56 | 1793223397 | mtusi2026lab3-k6-run-39b0d1f65ed6 | 14.70% | 81.79MiB / 1GiB | 7.99% | 107MB / 17.2MB | 0B / 0B | 9 |
| 57 | 1793223397 | mtusi2026lab3-api-1 | 48.86% | 119.7MiB / 512MiB | 23.37% | 480MB / 675MB | 0B / 0B | 7 |
| 58 | 1793223397 | mtusi2026lab3-postgres-1 | 19.57% | 143.8MiB / 1GiB | 14.04% | 154MB / 317MB | 53.2kB / 1.56GB | 14 |
| 59 | 1793223397 | mtusi2026lab3-lb-1 | 6.81% | 17.24MiB / 128MiB | 13.47% | 568MB / 593MB | 0B / 0B | 2 |
| 60 | 1793223397 | mtusi2026lab3-valkey-1 | 2.09% | 11.02MiB / 128MiB | 8.61% | 28.1MB / 31MB | 0B / 643kB | 6 |