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 | 1793216026 | mtusi2026lab3-api-1 | 318.08% | 364.2MiB / 2GiB | 17.78% | 4.68GB / 6.6GB | 0B / 0B | 25 |
| 3 | 1793216026 | mtusi2026lab3-postgres-1 | 143.49% | 487.1MiB / 1GiB | 47.57% | 1.5GB / 3.1GB | 180MB / 13.2GB | 38 |
| 4 | 1793216026 | mtusi2026lab3-lb-1 | 34.85% | 75.11MiB / 128MiB | 58.68% | 5.55GB / 5.8GB | 0B / 0B | 2 |
| 5 | 1793216026 | mtusi2026lab3-valkey-1 | 7.98% | 11.34MiB / 128MiB | 8.86% | 274MB / 302MB | 0B / 1.82MB | 6 |
| 6 | 1793216029 | mtusi2026lab3-k6-run-6033d58663d1 | 77.11% | 473.8MiB / 1GiB | 46.27% | 64.8MB / 9.8MB | 0B / 0B | 9 |
| 7 | 1793216029 | mtusi2026lab3-api-1 | 381.89% | 364.4MiB / 2GiB | 17.79% | 4.73GB / 6.68GB | 0B / 0B | 25 |
| 8 | 1793216029 | mtusi2026lab3-postgres-1 | 178.38% | 488.9MiB / 1GiB | 47.74% | 1.52GB / 3.13GB | 180MB / 13.4GB | 38 |
| 9 | 1793216029 | mtusi2026lab3-lb-1 | 41.84% | 74.96MiB / 128MiB | 58.56% | 5.62GB / 5.87GB | 0B / 0B | 2 |
| 10 | 1793216029 | mtusi2026lab3-valkey-1 | 8.88% | 11.36MiB / 128MiB | 8.87% | 276MB / 304MB | 0B / 1.82MB | 6 |
| 11 | 1793216032 | mtusi2026lab3-k6-run-6033d58663d1 | 76.49% | 510.6MiB / 1GiB | 49.87% | 118MB / 17.2MB | 0B / 0B | 9 |
| 12 | 1793216032 | mtusi2026lab3-api-1 | 379.46% | 364.2MiB / 2GiB | 17.79% | 4.79GB / 6.76GB | 0B / 0B | 25 |
| 13 | 1793216032 | mtusi2026lab3-postgres-1 | 168.74% | 489.2MiB / 1GiB | 47.78% | 1.53GB / 3.16GB | 180MB / 13.5GB | 38 |
| 14 | 1793216032 | mtusi2026lab3-lb-1 | 41.84% | 75.18MiB / 128MiB | 58.73% | 5.68GB / 5.94GB | 0B / 0B | 2 |
| 15 | 1793216032 | mtusi2026lab3-valkey-1 | 9.82% | 11.35MiB / 128MiB | 8.87% | 280MB / 309MB | 0B / 1.82MB | 6 |
| 16 | 1793216036 | mtusi2026lab3-k6-run-6033d58663d1 | 86.69% | 594.1MiB / 1GiB | 58.02% | 165MB / 24MB | 0B / 0B | 9 |
| 17 | 1793216036 | mtusi2026lab3-api-1 | 377.81% | 364.5MiB / 2GiB | 17.80% | 4.83GB / 6.82GB | 0B / 0B | 25 |
| 18 | 1793216036 | mtusi2026lab3-postgres-1 | 177.71% | 489MiB / 1GiB | 47.76% | 1.55GB / 3.2GB | 180MB / 13.6GB | 38 |
| 19 | 1793216036 | mtusi2026lab3-lb-1 | 41.24% | 76.62MiB / 128MiB | 59.86% | 5.73GB / 5.99GB | 0B / 0B | 2 |
| 20 | 1793216036 | mtusi2026lab3-valkey-1 | 9.13% | 11.35MiB / 128MiB | 8.87% | 283MB / 312MB | 0B / 1.82MB | 6 |
| 21 | 1793216039 | mtusi2026lab3-k6-run-6033d58663d1 | 85.51% | 636.1MiB / 1GiB | 62.12% | 219MB / 31.6MB | 0B / 0B | 9 |
| 22 | 1793216039 | mtusi2026lab3-api-1 | 378.98% | 364.3MiB / 2GiB | 17.79% | 4.89GB / 6.9GB | 0B / 0B | 25 |
| 23 | 1793216039 | mtusi2026lab3-postgres-1 | 176.36% | 489.5MiB / 1GiB | 47.80% | 1.57GB / 3.24GB | 180MB / 13.7GB | 38 |
| 24 | 1793216039 | mtusi2026lab3-lb-1 | 42.15% | 75.5MiB / 128MiB | 58.99% | 5.8GB / 6.06GB | 0B / 0B | 2 |
| 25 | 1793216039 | mtusi2026lab3-valkey-1 | 8.98% | 11.34MiB / 128MiB | 8.86% | 285MB / 314MB | 0B / 1.82MB | 6 |
| 26 | 1793216043 | mtusi2026lab3-k6-run-6033d58663d1 | 62.00% | 642.2MiB / 1GiB | 62.71% | 273MB / 39.2MB | 0B / 0B | 9 |
| 27 | 1793216043 | mtusi2026lab3-api-1 | 377.09% | 364.3MiB / 2GiB | 17.79% | 4.94GB / 6.98GB | 0B / 0B | 25 |
| 28 | 1793216043 | mtusi2026lab3-postgres-1 | 177.74% | 489.3MiB / 1GiB | 47.78% | 1.59GB / 3.27GB | 180MB / 13.9GB | 38 |
| 29 | 1793216043 | mtusi2026lab3-lb-1 | 40.95% | 74.62MiB / 128MiB | 58.29% | 5.86GB / 6.13GB | 0B / 0B | 2 |
| 30 | 1793216043 | mtusi2026lab3-valkey-1 | 9.00% | 11.34MiB / 128MiB | 8.86% | 289MB / 318MB | 0B / 1.82MB | 6 |
| 31 | 1793216047 | mtusi2026lab3-k6-run-6033d58663d1 | 76.79% | 645MiB / 1GiB | 62.99% | 327MB / 46.6MB | 0B / 0B | 9 |
| 32 | 1793216047 | mtusi2026lab3-api-1 | 362.22% | 364.8MiB / 2GiB | 17.81% | 5GB / 7.05GB | 0B / 0B | 25 |
| 33 | 1793216047 | mtusi2026lab3-postgres-1 | 182.73% | 491.6MiB / 1GiB | 48.01% | 1.6GB / 3.3GB | 180MB / 13.9GB | 39 |
| 34 | 1793216047 | mtusi2026lab3-lb-1 | 38.28% | 74.5MiB / 128MiB | 58.21% | 5.93GB / 6.2GB | 0B / 0B | 2 |
| 35 | 1793216047 | mtusi2026lab3-valkey-1 | 8.93% | 11.36MiB / 128MiB | 8.87% | 293MB / 322MB | 0B / 1.84MB | 6 |
| 36 | 1793216050 | mtusi2026lab3-k6-run-6033d58663d1 | 63.35% | 645.1MiB / 1GiB | 63.00% | 370MB / 52.6MB | 0B / 0B | 9 |
| 37 | 1793216050 | mtusi2026lab3-api-1 | 383.18% | 364.5MiB / 2GiB | 17.80% | 5.04GB / 7.12GB | 0B / 0B | 25 |
| 38 | 1793216050 | mtusi2026lab3-postgres-1 | 178.35% | 499.2MiB / 1GiB | 48.75% | 1.62GB / 3.34GB | 320MB / 14.1GB | 38 |
| 39 | 1793216050 | mtusi2026lab3-lb-1 | 41.68% | 74.38MiB / 128MiB | 58.11% | 5.98GB / 6.26GB | 0B / 0B | 2 |
| 40 | 1793216050 | mtusi2026lab3-valkey-1 | 9.23% | 11.35MiB / 128MiB | 8.87% | 295MB / 325MB | 0B / 1.84MB | 6 |
| 41 | 1793216053 | mtusi2026lab3-k6-run-6033d58663d1 | 83.45% | 657.7MiB / 1GiB | 64.22% | 424MB / 60.2MB | 0B / 0B | 9 |
| 42 | 1793216053 | mtusi2026lab3-api-1 | 381.09% | 365.4MiB / 2GiB | 17.84% | 5.08GB / 7.17GB | 0B / 0B | 25 |
| 43 | 1793216053 | mtusi2026lab3-postgres-1 | 176.52% | 502.1MiB / 1GiB | 49.04% | 1.63GB / 3.37GB | 320MB / 14.2GB | 38 |
| 44 | 1793216053 | mtusi2026lab3-lb-1 | 40.97% | 74.81MiB / 128MiB | 58.45% | 6.04GB / 6.33GB | 0B / 0B | 2 |
| 45 | 1793216053 | mtusi2026lab3-valkey-1 | 9.80% | 11.34MiB / 128MiB | 8.86% | 298MB / 329MB | 0B / 1.84MB | 6 |
| 46 | 1793216057 | mtusi2026lab3-k6-run-6033d58663d1 | 80.73% | 667.8MiB / 1GiB | 65.21% | 477MB / 67.7MB | 0B / 0B | 9 |
| 47 | 1793216057 | mtusi2026lab3-api-1 | 378.21% | 365.3MiB / 2GiB | 17.84% | 5.15GB / 7.27GB | 0B / 0B | 25 |
| 48 | 1793216057 | mtusi2026lab3-postgres-1 | 171.45% | 488.1MiB / 1GiB | 47.67% | 1.65GB / 3.41GB | 320MB / 14.4GB | 38 |
| 49 | 1793216057 | mtusi2026lab3-lb-1 | 40.05% | 74.3MiB / 128MiB | 58.05% | 6.1GB / 6.39GB | 0B / 0B | 2 |
| 50 | 1793216057 | mtusi2026lab3-valkey-1 | 9.37% | 11.34MiB / 128MiB | 8.86% | 300MB / 331MB | 0B / 1.84MB | 6 |
| 51 | 1793216061 | mtusi2026lab3-k6-run-6033d58663d1 | 82.20% | 667.8MiB / 1GiB | 65.21% | 524MB / 74.4MB | 0B / 0B | 9 |
| 52 | 1793216061 | mtusi2026lab3-api-1 | 376.12% | 366.2MiB / 2GiB | 17.88% | 5.2GB / 7.33GB | 0B / 0B | 25 |
| 53 | 1793216061 | mtusi2026lab3-postgres-1 | 175.86% | 488.7MiB / 1GiB | 47.73% | 1.67GB / 3.44GB | 320MB / 14.5GB | 38 |
| 54 | 1793216061 | mtusi2026lab3-lb-1 | 41.01% | 74.51MiB / 128MiB | 58.21% | 6.16GB / 6.45GB | 0B / 0B | 2 |
| 55 | 1793216061 | mtusi2026lab3-valkey-1 | 8.91% | 11.34MiB / 128MiB | 8.86% | 304MB / 335MB | 0B / 1.84MB | 6 |
| 56 | 1793216064 | mtusi2026lab3-k6-run-6033d58663d1 | 63.22% | 668.2MiB / 1GiB | 65.25% | 577MB / 82MB | 0B / 0B | 9 |
| 57 | 1793216064 | mtusi2026lab3-api-1 | 383.29% | 366.7MiB / 2GiB | 17.90% | 5.25GB / 7.41GB | 0B / 0B | 25 |
| 58 | 1793216064 | mtusi2026lab3-postgres-1 | 182.43% | 488.9MiB / 1GiB | 47.74% | 1.68GB / 3.48GB | 320MB / 14.6GB | 38 |
| 59 | 1793216064 | mtusi2026lab3-lb-1 | 41.95% | 74.54MiB / 128MiB | 58.23% | 6.22GB / 6.52GB | 0B / 0B | 2 |
| 60 | 1793216064 | mtusi2026lab3-valkey-1 | 9.39% | 11.59MiB / 128MiB | 9.05% | 306MB / 338MB | 0B / 1.84MB | 6 |