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.0 KiB
5.0 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215978 | mtusi2026lab3-api-1 | 170.51% | 340.8MiB / 2GiB | 16.64% | 4.08GB / 5.77GB | 0B / 0B | 25 |
| 3 | 1793215978 | mtusi2026lab3-postgres-1 | 178.32% | 452.3MiB / 1GiB | 44.17% | 1.32GB / 2.71GB | 128MB / 11.9GB | 38 |
| 4 | 1793215978 | mtusi2026lab3-lb-1 | 42.96% | 64.11MiB / 128MiB | 50.09% | 4.88GB / 5.07GB | 0B / 0B | 2 |
| 5 | 1793215978 | mtusi2026lab3-valkey-1 | 9.44% | 11.33MiB / 128MiB | 8.85% | 240MB / 264MB | 0B / 1.7MB | 6 |
| 6 | 1793215982 | mtusi2026lab3-k6-run-148bc8a04612 | 77.94% | 484.5MiB / 1GiB | 47.31% | 72MB / 10.8MB | 0B / 0B | 9 |
| 7 | 1793215982 | mtusi2026lab3-api-1 | 381.02% | 354.6MiB / 2GiB | 17.32% | 4.15GB / 5.87GB | 0B / 0B | 25 |
| 8 | 1793215982 | mtusi2026lab3-postgres-1 | 178.68% | 452.7MiB / 1GiB | 44.21% | 1.33GB / 2.75GB | 128MB / 12.1GB | 38 |
| 9 | 1793215982 | mtusi2026lab3-lb-1 | 42.16% | 70.48MiB / 128MiB | 55.06% | 4.94GB / 5.14GB | 0B / 0B | 2 |
| 10 | 1793215982 | mtusi2026lab3-valkey-1 | 8.96% | 11.32MiB / 128MiB | 8.84% | 243MB / 267MB | 0B / 1.7MB | 6 |
| 11 | 1793215986 | mtusi2026lab3-k6-run-148bc8a04612 | 76.27% | 520.2MiB / 1GiB | 50.80% | 125MB / 18.2MB | 0B / 0B | 9 |
| 12 | 1793215986 | mtusi2026lab3-api-1 | 371.74% | 356.2MiB / 2GiB | 17.39% | 4.21GB / 5.94GB | 0B / 0B | 25 |
| 13 | 1793215986 | mtusi2026lab3-postgres-1 | 182.66% | 461.7MiB / 1GiB | 45.09% | 1.35GB / 2.79GB | 148MB / 12.2GB | 39 |
| 14 | 1793215986 | mtusi2026lab3-lb-1 | 41.74% | 71.39MiB / 128MiB | 55.78% | 5GB / 5.2GB | 0B / 0B | 2 |
| 15 | 1793215986 | mtusi2026lab3-valkey-1 | 8.94% | 11.32MiB / 128MiB | 8.84% | 246MB / 271MB | 0B / 1.7MB | 6 |
| 16 | 1793215989 | mtusi2026lab3-k6-run-148bc8a04612 | 87.39% | 587.6MiB / 1GiB | 57.39% | 163MB / 23.6MB | 0B / 0B | 9 |
| 17 | 1793215989 | mtusi2026lab3-api-1 | 387.33% | 358.5MiB / 2GiB | 17.50% | 4.26GB / 6.02GB | 0B / 0B | 25 |
| 18 | 1793215989 | mtusi2026lab3-postgres-1 | 177.10% | 488.8MiB / 1GiB | 47.73% | 1.37GB / 2.82GB | 180MB / 12.3GB | 38 |
| 19 | 1793215989 | mtusi2026lab3-lb-1 | 42.05% | 75.72MiB / 128MiB | 59.16% | 5.06GB / 5.27GB | 0B / 0B | 2 |
| 20 | 1793215989 | mtusi2026lab3-valkey-1 | 8.99% | 11.32MiB / 128MiB | 8.84% | 250MB / 275MB | 0B / 1.7MB | 6 |
| 21 | 1793215993 | mtusi2026lab3-k6-run-148bc8a04612 | 83.73% | 623.1MiB / 1GiB | 60.85% | 232MB / 33.2MB | 0B / 0B | 9 |
| 22 | 1793215993 | mtusi2026lab3-api-1 | 377.31% | 361.8MiB / 2GiB | 17.67% | 4.31GB / 6.09GB | 0B / 0B | 25 |
| 23 | 1793215993 | mtusi2026lab3-postgres-1 | 176.59% | 489.8MiB / 1GiB | 47.83% | 1.38GB / 2.86GB | 180MB / 12.4GB | 38 |
| 24 | 1793215993 | mtusi2026lab3-lb-1 | 42.75% | 74.39MiB / 128MiB | 58.12% | 5.13GB / 5.34GB | 0B / 0B | 2 |
| 25 | 1793215993 | mtusi2026lab3-valkey-1 | 9.72% | 11.32MiB / 128MiB | 8.84% | 252MB / 277MB | 0B / 1.7MB | 6 |
| 26 | 1793215997 | mtusi2026lab3-k6-run-148bc8a04612 | 61.75% | 626.2MiB / 1GiB | 61.15% | 269MB / 38.5MB | 0B / 0B | 9 |
| 27 | 1793215997 | mtusi2026lab3-api-1 | 382.05% | 363.2MiB / 2GiB | 17.73% | 4.37GB / 6.17GB | 0B / 0B | 25 |
| 28 | 1793215997 | mtusi2026lab3-postgres-1 | 175.91% | 488.9MiB / 1GiB | 47.74% | 1.4GB / 2.89GB | 180MB / 12.5GB | 38 |
| 29 | 1793215997 | mtusi2026lab3-lb-1 | 42.09% | 74.36MiB / 128MiB | 58.09% | 5.19GB / 5.41GB | 0B / 0B | 2 |
| 30 | 1793215997 | mtusi2026lab3-valkey-1 | 9.02% | 11.32MiB / 128MiB | 8.85% | 256MB / 282MB | 0B / 1.72MB | 6 |
| 31 | 1793216001 | mtusi2026lab3-k6-run-148bc8a04612 | 59.86% | 646.3MiB / 1GiB | 63.11% | 327MB / 46.8MB | 0B / 0B | 9 |
| 32 | 1793216001 | mtusi2026lab3-api-1 | 376.83% | 362.8MiB / 2GiB | 17.72% | 4.41GB / 6.23GB | 0B / 0B | 25 |
| 33 | 1793216001 | mtusi2026lab3-postgres-1 | 171.39% | 488.6MiB / 1GiB | 47.71% | 1.41GB / 2.92GB | 180MB / 12.6GB | 38 |
| 34 | 1793216001 | mtusi2026lab3-lb-1 | 40.97% | 74.49MiB / 128MiB | 58.20% | 5.24GB / 5.46GB | 0B / 0B | 2 |
| 35 | 1793216001 | mtusi2026lab3-valkey-1 | 9.35% | 11.32MiB / 128MiB | 8.84% | 258MB / 285MB | 0B / 1.72MB | 6 |
| 36 | 1793216004 | mtusi2026lab3-k6-run-148bc8a04612 | 82.36% | 652.3MiB / 1GiB | 63.70% | 381MB / 54.4MB | 0B / 0B | 9 |
| 37 | 1793216004 | mtusi2026lab3-api-1 | 375.20% | 363.7MiB / 2GiB | 17.76% | 4.47GB / 6.31GB | 0B / 0B | 25 |
| 38 | 1793216004 | mtusi2026lab3-postgres-1 | 178.16% | 488MiB / 1GiB | 47.66% | 1.43GB / 2.96GB | 180MB / 12.7GB | 38 |
| 39 | 1793216004 | mtusi2026lab3-lb-1 | 42.25% | 74.43MiB / 128MiB | 58.15% | 5.3GB / 5.53GB | 0B / 0B | 2 |
| 40 | 1793216004 | mtusi2026lab3-valkey-1 | 9.76% | 11.32MiB / 128MiB | 8.84% | 261MB / 287MB | 0B / 1.72MB | 6 |
| 41 | 1793216007 | mtusi2026lab3-k6-run-148bc8a04612 | 77.95% | 652.4MiB / 1GiB | 63.71% | 433MB / 61.8MB | 0B / 0B | 9 |
| 42 | 1793216007 | mtusi2026lab3-api-1 | 348.98% | 364.1MiB / 2GiB | 17.78% | 4.52GB / 6.38GB | 0B / 0B | 25 |
| 43 | 1793216007 | mtusi2026lab3-postgres-1 | 163.92% | 487.2MiB / 1GiB | 47.58% | 1.45GB / 2.99GB | 180MB / 12.9GB | 38 |
| 44 | 1793216007 | mtusi2026lab3-lb-1 | 38.71% | 74.38MiB / 128MiB | 58.11% | 5.37GB / 5.6GB | 0B / 0B | 2 |
| 45 | 1793216007 | mtusi2026lab3-valkey-1 | 9.50% | 11.32MiB / 128MiB | 8.85% | 264MB / 291MB | 0B / 1.72MB | 6 |
| 46 | 1793216011 | mtusi2026lab3-k6-run-148bc8a04612 | 83.16% | 664.2MiB / 1GiB | 64.86% | 480MB / 68.5MB | 0B / 0B | 9 |
| 47 | 1793216011 | mtusi2026lab3-api-1 | 385.19% | 363.9MiB / 2GiB | 17.77% | 4.57GB / 6.45GB | 0B / 0B | 25 |
| 48 | 1793216011 | mtusi2026lab3-postgres-1 | 174.83% | 486.3MiB / 1GiB | 47.49% | 1.46GB / 3.02GB | 180MB / 13GB | 38 |
| 49 | 1793216011 | mtusi2026lab3-lb-1 | 41.23% | 75.15MiB / 128MiB | 58.71% | 5.42GB / 5.66GB | 0B / 0B | 2 |
| 50 | 1793216011 | mtusi2026lab3-valkey-1 | 9.58% | 11.32MiB / 128MiB | 8.85% | 267MB / 295MB | 0B / 1.72MB | 6 |
| 51 | 1793216014 | mtusi2026lab3-k6-run-148bc8a04612 | 83.70% | 664.3MiB / 1GiB | 64.87% | 535MB / 76.1MB | 0B / 0B | 9 |
| 52 | 1793216014 | mtusi2026lab3-api-1 | 380.28% | 364.7MiB / 2GiB | 17.81% | 4.62GB / 6.52GB | 0B / 0B | 25 |
| 53 | 1793216014 | mtusi2026lab3-postgres-1 | 177.46% | 486.3MiB / 1GiB | 47.49% | 1.48GB / 3.06GB | 180MB / 13.1GB | 38 |
| 54 | 1793216014 | mtusi2026lab3-lb-1 | 42.69% | 75.15MiB / 128MiB | 58.71% | 5.49GB / 5.73GB | 0B / 0B | 2 |
| 55 | 1793216014 | mtusi2026lab3-valkey-1 | 9.07% | 11.32MiB / 128MiB | 8.84% | 270MB / 297MB | 0B / 1.72MB | 6 |