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.9 KiB
5.9 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216650 | mtusi2026lab3-api-1 | 83.61% | 189.5MiB / 1GiB | 18.51% | 690MB / 972MB | 0B / 0B | 13 |
| 3 | 1793216650 | mtusi2026lab3-api-2 | 60.31% | 193.9MiB / 1GiB | 18.94% | 688MB / 970MB | 0B / 0B | 14 |
| 4 | 1793216650 | mtusi2026lab3-postgres-1 | 55.94% | 371.8MiB / 1GiB | 36.31% | 443MB / 913MB | 86kB / 4.43GB | 38 |
| 5 | 1793216650 | mtusi2026lab3-lb-1 | 16.54% | 16.7MiB / 128MiB | 13.04% | 1.64GB / 1.7GB | 0B / 0B | 2 |
| 6 | 1793216650 | mtusi2026lab3-valkey-1 | 3.87% | 11.35MiB / 128MiB | 8.87% | 81.1MB / 89.2MB | 0B / 1.11MB | 6 |
| 7 | 1793216654 | mtusi2026lab3-k6-run-ba08f11e5417 | 28.98% | 127MiB / 1GiB | 12.41% | 27.1MB / 4.45MB | 0B / 0B | 9 |
| 8 | 1793216654 | mtusi2026lab3-api-1 | 74.82% | 189.3MiB / 1GiB | 18.48% | 700MB / 986MB | 0B / 0B | 13 |
| 9 | 1793216654 | mtusi2026lab3-api-2 | 73.97% | 186.2MiB / 1GiB | 18.18% | 701MB / 989MB | 0B / 0B | 13 |
| 10 | 1793216654 | mtusi2026lab3-postgres-1 | 57.91% | 374.7MiB / 1GiB | 36.59% | 450MB / 927MB | 86kB / 4.48GB | 38 |
| 11 | 1793216654 | mtusi2026lab3-lb-1 | 16.58% | 16.17MiB / 128MiB | 12.63% | 1.66GB / 1.73GB | 0B / 0B | 2 |
| 12 | 1793216654 | mtusi2026lab3-valkey-1 | 3.65% | 11.35MiB / 128MiB | 8.87% | 82MB / 90.2MB | 0B / 1.11MB | 6 |
| 13 | 1793216658 | mtusi2026lab3-k6-run-ba08f11e5417 | 35.09% | 127.8MiB / 1GiB | 12.48% | 46.3MB / 7.61MB | 0B / 0B | 9 |
| 14 | 1793216658 | mtusi2026lab3-api-1 | 75.75% | 189.2MiB / 1GiB | 18.48% | 707MB / 996MB | 0B / 0B | 13 |
| 15 | 1793216658 | mtusi2026lab3-api-2 | 88.03% | 186.2MiB / 1GiB | 18.18% | 711MB / 1GB | 0B / 0B | 13 |
| 16 | 1793216658 | mtusi2026lab3-postgres-1 | 71.21% | 379.1MiB / 1GiB | 37.02% | 456MB / 940MB | 86kB / 4.55GB | 38 |
| 17 | 1793216658 | mtusi2026lab3-lb-1 | 18.26% | 15.14MiB / 128MiB | 11.83% | 1.69GB / 1.75GB | 0B / 0B | 2 |
| 18 | 1793216658 | mtusi2026lab3-valkey-1 | 4.58% | 11.36MiB / 128MiB | 8.88% | 83.5MB / 91.8MB | 0B / 1.11MB | 6 |
| 19 | 1793216661 | mtusi2026lab3-k6-run-ba08f11e5417 | 33.03% | 142MiB / 1GiB | 13.87% | 65.9MB / 10.8MB | 0B / 0B | 9 |
| 20 | 1793216661 | mtusi2026lab3-api-1 | 76.45% | 189.2MiB / 1GiB | 18.48% | 720MB / 1.02GB | 0B / 0B | 13 |
| 21 | 1793216661 | mtusi2026lab3-api-2 | 75.90% | 186.2MiB / 1GiB | 18.18% | 721MB / 1.02GB | 0B / 0B | 13 |
| 22 | 1793216661 | mtusi2026lab3-postgres-1 | 60.82% | 374.8MiB / 1GiB | 36.61% | 463MB / 953MB | 86kB / 4.61GB | 36 |
| 23 | 1793216661 | mtusi2026lab3-lb-1 | 16.61% | 15.35MiB / 128MiB | 11.99% | 1.71GB / 1.78GB | 0B / 0B | 2 |
| 24 | 1793216661 | mtusi2026lab3-valkey-1 | 4.16% | 11.35MiB / 128MiB | 8.87% | 84.3MB / 92.8MB | 0B / 1.11MB | 6 |
| 25 | 1793216665 | mtusi2026lab3-k6-run-ba08f11e5417 | 30.62% | 144.4MiB / 1GiB | 14.10% | 85.5MB / 14MB | 0B / 0B | 9 |
| 26 | 1793216665 | mtusi2026lab3-api-1 | 91.72% | 189.2MiB / 1GiB | 18.48% | 730MB / 1.03GB | 0B / 0B | 13 |
| 27 | 1793216665 | mtusi2026lab3-api-2 | 91.71% | 186.2MiB / 1GiB | 18.18% | 731MB / 1.03GB | 0B / 0B | 13 |
| 28 | 1793216665 | mtusi2026lab3-postgres-1 | 64.70% | 380.9MiB / 1GiB | 37.20% | 469MB / 967MB | 86kB / 4.68GB | 37 |
| 29 | 1793216665 | mtusi2026lab3-lb-1 | 17.03% | 15.06MiB / 128MiB | 11.76% | 1.73GB / 1.8GB | 0B / 0B | 2 |
| 30 | 1793216665 | mtusi2026lab3-valkey-1 | 4.04% | 11.36MiB / 128MiB | 8.87% | 85.5MB / 94.1MB | 0B / 1.11MB | 6 |
| 31 | 1793216669 | mtusi2026lab3-k6-run-ba08f11e5417 | 29.20% | 144.4MiB / 1GiB | 14.10% | 105MB / 17.1MB | 0B / 0B | 9 |
| 32 | 1793216669 | mtusi2026lab3-api-1 | 80.19% | 189.2MiB / 1GiB | 18.48% | 740MB / 1.04GB | 0B / 0B | 13 |
| 33 | 1793216669 | mtusi2026lab3-api-2 | 80.49% | 186.1MiB / 1GiB | 18.18% | 741MB / 1.05GB | 0B / 0B | 13 |
| 34 | 1793216669 | mtusi2026lab3-postgres-1 | 62.94% | 383.9MiB / 1GiB | 37.49% | 476MB / 980MB | 86kB / 4.73GB | 37 |
| 35 | 1793216669 | mtusi2026lab3-lb-1 | 17.19% | 15.03MiB / 128MiB | 11.74% | 1.76GB / 1.83GB | 0B / 0B | 2 |
| 36 | 1793216669 | mtusi2026lab3-valkey-1 | 4.19% | 11.59MiB / 128MiB | 9.05% | 86.7MB / 95.4MB | 0B / 1.11MB | 6 |
| 37 | 1793216672 | mtusi2026lab3-k6-run-ba08f11e5417 | 30.61% | 137.8MiB / 1GiB | 13.46% | 121MB / 19.7MB | 0B / 0B | 9 |
| 38 | 1793216672 | mtusi2026lab3-api-1 | 80.92% | 189.5MiB / 1GiB | 18.50% | 749MB / 1.06GB | 0B / 0B | 13 |
| 39 | 1793216672 | mtusi2026lab3-api-2 | 81.34% | 186.4MiB / 1GiB | 18.20% | 750MB / 1.06GB | 0B / 0B | 13 |
| 40 | 1793216672 | mtusi2026lab3-postgres-1 | 64.99% | 386.4MiB / 1GiB | 37.73% | 481MB / 991MB | 86kB / 4.78GB | 37 |
| 41 | 1793216672 | mtusi2026lab3-lb-1 | 17.49% | 15.31MiB / 128MiB | 11.96% | 1.78GB / 1.85GB | 0B / 0B | 2 |
| 42 | 1793216672 | mtusi2026lab3-valkey-1 | 4.16% | 11.35MiB / 128MiB | 8.87% | 88MB / 96.8MB | 0B / 1.11MB | 6 |
| 43 | 1793216675 | mtusi2026lab3-k6-run-ba08f11e5417 | 35.23% | 145.8MiB / 1GiB | 14.24% | 140MB / 22.9MB | 0B / 0B | 9 |
| 44 | 1793216675 | mtusi2026lab3-api-1 | 94.71% | 189.5MiB / 1GiB | 18.50% | 759MB / 1.07GB | 0B / 0B | 13 |
| 45 | 1793216675 | mtusi2026lab3-api-2 | 96.90% | 186.4MiB / 1GiB | 18.20% | 760MB / 1.07GB | 0B / 0B | 13 |
| 46 | 1793216675 | mtusi2026lab3-postgres-1 | 65.79% | 392.5MiB / 1GiB | 38.33% | 488MB / 1GB | 86kB / 4.87GB | 38 |
| 47 | 1793216675 | mtusi2026lab3-lb-1 | 17.64% | 15.23MiB / 128MiB | 11.90% | 1.8GB / 1.88GB | 0B / 0B | 2 |
| 48 | 1793216675 | mtusi2026lab3-valkey-1 | 4.66% | 11.35MiB / 128MiB | 8.87% | 88.9MB / 97.8MB | 0B / 1.11MB | 6 |
| 49 | 1793216679 | mtusi2026lab3-k6-run-ba08f11e5417 | 34.10% | 147.6MiB / 1GiB | 14.41% | 154MB / 25.2MB | 0B / 0B | 9 |
| 50 | 1793216679 | mtusi2026lab3-api-1 | 90.25% | 189.5MiB / 1GiB | 18.51% | 769MB / 1.08GB | 0B / 0B | 13 |
| 51 | 1793216679 | mtusi2026lab3-api-2 | 90.58% | 186.2MiB / 1GiB | 18.18% | 770MB / 1.09GB | 0B / 0B | 13 |
| 52 | 1793216679 | mtusi2026lab3-postgres-1 | 71.25% | 392MiB / 1GiB | 38.28% | 494MB / 1.02GB | 86kB / 4.92GB | 37 |
| 53 | 1793216679 | mtusi2026lab3-lb-1 | 19.36% | 14.82MiB / 128MiB | 11.58% | 1.83GB / 1.9GB | 0B / 0B | 2 |
| 54 | 1793216679 | mtusi2026lab3-valkey-1 | 4.71% | 11.35MiB / 128MiB | 8.87% | 90.1MB / 99.1MB | 0B / 1.11MB | 6 |
| 55 | 1793216683 | mtusi2026lab3-k6-run-ba08f11e5417 | 33.79% | 148.5MiB / 1GiB | 14.50% | 177MB / 28.8MB | 0B / 0B | 9 |
| 56 | 1793216683 | mtusi2026lab3-api-1 | 91.22% | 189.2MiB / 1GiB | 18.48% | 778MB / 1.1GB | 0B / 0B | 13 |
| 57 | 1793216683 | mtusi2026lab3-api-2 | 92.50% | 186.1MiB / 1GiB | 18.18% | 779MB / 1.1GB | 0B / 0B | 13 |
| 58 | 1793216683 | mtusi2026lab3-postgres-1 | 72.33% | 390.4MiB / 1GiB | 38.13% | 500MB / 1.03GB | 86kB / 4.97GB | 36 |
| 59 | 1793216683 | mtusi2026lab3-lb-1 | 19.90% | 15.05MiB / 128MiB | 11.76% | 1.85GB / 1.92GB | 0B / 0B | 2 |
| 60 | 1793216683 | mtusi2026lab3-valkey-1 | 4.69% | 11.35MiB / 128MiB | 8.87% | 91.4MB / 101MB | 0B / 1.11MB | 6 |
| 61 | 1793216686 | mtusi2026lab3-k6-run-ba08f11e5417 | 38.16% | 145.1MiB / 1GiB | 14.17% | 196MB / 32MB | 0B / 0B | 9 |
| 62 | 1793216686 | mtusi2026lab3-api-1 | 104.96% | 189.3MiB / 1GiB | 18.48% | 788MB / 1.11GB | 0B / 0B | 13 |
| 63 | 1793216686 | mtusi2026lab3-api-2 | 105.38% | 186.7MiB / 1GiB | 18.23% | 789MB / 1.11GB | 0B / 0B | 13 |
| 64 | 1793216686 | mtusi2026lab3-postgres-1 | 73.10% | 397.3MiB / 1GiB | 38.80% | 506MB / 1.04GB | 86kB / 5.04GB | 37 |
| 65 | 1793216686 | mtusi2026lab3-lb-1 | 19.84% | 15.27MiB / 128MiB | 11.93% | 1.87GB / 1.95GB | 0B / 0B | 2 |
| 66 | 1793216686 | mtusi2026lab3-valkey-1 | 4.00% | 11.34MiB / 128MiB | 8.86% | 92.3MB / 102MB | 0B / 1.11MB | 6 |