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 | 1793223265 | mtusi2026lab3-api-1 | 55.00% | 116.6MiB / 512MiB | 22.78% | 223MB / 313MB | 0B / 0B | 7 |
| 3 | 1793223265 | mtusi2026lab3-postgres-1 | 17.25% | 104.4MiB / 1GiB | 10.20% | 71.8MB / 147MB | 53.2kB / 759MB | 14 |
| 4 | 1793223265 | mtusi2026lab3-lb-1 | 6.07% | 15.03MiB / 128MiB | 11.74% | 263MB / 275MB | 0B / 0B | 2 |
| 5 | 1793223265 | mtusi2026lab3-valkey-1 | 1.86% | 10.89MiB / 128MiB | 8.51% | 13.2MB / 14.4MB | 0B / 430kB | 6 |
| 6 | 1793223268 | mtusi2026lab3-k6-run-95da1a6907f4 | 12.67% | 51.74MiB / 1GiB | 5.05% | 7.66MB / 1.43MB | 0B / 0B | 9 |
| 7 | 1793223268 | mtusi2026lab3-api-1 | 46.40% | 116.8MiB / 512MiB | 22.81% | 230MB / 323MB | 0B / 0B | 7 |
| 8 | 1793223268 | mtusi2026lab3-postgres-1 | 19.17% | 105.1MiB / 1GiB | 10.27% | 73.9MB / 152MB | 53.2kB / 778MB | 14 |
| 9 | 1793223268 | mtusi2026lab3-lb-1 | 6.16% | 14.68MiB / 128MiB | 11.47% | 271MB / 283MB | 0B / 0B | 2 |
| 10 | 1793223268 | mtusi2026lab3-valkey-1 | 1.86% | 10.89MiB / 128MiB | 8.51% | 13.4MB / 14.8MB | 0B / 430kB | 6 |
| 11 | 1793223272 | mtusi2026lab3-k6-run-95da1a6907f4 | 11.98% | 51.88MiB / 1GiB | 5.07% | 14.3MB / 2.49MB | 0B / 0B | 9 |
| 12 | 1793223272 | mtusi2026lab3-api-1 | 46.18% | 116.8MiB / 512MiB | 22.81% | 236MB / 332MB | 0B / 0B | 7 |
| 13 | 1793223272 | mtusi2026lab3-postgres-1 | 20.02% | 102.3MiB / 1GiB | 9.99% | 76.1MB / 156MB | 53.2kB / 796MB | 13 |
| 14 | 1793223272 | mtusi2026lab3-lb-1 | 5.75% | 15.23MiB / 128MiB | 11.90% | 279MB / 292MB | 0B / 0B | 2 |
| 15 | 1793223272 | mtusi2026lab3-valkey-1 | 1.83% | 10.89MiB / 128MiB | 8.51% | 13.8MB / 15.2MB | 0B / 430kB | 6 |
| 16 | 1793223276 | mtusi2026lab3-k6-run-95da1a6907f4 | 13.23% | 56.37MiB / 1GiB | 5.50% | 20.3MB / 3.42MB | 0B / 0B | 9 |
| 17 | 1793223276 | mtusi2026lab3-api-1 | 65.08% | 116.5MiB / 512MiB | 22.75% | 242MB / 341MB | 0B / 0B | 7 |
| 18 | 1793223276 | mtusi2026lab3-postgres-1 | 22.48% | 107.6MiB / 1GiB | 10.51% | 78MB / 160MB | 53.2kB / 829MB | 14 |
| 19 | 1793223276 | mtusi2026lab3-lb-1 | 7.30% | 15.29MiB / 128MiB | 11.94% | 287MB / 299MB | 0B / 0B | 2 |
| 20 | 1793223276 | mtusi2026lab3-valkey-1 | 2.18% | 10.89MiB / 128MiB | 8.51% | 14.3MB / 15.7MB | 0B / 430kB | 6 |
| 21 | 1793223279 | mtusi2026lab3-k6-run-95da1a6907f4 | 14.25% | 56.35MiB / 1GiB | 5.50% | 26.7MB / 4.49MB | 0B / 0B | 9 |
| 22 | 1793223279 | mtusi2026lab3-api-1 | 53.31% | 116.5MiB / 512MiB | 22.75% | 249MB / 350MB | 0B / 0B | 7 |
| 23 | 1793223279 | mtusi2026lab3-postgres-1 | 22.79% | 108.3MiB / 1GiB | 10.58% | 79.6MB / 163MB | 53.2kB / 842MB | 14 |
| 24 | 1793223279 | mtusi2026lab3-lb-1 | 7.80% | 15.21MiB / 128MiB | 11.88% | 295MB / 308MB | 0B / 0B | 2 |
| 25 | 1793223279 | mtusi2026lab3-valkey-1 | 2.23% | 10.9MiB / 128MiB | 8.51% | 14.7MB / 16.2MB | 0B / 430kB | 6 |
| 26 | 1793223283 | mtusi2026lab3-k6-run-95da1a6907f4 | 13.26% | 56.4MiB / 1GiB | 5.51% | 33.4MB / 5.55MB | 0B / 0B | 9 |
| 27 | 1793223283 | mtusi2026lab3-api-1 | 50.75% | 116.6MiB / 512MiB | 22.78% | 256MB / 360MB | 0B / 0B | 7 |
| 28 | 1793223283 | mtusi2026lab3-postgres-1 | 22.04% | 109.7MiB / 1GiB | 10.71% | 82.4MB / 169MB | 53.2kB / 866MB | 14 |
| 29 | 1793223283 | mtusi2026lab3-lb-1 | 6.50% | 15.29MiB / 128MiB | 11.95% | 301MB / 314MB | 0B / 0B | 2 |
| 30 | 1793223283 | mtusi2026lab3-valkey-1 | 1.55% | 10.89MiB / 128MiB | 8.51% | 15.1MB / 16.6MB | 0B / 430kB | 6 |
| 31 | 1793223286 | mtusi2026lab3-k6-run-95da1a6907f4 | 13.22% | 56.43MiB / 1GiB | 5.51% | 40.1MB / 6.62MB | 0B / 0B | 9 |
| 32 | 1793223286 | mtusi2026lab3-api-1 | 56.83% | 116.6MiB / 512MiB | 22.77% | 263MB / 370MB | 0B / 0B | 7 |
| 33 | 1793223286 | mtusi2026lab3-postgres-1 | 21.19% | 110.1MiB / 1GiB | 10.76% | 84.6MB / 174MB | 53.2kB / 884MB | 14 |
| 34 | 1793223286 | mtusi2026lab3-lb-1 | 6.45% | 14.98MiB / 128MiB | 11.71% | 311MB / 325MB | 0B / 0B | 2 |
| 35 | 1793223286 | mtusi2026lab3-valkey-1 | 2.12% | 10.89MiB / 128MiB | 8.51% | 15.4MB / 16.9MB | 0B / 430kB | 6 |
| 36 | 1793223290 | mtusi2026lab3-k6-run-95da1a6907f4 | 12.96% | 56.47MiB / 1GiB | 5.51% | 45.6MB / 7.49MB | 0B / 0B | 9 |
| 37 | 1793223290 | mtusi2026lab3-api-1 | 50.60% | 116.6MiB / 512MiB | 22.78% | 269MB / 378MB | 0B / 0B | 7 |
| 38 | 1793223290 | mtusi2026lab3-postgres-1 | 20.87% | 110.9MiB / 1GiB | 10.83% | 86.4MB / 178MB | 53.2kB / 899MB | 14 |
| 39 | 1793223290 | mtusi2026lab3-lb-1 | 6.95% | 15.06MiB / 128MiB | 11.77% | 318MB / 332MB | 0B / 0B | 2 |
| 40 | 1793223290 | mtusi2026lab3-valkey-1 | 2.17% | 10.89MiB / 128MiB | 8.51% | 15.8MB / 17.4MB | 0B / 430kB | 6 |
| 41 | 1793223293 | mtusi2026lab3-k6-run-95da1a6907f4 | 13.79% | 56.73MiB / 1GiB | 5.54% | 52.5MB / 8.55MB | 0B / 0B | 9 |
| 42 | 1793223293 | mtusi2026lab3-api-1 | 48.10% | 116.9MiB / 512MiB | 22.82% | 274MB / 385MB | 0B / 0B | 7 |
| 43 | 1793223293 | mtusi2026lab3-postgres-1 | 19.05% | 111.8MiB / 1GiB | 10.92% | 88.5MB / 182MB | 53.2kB / 917MB | 14 |
| 44 | 1793223293 | mtusi2026lab3-lb-1 | 6.81% | 14.72MiB / 128MiB | 11.50% | 326MB / 341MB | 0B / 0B | 2 |
| 45 | 1793223293 | mtusi2026lab3-valkey-1 | 2.09% | 11.14MiB / 128MiB | 8.70% | 16.2MB / 17.8MB | 0B / 430kB | 6 |
| 46 | 1793223297 | mtusi2026lab3-k6-run-95da1a6907f4 | 12.22% | 58.51MiB / 1GiB | 5.71% | 58.9MB / 9.61MB | 0B / 0B | 9 |
| 47 | 1793223297 | mtusi2026lab3-api-1 | 60.21% | 116.5MiB / 512MiB | 22.76% | 282MB / 397MB | 0B / 0B | 7 |
| 48 | 1793223297 | mtusi2026lab3-postgres-1 | 20.63% | 113.2MiB / 1GiB | 11.05% | 90.7MB / 187MB | 53.2kB / 943MB | 14 |
| 49 | 1793223297 | mtusi2026lab3-lb-1 | 6.18% | 14.95MiB / 128MiB | 11.68% | 334MB / 349MB | 0B / 0B | 2 |
| 50 | 1793223297 | mtusi2026lab3-valkey-1 | 1.99% | 10.89MiB / 128MiB | 8.51% | 16.5MB / 18.2MB | 0B / 430kB | 6 |
| 51 | 1793223300 | mtusi2026lab3-k6-run-95da1a6907f4 | 14.30% | 58.52MiB / 1GiB | 5.71% | 64.7MB / 10.5MB | 0B / 0B | 9 |
| 52 | 1793223300 | mtusi2026lab3-api-1 | 48.90% | 116.7MiB / 512MiB | 22.80% | 288MB / 406MB | 0B / 0B | 7 |
| 53 | 1793223300 | mtusi2026lab3-postgres-1 | 21.05% | 113.8MiB / 1GiB | 11.12% | 92.6MB / 191MB | 53.2kB / 959MB | 14 |
| 54 | 1793223300 | mtusi2026lab3-lb-1 | 6.38% | 14.91MiB / 128MiB | 11.65% | 341MB / 356MB | 0B / 0B | 2 |
| 55 | 1793223300 | mtusi2026lab3-valkey-1 | 2.10% | 10.89MiB / 128MiB | 8.51% | 17MB / 18.7MB | 0B / 430kB | 6 |
| 56 | 1793223303 | mtusi2026lab3-k6-run-95da1a6907f4 | 13.25% | 59.04MiB / 1GiB | 5.77% | 71.4MB / 11.6MB | 0B / 0B | 9 |
| 57 | 1793223303 | mtusi2026lab3-api-1 | 50.53% | 116.6MiB / 512MiB | 22.77% | 293MB / 413MB | 0B / 0B | 7 |
| 58 | 1793223303 | mtusi2026lab3-postgres-1 | 18.22% | 114.7MiB / 1GiB | 11.20% | 94.8MB / 195MB | 53.2kB / 977MB | 14 |
| 59 | 1793223303 | mtusi2026lab3-lb-1 | 6.39% | 14.45MiB / 128MiB | 11.29% | 350MB / 365MB | 0B / 0B | 2 |
| 60 | 1793223303 | mtusi2026lab3-valkey-1 | 1.96% | 10.89MiB / 128MiB | 8.51% | 17.3MB / 19.1MB | 0B / 430kB | 6 |