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
4.9 KiB
4.9 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215650 | mtusi2026lab3-api-1 | 118.82% | 327.9MiB / 2GiB | 16.01% | 1.37GB / 1.93GB | 0B / 0B | 25 |
| 3 | 1793215650 | mtusi2026lab3-postgres-1 | 60.51% | 369.2MiB / 1GiB | 36.06% | 442MB / 909MB | 0B / 4.4GB | 38 |
| 4 | 1793215650 | mtusi2026lab3-lb-1 | 17.79% | 25.84MiB / 128MiB | 20.19% | 1.63GB / 1.7GB | 0B / 0B | 2 |
| 5 | 1793215650 | mtusi2026lab3-valkey-1 | 4.05% | 11.29MiB / 128MiB | 8.82% | 81.2MB / 88.9MB | 0B / 1.09MB | 6 |
| 6 | 1793215654 | mtusi2026lab3-k6-run-5280dd3bd61c | 29.03% | 127MiB / 1GiB | 12.40% | 26.8MB / 4.44MB | 0B / 0B | 9 |
| 7 | 1793215654 | mtusi2026lab3-api-1 | 152.16% | 339.2MiB / 2GiB | 16.56% | 1.4GB / 1.97GB | 0B / 0B | 26 |
| 8 | 1793215654 | mtusi2026lab3-postgres-1 | 60.19% | 371.4MiB / 1GiB | 36.27% | 447MB / 919MB | 0B / 4.44GB | 38 |
| 9 | 1793215654 | mtusi2026lab3-lb-1 | 17.35% | 25.32MiB / 128MiB | 19.78% | 1.66GB / 1.72GB | 0B / 0B | 2 |
| 10 | 1793215654 | mtusi2026lab3-valkey-1 | 3.53% | 11.29MiB / 128MiB | 8.82% | 82.3MB / 90.2MB | 0B / 1.09MB | 6 |
| 11 | 1793215658 | mtusi2026lab3-k6-run-5280dd3bd61c | 31.46% | 127.3MiB / 1GiB | 12.43% | 43.3MB / 7.02MB | 0B / 0B | 9 |
| 12 | 1793215658 | mtusi2026lab3-api-1 | 142.69% | 327.9MiB / 2GiB | 16.01% | 1.41GB / 1.99GB | 0B / 0B | 25 |
| 13 | 1793215658 | mtusi2026lab3-postgres-1 | 59.48% | 371.2MiB / 1GiB | 36.25% | 454MB / 934MB | 0B / 4.51GB | 37 |
| 14 | 1793215658 | mtusi2026lab3-lb-1 | 16.72% | 25.59MiB / 128MiB | 20.00% | 1.68GB / 1.74GB | 0B / 0B | 2 |
| 15 | 1793215658 | mtusi2026lab3-valkey-1 | 3.98% | 11.53MiB / 128MiB | 9.01% | 83.3MB / 91.3MB | 0B / 1.09MB | 6 |
| 16 | 1793215661 | mtusi2026lab3-k6-run-5280dd3bd61c | 28.23% | 142.5MiB / 1GiB | 13.92% | 62.8MB / 10.2MB | 0B / 0B | 9 |
| 17 | 1793215661 | mtusi2026lab3-api-1 | 136.66% | 327.7MiB / 2GiB | 16.00% | 1.43GB / 2.02GB | 0B / 0B | 25 |
| 18 | 1793215661 | mtusi2026lab3-postgres-1 | 56.91% | 374.3MiB / 1GiB | 36.55% | 460MB / 948MB | 0B / 4.56GB | 37 |
| 19 | 1793215661 | mtusi2026lab3-lb-1 | 17.63% | 25.86MiB / 128MiB | 20.20% | 1.7GB / 1.77GB | 0B / 0B | 2 |
| 20 | 1793215661 | mtusi2026lab3-valkey-1 | 3.48% | 11.3MiB / 128MiB | 8.83% | 84.2MB / 92.3MB | 0B / 1.09MB | 6 |
| 21 | 1793215664 | mtusi2026lab3-k6-run-5280dd3bd61c | 33.20% | 143.9MiB / 1GiB | 14.05% | 82.4MB / 13.4MB | 0B / 0B | 9 |
| 22 | 1793215664 | mtusi2026lab3-api-1 | 154.79% | 327.7MiB / 2GiB | 16.00% | 1.45GB / 2.05GB | 0B / 0B | 25 |
| 23 | 1793215664 | mtusi2026lab3-postgres-1 | 61.13% | 374.2MiB / 1GiB | 36.54% | 467MB / 961MB | 0B / 4.62GB | 36 |
| 24 | 1793215664 | mtusi2026lab3-lb-1 | 17.44% | 25.89MiB / 128MiB | 20.22% | 1.72GB / 1.79GB | 0B / 0B | 2 |
| 25 | 1793215664 | mtusi2026lab3-valkey-1 | 3.42% | 11.29MiB / 128MiB | 8.82% | 85.7MB / 93.9MB | 0B / 1.09MB | 6 |
| 26 | 1793215668 | mtusi2026lab3-k6-run-5280dd3bd61c | 29.33% | 143.9MiB / 1GiB | 14.05% | 101MB / 16.6MB | 0B / 0B | 9 |
| 27 | 1793215668 | mtusi2026lab3-api-1 | 142.79% | 327.7MiB / 2GiB | 16.00% | 1.47GB / 2.08GB | 0B / 0B | 25 |
| 28 | 1793215668 | mtusi2026lab3-postgres-1 | 61.09% | 377MiB / 1GiB | 36.81% | 473MB / 974MB | 0B / 4.69GB | 36 |
| 29 | 1793215668 | mtusi2026lab3-lb-1 | 17.44% | 25.11MiB / 128MiB | 19.61% | 1.75GB / 1.82GB | 0B / 0B | 2 |
| 30 | 1793215668 | mtusi2026lab3-valkey-1 | 4.02% | 11.29MiB / 128MiB | 8.82% | 86.6MB / 94.9MB | 0B / 1.09MB | 6 |
| 31 | 1793215672 | mtusi2026lab3-k6-run-5280dd3bd61c | 29.93% | 144MiB / 1GiB | 14.06% | 121MB / 19.7MB | 0B / 0B | 9 |
| 32 | 1793215672 | mtusi2026lab3-api-1 | 149.21% | 328.2MiB / 2GiB | 16.02% | 1.49GB / 2.11GB | 0B / 0B | 25 |
| 33 | 1793215672 | mtusi2026lab3-postgres-1 | 63.36% | 376.3MiB / 1GiB | 36.75% | 480MB / 988MB | 0B / 4.74GB | 35 |
| 34 | 1793215672 | mtusi2026lab3-lb-1 | 17.54% | 25.36MiB / 128MiB | 19.81% | 1.77GB / 1.84GB | 0B / 0B | 2 |
| 35 | 1793215672 | mtusi2026lab3-valkey-1 | 4.07% | 11.3MiB / 128MiB | 8.83% | 87.7MB / 96.2MB | 0B / 1.11MB | 6 |
| 36 | 1793215675 | mtusi2026lab3-k6-run-5280dd3bd61c | 33.37% | 144MiB / 1GiB | 14.06% | 141MB / 22.9MB | 0B / 0B | 9 |
| 37 | 1793215675 | mtusi2026lab3-api-1 | 158.40% | 327.7MiB / 2GiB | 16.00% | 1.51GB / 2.14GB | 0B / 0B | 25 |
| 38 | 1793215675 | mtusi2026lab3-postgres-1 | 60.93% | 378.6MiB / 1GiB | 36.98% | 486MB / 1GB | 0B / 4.8GB | 35 |
| 39 | 1793215675 | mtusi2026lab3-lb-1 | 17.25% | 25.56MiB / 128MiB | 19.97% | 1.8GB / 1.87GB | 0B / 0B | 2 |
| 40 | 1793215675 | mtusi2026lab3-valkey-1 | 3.47% | 11.29MiB / 128MiB | 8.82% | 88.9MB / 97.5MB | 0B / 1.11MB | 6 |
| 41 | 1793215679 | mtusi2026lab3-k6-run-5280dd3bd61c | 28.60% | 144MiB / 1GiB | 14.06% | 161MB / 26.1MB | 0B / 0B | 9 |
| 42 | 1793215679 | mtusi2026lab3-api-1 | 135.94% | 327.7MiB / 2GiB | 16.00% | 1.53GB / 2.16GB | 0B / 0B | 25 |
| 43 | 1793215679 | mtusi2026lab3-postgres-1 | 58.17% | 388.6MiB / 1GiB | 37.95% | 493MB / 1.01GB | 0B / 4.89GB | 37 |
| 44 | 1793215679 | mtusi2026lab3-lb-1 | 17.03% | 25.55MiB / 128MiB | 19.96% | 1.82GB / 1.89GB | 0B / 0B | 2 |
| 45 | 1793215679 | mtusi2026lab3-valkey-1 | 3.35% | 11.29MiB / 128MiB | 8.82% | 90.1MB / 98.8MB | 0B / 1.11MB | 6 |
| 46 | 1793215683 | mtusi2026lab3-k6-run-5280dd3bd61c | 27.75% | 146MiB / 1GiB | 14.26% | 177MB / 28.7MB | 0B / 0B | 9 |
| 47 | 1793215683 | mtusi2026lab3-api-1 | 128.41% | 327.8MiB / 2GiB | 16.00% | 1.55GB / 2.19GB | 0B / 0B | 25 |
| 48 | 1793215683 | mtusi2026lab3-postgres-1 | 52.63% | 387.4MiB / 1GiB | 37.83% | 498MB / 1.03GB | 0B / 4.94GB | 36 |
| 49 | 1793215683 | mtusi2026lab3-lb-1 | 16.17% | 25.54MiB / 128MiB | 19.96% | 1.84GB / 1.92GB | 0B / 0B | 2 |
| 50 | 1793215683 | mtusi2026lab3-valkey-1 | 3.07% | 11.29MiB / 128MiB | 8.82% | 91.4MB / 100MB | 0B / 1.11MB | 6 |
| 51 | 1793215686 | mtusi2026lab3-k6-run-5280dd3bd61c | 29.42% | 152.1MiB / 1GiB | 14.85% | 197MB / 31.8MB | 0B / 0B | 9 |
| 52 | 1793215686 | mtusi2026lab3-api-1 | 157.71% | 327.6MiB / 2GiB | 16.00% | 1.57GB / 2.22GB | 0B / 0B | 25 |
| 53 | 1793215686 | mtusi2026lab3-postgres-1 | 77.70% | 383.9MiB / 1GiB | 37.49% | 505MB / 1.04GB | 0B / 5.01GB | 35 |
| 54 | 1793215686 | mtusi2026lab3-lb-1 | 17.31% | 25.58MiB / 128MiB | 19.99% | 1.87GB / 1.94GB | 0B / 0B | 2 |
| 55 | 1793215686 | mtusi2026lab3-valkey-1 | 4.14% | 11.29MiB / 128MiB | 8.82% | 92.3MB / 101MB | 0B / 1.11MB | 6 |