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 | 1793215323 | mtusi2026lab3-api-1 | 60.82% | 260.9MiB / 2GiB | 12.74% | 291MB / 410MB | 0B / 0B | 24 |
| 3 | 1793215323 | mtusi2026lab3-postgres-1 | 11.13% | 150.5MiB / 1GiB | 14.70% | 93.6MB / 191MB | 0B / 960MB | 24 |
| 4 | 1793215323 | mtusi2026lab3-lb-1 | 8.84% | 27.05MiB / 128MiB | 21.13% | 344MB / 359MB | 0B / 0B | 2 |
| 5 | 1793215323 | mtusi2026lab3-valkey-1 | 2.26% | 11.29MiB / 128MiB | 8.82% | 17.5MB / 19MB | 0B / 430kB | 6 |
| 6 | 1793215327 | mtusi2026lab3-k6-run-ed8ba0ff4ed5 | 14.40% | 64.41MiB / 1GiB | 6.29% | 11.4MB / 2.01MB | 0B / 0B | 9 |
| 7 | 1793215327 | mtusi2026lab3-api-1 | 66.18% | 261.1MiB / 2GiB | 12.75% | 300MB / 423MB | 0B / 0B | 24 |
| 8 | 1793215327 | mtusi2026lab3-postgres-1 | 26.29% | 155.8MiB / 1GiB | 15.22% | 97.3MB / 198MB | 0B / 1.01GB | 25 |
| 9 | 1793215327 | mtusi2026lab3-lb-1 | 9.00% | 27.01MiB / 128MiB | 21.10% | 355MB / 370MB | 0B / 0B | 2 |
| 10 | 1793215327 | mtusi2026lab3-valkey-1 | 2.34% | 11.3MiB / 128MiB | 8.83% | 17.9MB / 19.4MB | 0B / 430kB | 6 |
| 11 | 1793215330 | mtusi2026lab3-k6-run-ed8ba0ff4ed5 | 15.49% | 64.51MiB / 1GiB | 6.30% | 17.6MB / 3.02MB | 0B / 0B | 9 |
| 12 | 1793215330 | mtusi2026lab3-api-1 | 59.13% | 261.5MiB / 2GiB | 12.77% | 309MB / 436MB | 0B / 0B | 24 |
| 13 | 1793215330 | mtusi2026lab3-postgres-1 | 22.44% | 157.1MiB / 1GiB | 15.34% | 100MB / 204MB | 0B / 1.03GB | 25 |
| 14 | 1793215330 | mtusi2026lab3-lb-1 | 8.24% | 27.03MiB / 128MiB | 21.12% | 366MB / 381MB | 0B / 0B | 2 |
| 15 | 1793215330 | mtusi2026lab3-valkey-1 | 1.64% | 11.3MiB / 128MiB | 8.83% | 18.5MB / 20.1MB | 0B / 430kB | 6 |
| 16 | 1793215334 | mtusi2026lab3-k6-run-ed8ba0ff4ed5 | 13.52% | 71.18MiB / 1GiB | 6.95% | 29MB / 4.83MB | 0B / 0B | 9 |
| 17 | 1793215334 | mtusi2026lab3-api-1 | 59.69% | 276.7MiB / 2GiB | 13.51% | 319MB / 449MB | 0B / 0B | 24 |
| 18 | 1793215334 | mtusi2026lab3-postgres-1 | 24.90% | 165MiB / 1GiB | 16.11% | 102MB / 209MB | 0B / 1.05GB | 27 |
| 19 | 1793215334 | mtusi2026lab3-lb-1 | 8.53% | 27.17MiB / 128MiB | 21.22% | 377MB / 393MB | 0B / 0B | 2 |
| 20 | 1793215334 | mtusi2026lab3-valkey-1 | 2.23% | 11.3MiB / 128MiB | 8.83% | 19.1MB / 20.7MB | 0B / 430kB | 6 |
| 21 | 1793215338 | mtusi2026lab3-k6-run-ed8ba0ff4ed5 | 13.98% | 72.9MiB / 1GiB | 7.12% | 35.7MB / 5.84MB | 0B / 0B | 9 |
| 22 | 1793215338 | mtusi2026lab3-api-1 | 59.74% | 276.4MiB / 2GiB | 13.50% | 328MB / 462MB | 0B / 0B | 24 |
| 23 | 1793215338 | mtusi2026lab3-postgres-1 | 23.55% | 166.7MiB / 1GiB | 16.27% | 106MB / 217MB | 0B / 1.08GB | 27 |
| 24 | 1793215338 | mtusi2026lab3-lb-1 | 8.84% | 27.03MiB / 128MiB | 21.12% | 388MB / 404MB | 0B / 0B | 2 |
| 25 | 1793215338 | mtusi2026lab3-valkey-1 | 2.25% | 11.05MiB / 128MiB | 8.64% | 19.6MB / 21.3MB | 0B / 430kB | 6 |
| 26 | 1793215341 | mtusi2026lab3-k6-run-ed8ba0ff4ed5 | 13.73% | 72.95MiB / 1GiB | 7.12% | 45.4MB / 7.37MB | 0B / 0B | 9 |
| 27 | 1793215341 | mtusi2026lab3-api-1 | 58.44% | 276.4MiB / 2GiB | 13.50% | 335MB / 472MB | 0B / 0B | 24 |
| 28 | 1793215341 | mtusi2026lab3-postgres-1 | 22.43% | 167.9MiB / 1GiB | 16.39% | 108MB / 222MB | 0B / 1.1GB | 27 |
| 29 | 1793215341 | mtusi2026lab3-lb-1 | 8.32% | 27.05MiB / 128MiB | 21.13% | 397MB / 414MB | 0B / 0B | 2 |
| 30 | 1793215341 | mtusi2026lab3-valkey-1 | 1.61% | 11.06MiB / 128MiB | 8.64% | 20MB / 21.8MB | 0B / 430kB | 6 |
| 31 | 1793215344 | mtusi2026lab3-k6-run-ed8ba0ff4ed5 | 13.85% | 72.97MiB / 1GiB | 7.13% | 53.8MB / 8.78MB | 0B / 0B | 9 |
| 32 | 1793215344 | mtusi2026lab3-api-1 | 60.04% | 279.7MiB / 2GiB | 13.65% | 344MB / 485MB | 0B / 0B | 24 |
| 33 | 1793215344 | mtusi2026lab3-postgres-1 | 22.92% | 165.6MiB / 1GiB | 16.17% | 111MB / 227MB | 0B / 1.12GB | 26 |
| 34 | 1793215344 | mtusi2026lab3-lb-1 | 8.89% | 27.29MiB / 128MiB | 21.32% | 404MB / 422MB | 0B / 0B | 2 |
| 35 | 1793215344 | mtusi2026lab3-valkey-1 | 1.64% | 11.14MiB / 128MiB | 8.70% | 20.6MB / 22.4MB | 0B / 430kB | 6 |
| 36 | 1793215348 | mtusi2026lab3-k6-run-ed8ba0ff4ed5 | 13.85% | 73MiB / 1GiB | 7.13% | 60.3MB / 9.81MB | 0B / 0B | 9 |
| 37 | 1793215348 | mtusi2026lab3-api-1 | 59.71% | 279.2MiB / 2GiB | 13.63% | 353MB / 497MB | 0B / 0B | 24 |
| 38 | 1793215348 | mtusi2026lab3-postgres-1 | 25.91% | 170.7MiB / 1GiB | 16.67% | 114MB / 233MB | 0B / 1.17GB | 27 |
| 39 | 1793215348 | mtusi2026lab3-lb-1 | 8.51% | 26.74MiB / 128MiB | 20.89% | 418MB / 436MB | 0B / 0B | 2 |
| 40 | 1793215348 | mtusi2026lab3-valkey-1 | 2.22% | 11.05MiB / 128MiB | 8.64% | 21.1MB / 22.9MB | 0B / 430kB | 6 |
| 41 | 1793215352 | mtusi2026lab3-k6-run-ed8ba0ff4ed5 | 14.03% | 73.03MiB / 1GiB | 7.13% | 70.5MB / 11.4MB | 0B / 0B | 9 |
| 42 | 1793215352 | mtusi2026lab3-api-1 | 61.01% | 279.2MiB / 2GiB | 13.63% | 361MB / 509MB | 0B / 0B | 24 |
| 43 | 1793215352 | mtusi2026lab3-postgres-1 | 24.10% | 171.4MiB / 1GiB | 16.74% | 117MB / 239MB | 0B / 1.19GB | 27 |
| 44 | 1793215352 | mtusi2026lab3-lb-1 | 9.10% | 26.8MiB / 128MiB | 20.94% | 428MB / 446MB | 0B / 0B | 2 |
| 45 | 1793215352 | mtusi2026lab3-valkey-1 | 1.69% | 11.06MiB / 128MiB | 8.64% | 21.6MB / 23.4MB | 0B / 430kB | 6 |
| 46 | 1793215355 | mtusi2026lab3-k6-run-ed8ba0ff4ed5 | 14.47% | 75.07MiB / 1GiB | 7.33% | 79.2MB / 12.8MB | 0B / 0B | 9 |
| 47 | 1793215355 | mtusi2026lab3-api-1 | 65.12% | 291.1MiB / 2GiB | 14.21% | 370MB / 522MB | 0B / 0B | 25 |
| 48 | 1793215355 | mtusi2026lab3-postgres-1 | 24.47% | 173.2MiB / 1GiB | 16.92% | 120MB / 245MB | 0B / 1.22GB | 27 |
| 49 | 1793215355 | mtusi2026lab3-lb-1 | 9.27% | 27.04MiB / 128MiB | 21.13% | 436MB / 454MB | 0B / 0B | 2 |
| 50 | 1793215355 | mtusi2026lab3-valkey-1 | 1.76% | 11.06MiB / 128MiB | 8.64% | 22.1MB / 24MB | 0B / 430kB | 6 |
| 51 | 1793215359 | mtusi2026lab3-k6-run-ed8ba0ff4ed5 | 14.56% | 75.07MiB / 1GiB | 7.33% | 88MB / 14.2MB | 0B / 0B | 9 |
| 52 | 1793215359 | mtusi2026lab3-api-1 | 61.72% | 282.3MiB / 2GiB | 13.79% | 377MB / 531MB | 0B / 0B | 24 |
| 53 | 1793215359 | mtusi2026lab3-postgres-1 | 24.07% | 174.4MiB / 1GiB | 17.03% | 122MB / 251MB | 0B / 1.25GB | 27 |
| 54 | 1793215359 | mtusi2026lab3-lb-1 | 9.07% | 27MiB / 128MiB | 21.10% | 446MB / 465MB | 0B / 0B | 2 |
| 55 | 1793215359 | mtusi2026lab3-valkey-1 | 1.72% | 11.05MiB / 128MiB | 8.63% | 22.6MB / 24.6MB | 0B / 430kB | 6 |