1x4, 2x2 and 4x1 at 4 CPU and 2 GiB of API, workers equal to CPUs, 32 pool connections and 128 balancer slots in every layout, three repeats from 600 to 6 830 rps. All three keep up with the offered load up to 4 560 rps; the peaks are 5 375 rps for 1x4 (5 332..5 384), 4 964 for 2x2 (4 894..5 104) and 4 724 for 4x1 (4 686..4 794). At the peak the API uses 95 % of its four CPUs in every layout, PostgreSQL 82..89 % of its two, the balancer 40 % of one, and about half of the 32 database connections wait for the lock on a chat row. Smaller replicas cost more: at 3 040 rps the API burns 215 % CPU as 1x4, 243 % as 2x2 and about 280 % as 4x1, and p95 at 4 560 rps grows from 9 to 69 and 150 ms. The first attempt was aborted when a neighbour's image build froze the Docker API; its summary is kept under aborted/. Twelve steps of the rerun were rejected as disturbed and repeated. A config's SLO capacity now needs a majority of saturated repeats, since a median is robust to one disturbed repeat and "any repeat" is not. Series B starts at 450 rps per CPU. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
6.5 KiB
6.5 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793217230 | mtusi2026lab3-api-1 | 89.42% | 213.7MiB / 1GiB | 20.87% | 3.11GB / 4.39GB | 0B / 0B | 13 |
| 3 | 1793217230 | mtusi2026lab3-api-2 | 191.79% | 207.2MiB / 1GiB | 20.24% | 3.12GB / 4.4GB | 0B / 0B | 13 |
| 4 | 1793217230 | mtusi2026lab3-postgres-1 | 165.69% | 487.6MiB / 1GiB | 47.62% | 2GB / 4.13GB | 458MB / 16.7GB | 38 |
| 5 | 1793217230 | mtusi2026lab3-lb-1 | 38.88% | 70.59MiB / 128MiB | 55.15% | 7.37GB / 7.77GB | 0B / 0B | 2 |
| 6 | 1793217230 | mtusi2026lab3-valkey-1 | 8.89% | 11.37MiB / 128MiB | 8.88% | 364MB / 403MB | 0B / 2.14MB | 6 |
| 7 | 1793217234 | mtusi2026lab3-k6-run-d0e5444cf019 | 73.27% | 494MiB / 1GiB | 48.24% | 65.9MB / 9.86MB | 0B / 0B | 9 |
| 8 | 1793217234 | mtusi2026lab3-api-1 | 178.69% | 213.4MiB / 1GiB | 20.84% | 3.14GB / 4.43GB | 0B / 0B | 13 |
| 9 | 1793217234 | mtusi2026lab3-api-2 | 178.60% | 207.4MiB / 1GiB | 20.26% | 3.14GB / 4.43GB | 0B / 0B | 13 |
| 10 | 1793217234 | mtusi2026lab3-postgres-1 | 183.75% | 496MiB / 1GiB | 48.43% | 2.02GB / 4.16GB | 667MB / 16.8GB | 39 |
| 11 | 1793217234 | mtusi2026lab3-lb-1 | 37.96% | 70.33MiB / 128MiB | 54.95% | 7.43GB / 7.83GB | 0B / 0B | 2 |
| 12 | 1793217234 | mtusi2026lab3-valkey-1 | 9.00% | 11.37MiB / 128MiB | 8.88% | 366MB / 405MB | 0B / 2.14MB | 6 |
| 13 | 1793217238 | mtusi2026lab3-k6-run-d0e5444cf019 | 76.24% | 508.4MiB / 1GiB | 49.64% | 114MB / 16.6MB | 0B / 0B | 9 |
| 14 | 1793217238 | mtusi2026lab3-api-1 | 190.18% | 213.2MiB / 1GiB | 20.82% | 3.17GB / 4.46GB | 0B / 0B | 13 |
| 15 | 1793217238 | mtusi2026lab3-api-2 | 192.97% | 207.5MiB / 1GiB | 20.27% | 3.17GB / 4.46GB | 0B / 0B | 13 |
| 16 | 1793217238 | mtusi2026lab3-postgres-1 | 176.79% | 484.5MiB / 1GiB | 47.32% | 2.03GB / 4.19GB | 667MB / 16.9GB | 38 |
| 17 | 1793217238 | mtusi2026lab3-lb-1 | 40.97% | 70.37MiB / 128MiB | 54.97% | 7.48GB / 7.89GB | 0B / 0B | 2 |
| 18 | 1793217238 | mtusi2026lab3-valkey-1 | 8.90% | 11.37MiB / 128MiB | 8.88% | 370MB / 409MB | 0B / 2.14MB | 6 |
| 19 | 1793217241 | mtusi2026lab3-k6-run-d0e5444cf019 | 49.62% | 537.3MiB / 1GiB | 52.47% | 142MB / 20.8MB | 0B / 0B | 9 |
| 20 | 1793217241 | mtusi2026lab3-api-1 | 156.28% | 213.4MiB / 1GiB | 20.84% | 3.19GB / 4.49GB | 0B / 0B | 13 |
| 21 | 1793217241 | mtusi2026lab3-api-2 | 160.99% | 207.9MiB / 1GiB | 20.30% | 3.18GB / 4.49GB | 0B / 0B | 13 |
| 22 | 1793217241 | mtusi2026lab3-postgres-1 | 151.32% | 484.6MiB / 1GiB | 47.33% | 2.04GB / 4.21GB | 667MB / 16.9GB | 38 |
| 23 | 1793217241 | mtusi2026lab3-lb-1 | 31.34% | 71.91MiB / 128MiB | 56.18% | 7.52GB / 7.94GB | 0B / 0B | 2 |
| 24 | 1793217241 | mtusi2026lab3-valkey-1 | 7.18% | 11.38MiB / 128MiB | 8.89% | 372MB / 411MB | 0B / 2.14MB | 6 |
| 25 | 1793217245 | mtusi2026lab3-k6-run-d0e5444cf019 | 84.07% | 630.6MiB / 1GiB | 61.58% | 196MB / 28.5MB | 0B / 0B | 9 |
| 26 | 1793217245 | mtusi2026lab3-api-1 | 187.94% | 213.2MiB / 1GiB | 20.82% | 3.21GB / 4.52GB | 0B / 0B | 13 |
| 27 | 1793217245 | mtusi2026lab3-api-2 | 190.51% | 207.5MiB / 1GiB | 20.26% | 3.2GB / 4.51GB | 0B / 0B | 13 |
| 28 | 1793217245 | mtusi2026lab3-postgres-1 | 176.01% | 484.4MiB / 1GiB | 47.31% | 2.06GB / 4.25GB | 667MB / 17GB | 38 |
| 29 | 1793217245 | mtusi2026lab3-lb-1 | 41.32% | 70.8MiB / 128MiB | 55.32% | 7.58GB / 8GB | 0B / 0B | 2 |
| 30 | 1793217245 | mtusi2026lab3-valkey-1 | 9.48% | 11.37MiB / 128MiB | 8.88% | 374MB / 414MB | 0B / 2.14MB | 6 |
| 31 | 1793217249 | mtusi2026lab3-k6-run-d0e5444cf019 | 83.51% | 632.6MiB / 1GiB | 61.78% | 246MB / 35.6MB | 0B / 0B | 9 |
| 32 | 1793217249 | mtusi2026lab3-api-1 | 190.62% | 213.4MiB / 1GiB | 20.84% | 3.23GB / 4.56GB | 0B / 0B | 13 |
| 33 | 1793217249 | mtusi2026lab3-api-2 | 189.88% | 207.5MiB / 1GiB | 20.26% | 3.23GB / 4.56GB | 0B / 0B | 13 |
| 34 | 1793217249 | mtusi2026lab3-postgres-1 | 179.42% | 484.3MiB / 1GiB | 47.29% | 2.07GB / 4.27GB | 667MB / 17.1GB | 38 |
| 35 | 1793217249 | mtusi2026lab3-lb-1 | 41.81% | 70.99MiB / 128MiB | 55.46% | 7.64GB / 8.06GB | 0B / 0B | 2 |
| 36 | 1793217249 | mtusi2026lab3-valkey-1 | 9.58% | 11.37MiB / 128MiB | 8.88% | 377MB / 418MB | 0B / 2.14MB | 6 |
| 37 | 1793217252 | mtusi2026lab3-k6-run-d0e5444cf019 | 79.82% | 632.6MiB / 1GiB | 61.78% | 288MB / 41.5MB | 0B / 0B | 9 |
| 38 | 1793217252 | mtusi2026lab3-api-1 | 188.99% | 213.9MiB / 1GiB | 20.88% | 3.26GB / 4.59GB | 0B / 0B | 13 |
| 39 | 1793217252 | mtusi2026lab3-api-2 | 183.97% | 208.1MiB / 1GiB | 20.32% | 3.25GB / 4.59GB | 0B / 0B | 13 |
| 40 | 1793217252 | mtusi2026lab3-postgres-1 | 165.45% | 484.1MiB / 1GiB | 47.27% | 2.09GB / 4.31GB | 667MB / 17.2GB | 38 |
| 41 | 1793217252 | mtusi2026lab3-lb-1 | 38.63% | 70.77MiB / 128MiB | 55.29% | 7.69GB / 8.11GB | 0B / 0B | 2 |
| 42 | 1793217252 | mtusi2026lab3-valkey-1 | 8.33% | 11.37MiB / 128MiB | 8.88% | 380MB / 420MB | 0B / 2.14MB | 6 |
| 43 | 1793217256 | mtusi2026lab3-k6-run-d0e5444cf019 | 62.94% | 652.1MiB / 1GiB | 63.68% | 342MB / 48.9MB | 0B / 0B | 9 |
| 44 | 1793217256 | mtusi2026lab3-api-1 | 190.67% | 213.6MiB / 1GiB | 20.86% | 3.28GB / 4.63GB | 0B / 0B | 13 |
| 45 | 1793217256 | mtusi2026lab3-api-2 | 191.63% | 207.5MiB / 1GiB | 20.27% | 3.28GB / 4.63GB | 0B / 0B | 13 |
| 46 | 1793217256 | mtusi2026lab3-postgres-1 | 177.02% | 484.2MiB / 1GiB | 47.29% | 2.11GB / 4.34GB | 667MB / 17.3GB | 38 |
| 47 | 1793217256 | mtusi2026lab3-lb-1 | 42.02% | 71.5MiB / 128MiB | 55.86% | 7.75GB / 8.18GB | 0B / 0B | 2 |
| 48 | 1793217256 | mtusi2026lab3-valkey-1 | 9.00% | 11.37MiB / 128MiB | 8.88% | 382MB / 423MB | 0B / 2.14MB | 6 |
| 49 | 1793217259 | mtusi2026lab3-k6-run-d0e5444cf019 | 76.53% | 659.2MiB / 1GiB | 64.37% | 392MB / 55.9MB | 0B / 0B | 9 |
| 50 | 1793217259 | mtusi2026lab3-api-1 | 191.15% | 213.9MiB / 1GiB | 20.88% | 3.31GB / 4.66GB | 0B / 0B | 13 |
| 51 | 1793217259 | mtusi2026lab3-api-2 | 186.74% | 207.7MiB / 1GiB | 20.29% | 3.31GB / 4.66GB | 0B / 0B | 13 |
| 52 | 1793217259 | mtusi2026lab3-postgres-1 | 179.31% | 483.7MiB / 1GiB | 47.23% | 2.12GB / 4.38GB | 667MB / 17.4GB | 38 |
| 53 | 1793217259 | mtusi2026lab3-lb-1 | 42.24% | 70.78MiB / 128MiB | 55.30% | 7.81GB / 8.25GB | 0B / 0B | 2 |
| 54 | 1793217259 | mtusi2026lab3-valkey-1 | 8.54% | 11.37MiB / 128MiB | 8.88% | 385MB / 426MB | 0B / 2.14MB | 6 |
| 55 | 1793217263 | mtusi2026lab3-k6-run-d0e5444cf019 | 83.12% | 659.2MiB / 1GiB | 64.37% | 436MB / 62.1MB | 0B / 0B | 9 |
| 56 | 1793217263 | mtusi2026lab3-api-1 | 190.52% | 213.8MiB / 1GiB | 20.88% | 3.33GB / 4.69GB | 0B / 0B | 13 |
| 57 | 1793217263 | mtusi2026lab3-api-2 | 190.34% | 207.4MiB / 1GiB | 20.26% | 3.33GB / 4.69GB | 0B / 0B | 13 |
| 58 | 1793217263 | mtusi2026lab3-postgres-1 | 175.89% | 484.2MiB / 1GiB | 47.29% | 2.14GB / 4.41GB | 667MB / 17.5GB | 38 |
| 59 | 1793217263 | mtusi2026lab3-lb-1 | 41.26% | 70.52MiB / 128MiB | 55.09% | 7.86GB / 8.3GB | 0B / 0B | 2 |
| 60 | 1793217263 | mtusi2026lab3-valkey-1 | 9.04% | 11.37MiB / 128MiB | 8.88% | 388MB / 430MB | 0B / 2.14MB | 6 |
| 61 | 1793217266 | mtusi2026lab3-k6-run-d0e5444cf019 | 62.26% | 665.9MiB / 1GiB | 65.03% | 488MB / 69.5MB | 0B / 0B | 9 |
| 62 | 1793217266 | mtusi2026lab3-api-1 | 187.04% | 213.8MiB / 1GiB | 20.88% | 3.35GB / 4.72GB | 0B / 0B | 13 |
| 63 | 1793217266 | mtusi2026lab3-api-2 | 190.06% | 207.8MiB / 1GiB | 20.29% | 3.36GB / 4.73GB | 0B / 0B | 13 |
| 64 | 1793217266 | mtusi2026lab3-postgres-1 | 179.36% | 484.8MiB / 1GiB | 47.34% | 2.15GB / 4.44GB | 667MB / 17.6GB | 38 |
| 65 | 1793217266 | mtusi2026lab3-lb-1 | 42.09% | 70.78MiB / 128MiB | 55.29% | 7.92GB / 8.37GB | 0B / 0B | 2 |
| 66 | 1793217266 | mtusi2026lab3-valkey-1 | 9.03% | 11.37MiB / 128MiB | 8.88% | 391MB / 433MB | 0B / 2.14MB | 6 |
| 67 | 1793217270 | mtusi2026lab3-k6-run-d0e5444cf019 | 82.53% | 667.2MiB / 1GiB | 65.16% | 523MB / 74.7MB | 0B / 0B | 9 |
| 68 | 1793217270 | mtusi2026lab3-api-1 | 72.04% | 213.4MiB / 1GiB | 20.84% | 3.38GB / 4.76GB | 0B / 0B | 13 |
| 69 | 1793217270 | mtusi2026lab3-api-2 | 71.60% | 207.2MiB / 1GiB | 20.24% | 3.38GB / 4.76GB | 0B / 0B | 13 |
| 70 | 1793217270 | mtusi2026lab3-postgres-1 | 70.43% | 483.8MiB / 1GiB | 47.24% | 2.17GB / 4.47GB | 667MB / 17.7GB | 38 |
| 71 | 1793217270 | mtusi2026lab3-lb-1 | 16.39% | 68.46MiB / 128MiB | 53.49% | 7.97GB / 8.42GB | 0B / 0B | 2 |
| 72 | 1793217270 | mtusi2026lab3-valkey-1 | 3.36% | 11.34MiB / 128MiB | 8.86% | 394MB / 436MB | 0B / 2.14MB | 6 |