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
5.4 KiB
5.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215744 | mtusi2026lab3-api-1 | 210.25% | 328MiB / 2GiB | 16.02% | 1.93GB / 2.73GB | 0B / 0B | 25 |
| 3 | 1793215744 | mtusi2026lab3-postgres-1 | 87.42% | 430.7MiB / 1GiB | 42.06% | 620MB / 1.28GB | 1.39MB / 6.07GB | 38 |
| 4 | 1793215744 | mtusi2026lab3-lb-1 | 25.38% | 27.82MiB / 128MiB | 21.74% | 2.3GB / 2.39GB | 0B / 0B | 2 |
| 5 | 1793215744 | mtusi2026lab3-valkey-1 | 5.40% | 11.57MiB / 128MiB | 9.04% | 114MB / 125MB | 0B / 1.29MB | 6 |
| 6 | 1793215747 | mtusi2026lab3-k6-run-e2a4e2852810 | 49.73% | 185.1MiB / 1GiB | 18.08% | 39.1MB / 6.51MB | 0B / 0B | 9 |
| 7 | 1793215747 | mtusi2026lab3-api-1 | 241.80% | 328MiB / 2GiB | 16.02% | 1.96GB / 2.77GB | 0B / 0B | 25 |
| 8 | 1793215747 | mtusi2026lab3-postgres-1 | 99.41% | 431.1MiB / 1GiB | 42.10% | 630MB / 1.3GB | 11.7MB / 6.16GB | 38 |
| 9 | 1793215747 | mtusi2026lab3-lb-1 | 26.07% | 26.09MiB / 128MiB | 20.38% | 2.33GB / 2.42GB | 0B / 0B | 2 |
| 10 | 1793215747 | mtusi2026lab3-valkey-1 | 5.46% | 11.34MiB / 128MiB | 8.86% | 115MB / 126MB | 0B / 1.29MB | 6 |
| 11 | 1793215751 | mtusi2026lab3-k6-run-e2a4e2852810 | 40.64% | 185.3MiB / 1GiB | 18.09% | 68MB / 11.3MB | 0B / 0B | 9 |
| 12 | 1793215751 | mtusi2026lab3-api-1 | 210.19% | 328.1MiB / 2GiB | 16.02% | 1.98GB / 2.8GB | 0B / 0B | 25 |
| 13 | 1793215751 | mtusi2026lab3-postgres-1 | 86.59% | 427.8MiB / 1GiB | 41.78% | 640MB / 1.32GB | 11.7MB / 6.24GB | 37 |
| 14 | 1793215751 | mtusi2026lab3-lb-1 | 24.04% | 25.5MiB / 128MiB | 19.92% | 2.37GB / 2.46GB | 0B / 0B | 2 |
| 15 | 1793215751 | mtusi2026lab3-valkey-1 | 4.67% | 11.33MiB / 128MiB | 8.85% | 117MB / 129MB | 0B / 1.29MB | 6 |
| 16 | 1793215755 | mtusi2026lab3-k6-run-e2a4e2852810 | 46.32% | 209.3MiB / 1GiB | 20.44% | 93.5MB / 15.5MB | 0B / 0B | 9 |
| 17 | 1793215755 | mtusi2026lab3-api-1 | 210.23% | 327.8MiB / 2GiB | 16.00% | 2.02GB / 2.85GB | 0B / 0B | 25 |
| 18 | 1793215755 | mtusi2026lab3-postgres-1 | 89.03% | 431.7MiB / 1GiB | 42.16% | 648MB / 1.34GB | 11.7MB / 6.33GB | 38 |
| 19 | 1793215755 | mtusi2026lab3-lb-1 | 25.55% | 26.89MiB / 128MiB | 21.01% | 2.4GB / 2.49GB | 0B / 0B | 2 |
| 20 | 1793215755 | mtusi2026lab3-valkey-1 | 5.40% | 11.33MiB / 128MiB | 8.85% | 119MB / 130MB | 0B / 1.29MB | 6 |
| 21 | 1793215758 | mtusi2026lab3-k6-run-e2a4e2852810 | 43.20% | 212.2MiB / 1GiB | 20.72% | 123MB / 20.3MB | 0B / 0B | 9 |
| 22 | 1793215758 | mtusi2026lab3-api-1 | 225.44% | 327.8MiB / 2GiB | 16.00% | 2.05GB / 2.89GB | 0B / 0B | 25 |
| 23 | 1793215758 | mtusi2026lab3-postgres-1 | 93.64% | 431.7MiB / 1GiB | 42.15% | 658MB / 1.36GB | 11.7MB / 6.42GB | 38 |
| 24 | 1793215758 | mtusi2026lab3-lb-1 | 25.11% | 25.79MiB / 128MiB | 20.15% | 2.43GB / 2.53GB | 0B / 0B | 2 |
| 25 | 1793215758 | mtusi2026lab3-valkey-1 | 4.77% | 11.33MiB / 128MiB | 8.85% | 120MB / 132MB | 0B / 1.29MB | 6 |
| 26 | 1793215762 | mtusi2026lab3-k6-run-e2a4e2852810 | 41.51% | 212.2MiB / 1GiB | 20.72% | 152MB / 25MB | 0B / 0B | 9 |
| 27 | 1793215762 | mtusi2026lab3-api-1 | 207.93% | 328.3MiB / 2GiB | 16.03% | 2.08GB / 2.94GB | 0B / 0B | 25 |
| 28 | 1793215762 | mtusi2026lab3-postgres-1 | 87.45% | 428.6MiB / 1GiB | 41.85% | 668MB / 1.38GB | 11.7MB / 6.52GB | 37 |
| 29 | 1793215762 | mtusi2026lab3-lb-1 | 24.73% | 25.23MiB / 128MiB | 19.71% | 2.47GB / 2.57GB | 0B / 0B | 2 |
| 30 | 1793215762 | mtusi2026lab3-valkey-1 | 5.35% | 11.33MiB / 128MiB | 8.85% | 122MB / 134MB | 0B / 1.29MB | 6 |
| 31 | 1793215765 | mtusi2026lab3-k6-run-e2a4e2852810 | 41.48% | 212.2MiB / 1GiB | 20.72% | 182MB / 29.8MB | 0B / 0B | 9 |
| 32 | 1793215765 | mtusi2026lab3-api-1 | 210.17% | 328MiB / 2GiB | 16.02% | 2.11GB / 2.98GB | 0B / 0B | 25 |
| 33 | 1793215765 | mtusi2026lab3-postgres-1 | 88.97% | 423.6MiB / 1GiB | 41.36% | 675MB / 1.39GB | 11.7MB / 6.58GB | 36 |
| 34 | 1793215765 | mtusi2026lab3-lb-1 | 24.25% | 25.34MiB / 128MiB | 19.79% | 2.51GB / 2.61GB | 0B / 0B | 2 |
| 35 | 1793215765 | mtusi2026lab3-valkey-1 | 4.81% | 11.33MiB / 128MiB | 8.85% | 124MB / 136MB | 0B / 1.31MB | 6 |
| 36 | 1793215769 | mtusi2026lab3-k6-run-e2a4e2852810 | 48.93% | 212.2MiB / 1GiB | 20.72% | 206MB / 33.7MB | 0B / 0B | 9 |
| 37 | 1793215769 | mtusi2026lab3-api-1 | 220.65% | 328.1MiB / 2GiB | 16.02% | 2.14GB / 3.01GB | 0B / 0B | 25 |
| 38 | 1793215769 | mtusi2026lab3-postgres-1 | 93.37% | 431MiB / 1GiB | 42.09% | 686MB / 1.41GB | 11.8MB / 6.69GB | 38 |
| 39 | 1793215769 | mtusi2026lab3-lb-1 | 25.59% | 26.32MiB / 128MiB | 20.56% | 2.54GB / 2.64GB | 0B / 0B | 2 |
| 40 | 1793215769 | mtusi2026lab3-valkey-1 | 5.69% | 11.33MiB / 128MiB | 8.85% | 126MB / 138MB | 0B / 1.31MB | 6 |
| 41 | 1793215772 | mtusi2026lab3-k6-run-e2a4e2852810 | 42.23% | 216.3MiB / 1GiB | 21.13% | 235MB / 38.5MB | 0B / 0B | 9 |
| 42 | 1793215772 | mtusi2026lab3-api-1 | 211.01% | 328MiB / 2GiB | 16.02% | 2.17GB / 3.06GB | 0B / 0B | 25 |
| 43 | 1793215772 | mtusi2026lab3-postgres-1 | 90.19% | 431.2MiB / 1GiB | 42.11% | 696MB / 1.43GB | 11.8MB / 6.78GB | 38 |
| 44 | 1793215772 | mtusi2026lab3-lb-1 | 25.45% | 24.98MiB / 128MiB | 19.52% | 2.57GB / 2.68GB | 0B / 0B | 2 |
| 45 | 1793215772 | mtusi2026lab3-valkey-1 | 4.94% | 11.34MiB / 128MiB | 8.86% | 127MB / 139MB | 0B / 1.31MB | 6 |
| 46 | 1793215776 | mtusi2026lab3-k6-run-e2a4e2852810 | 42.43% | 216.4MiB / 1GiB | 21.13% | 264MB / 43.3MB | 0B / 0B | 9 |
| 47 | 1793215776 | mtusi2026lab3-api-1 | 211.24% | 328.8MiB / 2GiB | 16.06% | 2.2GB / 3.1GB | 0B / 0B | 25 |
| 48 | 1793215776 | mtusi2026lab3-postgres-1 | 89.38% | 428.2MiB / 1GiB | 41.82% | 705MB / 1.45GB | 11.8MB / 6.91GB | 37 |
| 49 | 1793215776 | mtusi2026lab3-lb-1 | 25.48% | 28.77MiB / 128MiB | 22.48% | 2.61GB / 2.71GB | 0B / 0B | 2 |
| 50 | 1793215776 | mtusi2026lab3-valkey-1 | 5.99% | 11.33MiB / 128MiB | 8.85% | 129MB / 141MB | 0B / 1.31MB | 6 |
| 51 | 1793215779 | mtusi2026lab3-k6-run-e2a4e2852810 | 41.50% | 224.5MiB / 1GiB | 21.92% | 289MB / 47.4MB | 0B / 0B | 9 |
| 52 | 1793215779 | mtusi2026lab3-api-1 | 208.72% | 329MiB / 2GiB | 16.06% | 2.22GB / 3.14GB | 0B / 0B | 25 |
| 53 | 1793215779 | mtusi2026lab3-postgres-1 | 87.40% | 416.7MiB / 1GiB | 40.69% | 714MB / 1.47GB | 11.8MB / 6.99GB | 34 |
| 54 | 1793215779 | mtusi2026lab3-lb-1 | 24.75% | 27.2MiB / 128MiB | 21.25% | 2.64GB / 2.75GB | 0B / 0B | 2 |
| 55 | 1793215779 | mtusi2026lab3-valkey-1 | 5.41% | 11.33MiB / 128MiB | 8.85% | 131MB / 144MB | 0B / 1.31MB | 6 |
| 56 | 1793215783 | mtusi2026lab3-k6-run-e2a4e2852810 | 41.05% | 224.5MiB / 1GiB | 21.92% | 317MB / 51.9MB | 0B / 0B | 9 |
| 57 | 1793215783 | mtusi2026lab3-api-1 | 173.21% | 328.5MiB / 2GiB | 16.04% | 2.25GB / 3.18GB | 0B / 0B | 25 |
| 58 | 1793215783 | mtusi2026lab3-postgres-1 | 74.14% | 431MiB / 1GiB | 42.09% | 723MB / 1.49GB | 11.8MB / 7.08GB | 38 |
| 59 | 1793215783 | mtusi2026lab3-lb-1 | 20.76% | 24.98MiB / 128MiB | 19.52% | 2.68GB / 2.78GB | 0B / 0B | 2 |
| 60 | 1793215783 | mtusi2026lab3-valkey-1 | 4.82% | 11.33MiB / 128MiB | 8.85% | 132MB / 145MB | 0B / 1.31MB | 6 |