forked from mtusi2026/mtusi2026lab3
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 | 1793216978 | mtusi2026lab3-api-1 | 192.78% | 206.4MiB / 1GiB | 20.15% | 2.04GB / 2.88GB | 0B / 0B | 13 |
| 3 | 1793216978 | mtusi2026lab3-api-2 | 191.61% | 201.2MiB / 1GiB | 19.65% | 2.05GB / 2.89GB | 0B / 0B | 13 |
| 4 | 1793216978 | mtusi2026lab3-postgres-1 | 171.76% | 438.6MiB / 1GiB | 42.83% | 1.31GB / 2.71GB | 122MB / 11.8GB | 38 |
| 5 | 1793216978 | mtusi2026lab3-lb-1 | 42.21% | 55.25MiB / 128MiB | 43.16% | 4.86GB / 5.06GB | 0B / 0B | 2 |
| 6 | 1793216978 | mtusi2026lab3-valkey-1 | 8.79% | 11.37MiB / 128MiB | 8.88% | 239MB / 264MB | 0B / 1.71MB | 6 |
| 7 | 1793216982 | mtusi2026lab3-k6-run-00cb49b20674 | 77.74% | 492MiB / 1GiB | 48.05% | 64.4MB / 9.78MB | 184kB / 0B | 9 |
| 8 | 1793216982 | mtusi2026lab3-api-1 | 194.22% | 206.4MiB / 1GiB | 20.16% | 2.07GB / 2.92GB | 0B / 0B | 13 |
| 9 | 1793216982 | mtusi2026lab3-api-2 | 192.99% | 201.6MiB / 1GiB | 19.69% | 2.07GB / 2.92GB | 0B / 0B | 13 |
| 10 | 1793216982 | mtusi2026lab3-postgres-1 | 163.37% | 438.8MiB / 1GiB | 42.86% | 1.33GB / 2.73GB | 122MB / 11.9GB | 38 |
| 11 | 1793216982 | mtusi2026lab3-lb-1 | 41.01% | 63.58MiB / 128MiB | 49.67% | 4.92GB / 5.13GB | 0B / 0B | 2 |
| 12 | 1793216982 | mtusi2026lab3-valkey-1 | 8.86% | 11.37MiB / 128MiB | 8.88% | 242MB / 268MB | 0B / 1.71MB | 6 |
| 13 | 1793216985 | mtusi2026lab3-k6-run-00cb49b20674 | 75.81% | 510.7MiB / 1GiB | 49.87% | 116MB / 17.1MB | 184kB / 0B | 9 |
| 14 | 1793216985 | mtusi2026lab3-api-1 | 191.39% | 208.9MiB / 1GiB | 20.40% | 2.1GB / 2.96GB | 0B / 0B | 13 |
| 15 | 1793216985 | mtusi2026lab3-api-2 | 193.12% | 202MiB / 1GiB | 19.73% | 2.1GB / 2.96GB | 0B / 0B | 13 |
| 16 | 1793216985 | mtusi2026lab3-postgres-1 | 174.39% | 438.3MiB / 1GiB | 42.80% | 1.35GB / 2.78GB | 122MB / 12GB | 38 |
| 17 | 1793216985 | mtusi2026lab3-lb-1 | 40.87% | 65.23MiB / 128MiB | 50.96% | 4.98GB / 5.19GB | 0B / 0B | 2 |
| 18 | 1793216985 | mtusi2026lab3-valkey-1 | 9.17% | 11.37MiB / 128MiB | 8.88% | 244MB / 270MB | 0B / 1.71MB | 6 |
| 19 | 1793216989 | mtusi2026lab3-k6-run-00cb49b20674 | 83.80% | 557.5MiB / 1GiB | 54.44% | 160MB / 23.6MB | 184kB / 0B | 9 |
| 20 | 1793216989 | mtusi2026lab3-api-1 | 192.53% | 209.6MiB / 1GiB | 20.46% | 2.12GB / 2.99GB | 0B / 0B | 13 |
| 21 | 1793216989 | mtusi2026lab3-api-2 | 193.37% | 202.1MiB / 1GiB | 19.74% | 2.12GB / 2.99GB | 0B / 0B | 13 |
| 22 | 1793216989 | mtusi2026lab3-postgres-1 | 174.25% | 435.5MiB / 1GiB | 42.53% | 1.36GB / 2.81GB | 122MB / 12.1GB | 37 |
| 23 | 1793216989 | mtusi2026lab3-lb-1 | 41.47% | 71.75MiB / 128MiB | 56.06% | 5.03GB / 5.25GB | 0B / 0B | 2 |
| 24 | 1793216989 | mtusi2026lab3-valkey-1 | 9.55% | 11.37MiB / 128MiB | 8.88% | 248MB / 274MB | 0B / 1.71MB | 6 |
| 25 | 1793216992 | mtusi2026lab3-k6-run-00cb49b20674 | 83.84% | 625.9MiB / 1GiB | 61.13% | 210MB / 30.6MB | 184kB / 0B | 9 |
| 26 | 1793216992 | mtusi2026lab3-api-1 | 180.26% | 209.6MiB / 1GiB | 20.47% | 2.14GB / 3.02GB | 0B / 0B | 13 |
| 27 | 1793216992 | mtusi2026lab3-api-2 | 178.95% | 202.2MiB / 1GiB | 19.75% | 2.15GB / 3.03GB | 0B / 0B | 13 |
| 28 | 1793216992 | mtusi2026lab3-postgres-1 | 163.07% | 438MiB / 1GiB | 42.78% | 1.37GB / 2.83GB | 122MB / 12.2GB | 38 |
| 29 | 1793216992 | mtusi2026lab3-lb-1 | 40.22% | 70.25MiB / 128MiB | 54.88% | 5.09GB / 5.31GB | 0B / 0B | 2 |
| 30 | 1793216992 | mtusi2026lab3-valkey-1 | 8.73% | 11.37MiB / 128MiB | 8.88% | 251MB / 277MB | 0B / 1.71MB | 6 |
| 31 | 1793216996 | mtusi2026lab3-k6-run-00cb49b20674 | 60.15% | 638.2MiB / 1GiB | 62.33% | 259MB / 37.7MB | 184kB / 0B | 9 |
| 32 | 1793216996 | mtusi2026lab3-api-1 | 191.21% | 209.7MiB / 1GiB | 20.48% | 2.17GB / 3.06GB | 0B / 0B | 14 |
| 33 | 1793216996 | mtusi2026lab3-api-2 | 189.67% | 204.2MiB / 1GiB | 19.94% | 2.17GB / 3.06GB | 0B / 0B | 13 |
| 34 | 1793216996 | mtusi2026lab3-postgres-1 | 174.25% | 436.5MiB / 1GiB | 42.62% | 1.39GB / 2.87GB | 227MB / 12.3GB | 38 |
| 35 | 1793216996 | mtusi2026lab3-lb-1 | 40.85% | 70.3MiB / 128MiB | 54.92% | 5.15GB / 5.38GB | 0B / 0B | 2 |
| 36 | 1793216996 | mtusi2026lab3-valkey-1 | 9.39% | 11.37MiB / 128MiB | 8.88% | 253MB / 279MB | 0B / 1.71MB | 6 |
| 37 | 1793217000 | mtusi2026lab3-k6-run-00cb49b20674 | 83.16% | 646.2MiB / 1GiB | 63.10% | 310MB / 44.9MB | 184kB / 0B | 9 |
| 38 | 1793217000 | mtusi2026lab3-api-1 | 189.97% | 209.6MiB / 1GiB | 20.47% | 2.2GB / 3.1GB | 0B / 0B | 13 |
| 39 | 1793217000 | mtusi2026lab3-api-2 | 189.47% | 204.2MiB / 1GiB | 19.94% | 2.2GB / 3.1GB | 0B / 0B | 13 |
| 40 | 1793217000 | mtusi2026lab3-postgres-1 | 173.74% | 436.7MiB / 1GiB | 42.64% | 1.41GB / 2.91GB | 227MB / 12.4GB | 38 |
| 41 | 1793217000 | mtusi2026lab3-lb-1 | 40.98% | 70.27MiB / 128MiB | 54.90% | 5.21GB / 5.44GB | 0B / 0B | 2 |
| 42 | 1793217000 | mtusi2026lab3-valkey-1 | 9.56% | 11.37MiB / 128MiB | 8.88% | 256MB / 283MB | 0B / 1.73MB | 6 |
| 43 | 1793217003 | mtusi2026lab3-k6-run-00cb49b20674 | 83.74% | 650.8MiB / 1GiB | 63.55% | 353MB / 50.8MB | 184kB / 0B | 9 |
| 44 | 1793217003 | mtusi2026lab3-api-1 | 193.66% | 209.4MiB / 1GiB | 20.44% | 2.22GB / 3.13GB | 0B / 0B | 13 |
| 45 | 1793217003 | mtusi2026lab3-api-2 | 194.01% | 204.3MiB / 1GiB | 19.95% | 2.22GB / 3.13GB | 0B / 0B | 13 |
| 46 | 1793217003 | mtusi2026lab3-postgres-1 | 175.88% | 437.3MiB / 1GiB | 42.71% | 1.42GB / 2.93GB | 227MB / 12.5GB | 38 |
| 47 | 1793217003 | mtusi2026lab3-lb-1 | 42.16% | 70.28MiB / 128MiB | 54.91% | 5.26GB / 5.49GB | 0B / 0B | 2 |
| 48 | 1793217003 | mtusi2026lab3-valkey-1 | 9.55% | 11.38MiB / 128MiB | 8.89% | 259MB / 286MB | 0B / 1.73MB | 6 |
| 49 | 1793217006 | mtusi2026lab3-k6-run-00cb49b20674 | 59.63% | 662.1MiB / 1GiB | 64.66% | 404MB / 58MB | 184kB / 0B | 9 |
| 50 | 1793217006 | mtusi2026lab3-api-1 | 189.24% | 209.4MiB / 1GiB | 20.45% | 2.24GB / 3.16GB | 0B / 0B | 13 |
| 51 | 1793217006 | mtusi2026lab3-api-2 | 188.73% | 204.9MiB / 1GiB | 20.01% | 2.24GB / 3.17GB | 0B / 0B | 13 |
| 52 | 1793217006 | mtusi2026lab3-postgres-1 | 173.33% | 436.8MiB / 1GiB | 42.66% | 1.44GB / 2.97GB | 227MB / 12.6GB | 38 |
| 53 | 1793217006 | mtusi2026lab3-lb-1 | 39.45% | 70.3MiB / 128MiB | 54.92% | 5.3GB / 5.54GB | 0B / 0B | 2 |
| 54 | 1793217006 | mtusi2026lab3-valkey-1 | 8.80% | 11.37MiB / 128MiB | 8.88% | 262MB / 290MB | 0B / 1.73MB | 6 |
| 55 | 1793217010 | mtusi2026lab3-k6-run-00cb49b20674 | 82.43% | 662.3MiB / 1GiB | 64.67% | 452MB / 64.8MB | 184kB / 0B | 9 |
| 56 | 1793217010 | mtusi2026lab3-api-1 | 190.38% | 209.4MiB / 1GiB | 20.45% | 2.26GB / 3.19GB | 0B / 0B | 13 |
| 57 | 1793217010 | mtusi2026lab3-api-2 | 190.48% | 205.2MiB / 1GiB | 20.04% | 2.27GB / 3.2GB | 0B / 0B | 13 |
| 58 | 1793217010 | mtusi2026lab3-postgres-1 | 173.65% | 436.8MiB / 1GiB | 42.66% | 1.46GB / 3GB | 227MB / 12.7GB | 38 |
| 59 | 1793217010 | mtusi2026lab3-lb-1 | 41.05% | 70.61MiB / 128MiB | 55.16% | 5.38GB / 5.62GB | 0B / 0B | 2 |
| 60 | 1793217010 | mtusi2026lab3-valkey-1 | 8.90% | 11.37MiB / 128MiB | 8.88% | 265MB / 293MB | 0B / 1.73MB | 6 |
| 61 | 1793217014 | mtusi2026lab3-k6-run-00cb49b20674 | 82.40% | 674.9MiB / 1GiB | 65.91% | 491MB / 70.4MB | 184kB / 0B | 9 |
| 62 | 1793217014 | mtusi2026lab3-api-1 | 184.79% | 209.7MiB / 1GiB | 20.47% | 2.29GB / 3.22GB | 0B / 0B | 13 |
| 63 | 1793217014 | mtusi2026lab3-api-2 | 189.34% | 204.9MiB / 1GiB | 20.01% | 2.29GB / 3.23GB | 0B / 0B | 13 |
| 64 | 1793217014 | mtusi2026lab3-postgres-1 | 170.72% | 437MiB / 1GiB | 42.67% | 1.47GB / 3.03GB | 227MB / 12.8GB | 38 |
| 65 | 1793217014 | mtusi2026lab3-lb-1 | 40.88% | 70.55MiB / 128MiB | 55.12% | 5.42GB / 5.67GB | 0B / 0B | 2 |
| 66 | 1793217014 | mtusi2026lab3-valkey-1 | 9.49% | 11.63MiB / 128MiB | 9.09% | 267MB / 295MB | 0B / 1.73MB | 6 |
| 67 | 1793217017 | mtusi2026lab3-k6-run-00cb49b20674 | 73.44% | 675MiB / 1GiB | 65.91% | 539MB / 77.1MB | 184kB / 0B | 9 |
| 68 | 1793217017 | mtusi2026lab3-api-1 | 162.68% | 210.8MiB / 1GiB | 20.59% | 2.31GB / 3.26GB | 0B / 0B | 13 |
| 69 | 1793217017 | mtusi2026lab3-api-2 | 156.11% | 205.4MiB / 1GiB | 20.06% | 2.31GB / 3.26GB | 0B / 0B | 13 |
| 70 | 1793217017 | mtusi2026lab3-postgres-1 | 151.23% | 436.6MiB / 1GiB | 42.64% | 1.48GB / 3.06GB | 227MB / 13GB | 38 |
| 71 | 1793217017 | mtusi2026lab3-lb-1 | 35.99% | 70.29MiB / 128MiB | 54.91% | 5.48GB / 5.73GB | 0B / 0B | 2 |
| 72 | 1793217017 | mtusi2026lab3-valkey-1 | 8.72% | 11.37MiB / 128MiB | 8.88% | 269MB / 298MB | 0B / 1.73MB | 6 |