forked from mtusi2026/mtusi2026lab2
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
6.4 KiB
6.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793224267 | mtusi2026lab3-api-1 | 70.32% | 123.5MiB / 512MiB | 24.13% | 480MB / 675MB | 0B / 0B | 7 |
| 3 | 1793224267 | mtusi2026lab3-api-2 | 70.69% | 123.6MiB / 512MiB | 24.13% | 481MB / 676MB | 0B / 0B | 7 |
| 4 | 1793224267 | mtusi2026lab3-postgres-1 | 53.81% | 248.6MiB / 1GiB | 24.28% | 309MB / 635MB | 53.2kB / 3.09GB | 22 |
| 5 | 1793224267 | mtusi2026lab3-lb-1 | 7.52% | 25.95MiB / 128MiB | 20.27% | 1.13GB / 1.18GB | 0B / 0B | 2 |
| 6 | 1793224267 | mtusi2026lab3-valkey-1 | 3.27% | 11.01MiB / 128MiB | 8.60% | 56.4MB / 62.3MB | 0B / 705kB | 6 |
| 7 | 1793224270 | mtusi2026lab3-k6-run-0d714825856e | 29.14% | 127.4MiB / 1GiB | 12.44% | 27.1MB / 4.39MB | 0B / 0B | 9 |
| 8 | 1793224270 | mtusi2026lab3-api-1 | 76.22% | 134.1MiB / 512MiB | 26.20% | 491MB / 690MB | 0B / 0B | 8 |
| 9 | 1793224270 | mtusi2026lab3-api-2 | 72.83% | 123.3MiB / 512MiB | 24.08% | 488MB / 687MB | 0B / 0B | 7 |
| 10 | 1793224270 | mtusi2026lab3-postgres-1 | 53.98% | 251.7MiB / 1GiB | 24.58% | 316MB / 648MB | 53.2kB / 3.14GB | 22 |
| 11 | 1793224270 | mtusi2026lab3-lb-1 | 15.06% | 26.36MiB / 128MiB | 20.60% | 1.16GB / 1.21GB | 0B / 0B | 2 |
| 12 | 1793224270 | mtusi2026lab3-valkey-1 | 3.31% | 11.01MiB / 128MiB | 8.60% | 57.5MB / 63.6MB | 0B / 705kB | 6 |
| 13 | 1793224274 | mtusi2026lab3-k6-run-0d714825856e | 32.76% | 131.4MiB / 1GiB | 12.83% | 47.1MB / 7.55MB | 0B / 0B | 9 |
| 14 | 1793224274 | mtusi2026lab3-api-1 | 70.23% | 125MiB / 512MiB | 24.41% | 501MB / 705MB | 0B / 0B | 7 |
| 15 | 1793224274 | mtusi2026lab3-api-2 | 71.02% | 123.4MiB / 512MiB | 24.09% | 501MB / 705MB | 0B / 0B | 7 |
| 16 | 1793224274 | mtusi2026lab3-postgres-1 | 54.35% | 254.4MiB / 1GiB | 24.84% | 322MB / 662MB | 53.2kB / 3.2GB | 22 |
| 17 | 1793224274 | mtusi2026lab3-lb-1 | 15.81% | 25.71MiB / 128MiB | 20.09% | 1.18GB / 1.23GB | 0B / 0B | 2 |
| 18 | 1793224274 | mtusi2026lab3-valkey-1 | 3.34% | 11.01MiB / 128MiB | 8.60% | 58.7MB / 64.9MB | 0B / 705kB | 6 |
| 19 | 1793224278 | mtusi2026lab3-k6-run-0d714825856e | 30.43% | 146.7MiB / 1GiB | 14.32% | 66.3MB / 10.7MB | 0B / 0B | 9 |
| 20 | 1793224278 | mtusi2026lab3-api-1 | 71.49% | 125MiB / 512MiB | 24.41% | 511MB / 719MB | 0B / 0B | 7 |
| 21 | 1793224278 | mtusi2026lab3-api-2 | 71.58% | 123.3MiB / 512MiB | 24.08% | 511MB / 720MB | 0B / 0B | 7 |
| 22 | 1793224278 | mtusi2026lab3-postgres-1 | 55.21% | 258MiB / 1GiB | 25.20% | 329MB / 675MB | 53.2kB / 3.27GB | 22 |
| 23 | 1793224278 | mtusi2026lab3-lb-1 | 16.35% | 26.23MiB / 128MiB | 20.49% | 1.21GB / 1.26GB | 0B / 0B | 2 |
| 24 | 1793224278 | mtusi2026lab3-valkey-1 | 3.79% | 11.01MiB / 128MiB | 8.60% | 59.6MB / 65.8MB | 0B / 705kB | 6 |
| 25 | 1793224281 | mtusi2026lab3-k6-run-0d714825856e | 30.69% | 146.1MiB / 1GiB | 14.27% | 82.2MB / 13.3MB | 0B / 0B | 9 |
| 26 | 1793224281 | mtusi2026lab3-api-1 | 70.10% | 125MiB / 512MiB | 24.41% | 519MB / 730MB | 0B / 0B | 7 |
| 27 | 1793224281 | mtusi2026lab3-api-2 | 75.80% | 133.7MiB / 512MiB | 26.10% | 520MB / 732MB | 0B / 0B | 8 |
| 28 | 1793224281 | mtusi2026lab3-postgres-1 | 56.25% | 260.2MiB / 1GiB | 25.41% | 334MB / 686MB | 53.2kB / 3.31GB | 22 |
| 29 | 1793224281 | mtusi2026lab3-lb-1 | 15.63% | 26MiB / 128MiB | 20.31% | 1.23GB / 1.28GB | 0B / 0B | 2 |
| 30 | 1793224281 | mtusi2026lab3-valkey-1 | 3.35% | 11.01MiB / 128MiB | 8.60% | 60.9MB / 67.3MB | 0B / 705kB | 6 |
| 31 | 1793224284 | mtusi2026lab3-k6-run-0d714825856e | 30.39% | 146MiB / 1GiB | 14.26% | 102MB / 16.5MB | 0B / 0B | 9 |
| 32 | 1793224284 | mtusi2026lab3-api-1 | 74.64% | 124.8MiB / 512MiB | 24.37% | 526MB / 741MB | 0B / 0B | 7 |
| 33 | 1793224284 | mtusi2026lab3-api-2 | 73.24% | 123.3MiB / 512MiB | 24.08% | 530MB / 746MB | 0B / 0B | 7 |
| 34 | 1793224284 | mtusi2026lab3-postgres-1 | 58.26% | 263.4MiB / 1GiB | 25.72% | 341MB / 700MB | 53.2kB / 3.37GB | 22 |
| 35 | 1793224284 | mtusi2026lab3-lb-1 | 15.71% | 25.82MiB / 128MiB | 20.17% | 1.25GB / 1.31GB | 0B / 0B | 2 |
| 36 | 1793224284 | mtusi2026lab3-valkey-1 | 3.40% | 11.01MiB / 128MiB | 8.60% | 62.1MB / 68.6MB | 0B / 705kB | 6 |
| 37 | 1793224288 | mtusi2026lab3-k6-run-0d714825856e | 32.92% | 146MiB / 1GiB | 14.26% | 116MB / 18.8MB | 0B / 0B | 9 |
| 38 | 1793224288 | mtusi2026lab3-api-1 | 85.18% | 125.3MiB / 512MiB | 24.46% | 536MB / 755MB | 0B / 0B | 7 |
| 39 | 1793224288 | mtusi2026lab3-api-2 | 71.07% | 123.3MiB / 512MiB | 24.08% | 540MB / 760MB | 0B / 0B | 7 |
| 40 | 1793224288 | mtusi2026lab3-postgres-1 | 55.60% | 266.4MiB / 1GiB | 26.02% | 347MB / 713MB | 53.2kB / 3.44GB | 22 |
| 41 | 1793224288 | mtusi2026lab3-lb-1 | 16.87% | 26.29MiB / 128MiB | 20.54% | 1.28GB / 1.33GB | 0B / 0B | 2 |
| 42 | 1793224288 | mtusi2026lab3-valkey-1 | 4.61% | 11.01MiB / 128MiB | 8.60% | 63.2MB / 69.9MB | 0B / 725kB | 6 |
| 43 | 1793224292 | mtusi2026lab3-k6-run-0d714825856e | 32.01% | 146.1MiB / 1GiB | 14.26% | 137MB / 22.4MB | 0B / 0B | 9 |
| 44 | 1793224292 | mtusi2026lab3-api-1 | 76.19% | 125MiB / 512MiB | 24.41% | 548MB / 771MB | 0B / 0B | 7 |
| 45 | 1793224292 | mtusi2026lab3-api-2 | 78.54% | 130.7MiB / 512MiB | 25.53% | 549MB / 772MB | 0B / 0B | 8 |
| 46 | 1793224292 | mtusi2026lab3-postgres-1 | 60.78% | 268.9MiB / 1GiB | 26.26% | 353MB / 724MB | 53.2kB / 3.49GB | 22 |
| 47 | 1793224292 | mtusi2026lab3-lb-1 | 17.33% | 26.33MiB / 128MiB | 20.57% | 1.3GB / 1.35GB | 0B / 0B | 2 |
| 48 | 1793224292 | mtusi2026lab3-valkey-1 | 4.25% | 11.02MiB / 128MiB | 8.61% | 64.3MB / 71MB | 0B / 725kB | 6 |
| 49 | 1793224295 | mtusi2026lab3-k6-run-0d714825856e | 29.19% | 150.1MiB / 1GiB | 14.65% | 156MB / 25.6MB | 0B / 0B | 9 |
| 50 | 1793224295 | mtusi2026lab3-api-1 | 68.73% | 125.5MiB / 512MiB | 24.50% | 558MB / 785MB | 0B / 0B | 7 |
| 51 | 1793224295 | mtusi2026lab3-api-2 | 68.50% | 124MiB / 512MiB | 24.22% | 559MB / 786MB | 0B / 0B | 7 |
| 52 | 1793224295 | mtusi2026lab3-postgres-1 | 54.38% | 271.6MiB / 1GiB | 26.53% | 359MB / 738MB | 53.2kB / 3.54GB | 22 |
| 53 | 1793224295 | mtusi2026lab3-lb-1 | 15.01% | 25.46MiB / 128MiB | 19.89% | 1.32GB / 1.38GB | 0B / 0B | 2 |
| 54 | 1793224295 | mtusi2026lab3-valkey-1 | 4.47% | 11.01MiB / 128MiB | 8.60% | 65.1MB / 72MB | 0B / 725kB | 6 |
| 55 | 1793224299 | mtusi2026lab3-k6-run-0d714825856e | 30.55% | 150.1MiB / 1GiB | 14.66% | 176MB / 28.8MB | 0B / 0B | 9 |
| 56 | 1793224299 | mtusi2026lab3-api-1 | 70.81% | 125.7MiB / 512MiB | 24.55% | 568MB / 799MB | 0B / 0B | 7 |
| 57 | 1793224299 | mtusi2026lab3-api-2 | 75.21% | 124MiB / 512MiB | 24.21% | 566MB / 796MB | 0B / 0B | 7 |
| 58 | 1793224299 | mtusi2026lab3-postgres-1 | 56.62% | 275.1MiB / 1GiB | 26.87% | 366MB / 751MB | 53.2kB / 3.62GB | 22 |
| 59 | 1793224299 | mtusi2026lab3-lb-1 | 15.92% | 25MiB / 128MiB | 19.53% | 1.35GB / 1.4GB | 0B / 0B | 2 |
| 60 | 1793224299 | mtusi2026lab3-valkey-1 | 3.42% | 11.01MiB / 128MiB | 8.60% | 66.6MB / 73.6MB | 0B / 725kB | 6 |
| 61 | 1793224302 | mtusi2026lab3-k6-run-0d714825856e | 33.86% | 154.1MiB / 1GiB | 15.05% | 196MB / 31.9MB | 0B / 0B | 9 |
| 62 | 1793224302 | mtusi2026lab3-api-1 | 88.16% | 125.6MiB / 512MiB | 24.53% | 579MB / 814MB | 0B / 0B | 7 |
| 63 | 1793224302 | mtusi2026lab3-api-2 | 83.05% | 124.9MiB / 512MiB | 24.39% | 579MB / 814MB | 0B / 0B | 7 |
| 64 | 1793224302 | mtusi2026lab3-postgres-1 | 64.18% | 277.8MiB / 1GiB | 27.12% | 372MB / 765MB | 53.2kB / 3.67GB | 22 |
| 65 | 1793224302 | mtusi2026lab3-lb-1 | 17.96% | 25.98MiB / 128MiB | 20.30% | 1.37GB / 1.43GB | 0B / 0B | 2 |
| 66 | 1793224302 | mtusi2026lab3-valkey-1 | 3.48% | 11.01MiB / 128MiB | 8.60% | 67.5MB / 74.6MB | 0B / 725kB | 6 |
| 67 | 1793224306 | mtusi2026lab3-k6-run-0d714825856e | 29.86% | 154.2MiB / 1GiB | 15.05% | 211MB / 34.4MB | 0B / 0B | 9 |
| 68 | 1793224306 | mtusi2026lab3-api-1 | 59.90% | 125.5MiB / 512MiB | 24.51% | 587MB / 826MB | 0B / 0B | 7 |
| 69 | 1793224306 | mtusi2026lab3-api-2 | 61.51% | 124.8MiB / 512MiB | 24.38% | 587MB / 825MB | 0B / 0B | 7 |
| 70 | 1793224306 | mtusi2026lab3-postgres-1 | 47.92% | 280MiB / 1GiB | 27.34% | 377MB / 775MB | 53.2kB / 3.71GB | 22 |
| 71 | 1793224306 | mtusi2026lab3-lb-1 | 13.63% | 25.55MiB / 128MiB | 19.96% | 1.39GB / 1.45GB | 0B / 0B | 2 |
| 72 | 1793224306 | mtusi2026lab3-valkey-1 | 2.82% | 11MiB / 128MiB | 8.59% | 68.7MB / 76MB | 0B / 725kB | 6 |