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.5 KiB
5.5 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215838 | mtusi2026lab3-api-1 | 312.05% | 329.6MiB / 2GiB | 16.10% | 2.6GB / 3.67GB | 0B / 0B | 25 |
| 3 | 1793215838 | mtusi2026lab3-postgres-1 | 65.58% | 433.9MiB / 1GiB | 42.37% | 831MB / 1.71GB | 11.9MB / 8.09GB | 38 |
| 4 | 1793215838 | mtusi2026lab3-lb-1 | 35.08% | 27.19MiB / 128MiB | 21.24% | 3.09GB / 3.22GB | 0B / 0B | 2 |
| 5 | 1793215838 | mtusi2026lab3-valkey-1 | 7.72% | 11.67MiB / 128MiB | 9.12% | 153MB / 168MB | 0B / 1.45MB | 6 |
| 6 | 1793215841 | mtusi2026lab3-k6-run-51b9b2d1c804 | 59.58% | 266.8MiB / 1GiB | 26.05% | 52.5MB / 8.69MB | 0B / 0B | 9 |
| 7 | 1793215841 | mtusi2026lab3-api-1 | 319.12% | 329.3MiB / 2GiB | 16.08% | 2.64GB / 3.73GB | 0B / 0B | 25 |
| 8 | 1793215841 | mtusi2026lab3-postgres-1 | 144.04% | 433.9MiB / 1GiB | 42.38% | 847MB / 1.75GB | 11.9MB / 8.22GB | 38 |
| 9 | 1793215841 | mtusi2026lab3-lb-1 | 34.37% | 26.54MiB / 128MiB | 20.74% | 3.14GB / 3.26GB | 0B / 0B | 2 |
| 10 | 1793215841 | mtusi2026lab3-valkey-1 | 7.27% | 11.69MiB / 128MiB | 9.13% | 155MB / 170MB | 0B / 1.45MB | 6 |
| 11 | 1793215844 | mtusi2026lab3-k6-run-51b9b2d1c804 | 58.13% | 268.9MiB / 1GiB | 26.26% | 98MB / 15.8MB | 0B / 0B | 10 |
| 12 | 1793215844 | mtusi2026lab3-api-1 | 314.00% | 329.5MiB / 2GiB | 16.09% | 2.69GB / 3.79GB | 0B / 0B | 25 |
| 13 | 1793215844 | mtusi2026lab3-postgres-1 | 136.98% | 434.6MiB / 1GiB | 42.44% | 858MB / 1.77GB | 11.9MB / 8.3GB | 38 |
| 14 | 1793215844 | mtusi2026lab3-lb-1 | 33.86% | 25.88MiB / 128MiB | 20.22% | 3.19GB / 3.32GB | 0B / 0B | 2 |
| 15 | 1793215844 | mtusi2026lab3-valkey-1 | 7.58% | 11.68MiB / 128MiB | 9.13% | 157MB / 173MB | 0B / 1.45MB | 6 |
| 16 | 1793215848 | mtusi2026lab3-k6-run-51b9b2d1c804 | 56.05% | 305.8MiB / 1GiB | 29.87% | 142MB / 23MB | 0B / 0B | 10 |
| 17 | 1793215848 | mtusi2026lab3-api-1 | 310.82% | 329.3MiB / 2GiB | 16.08% | 2.73GB / 3.86GB | 0B / 0B | 25 |
| 18 | 1793215848 | mtusi2026lab3-postgres-1 | 134.59% | 434.8MiB / 1GiB | 42.46% | 877MB / 1.81GB | 11.9MB / 8.46GB | 44 |
| 19 | 1793215848 | mtusi2026lab3-lb-1 | 34.65% | 23.62MiB / 128MiB | 18.46% | 3.25GB / 3.38GB | 0B / 0B | 2 |
| 20 | 1793215848 | mtusi2026lab3-valkey-1 | 7.12% | 11.69MiB / 128MiB | 9.13% | 160MB / 176MB | 0B / 1.45MB | 6 |
| 21 | 1793215852 | mtusi2026lab3-k6-run-51b9b2d1c804 | 59.47% | 312.3MiB / 1GiB | 30.50% | 186MB / 30.2MB | 0B / 0B | 10 |
| 22 | 1793215852 | mtusi2026lab3-api-1 | 309.66% | 329.3MiB / 2GiB | 16.08% | 2.78GB / 3.92GB | 0B / 0B | 25 |
| 23 | 1793215852 | mtusi2026lab3-postgres-1 | 141.40% | 431.2MiB / 1GiB | 42.11% | 891MB / 1.84GB | 11.9MB / 8.58GB | 37 |
| 24 | 1793215852 | mtusi2026lab3-lb-1 | 34.66% | 24.67MiB / 128MiB | 19.27% | 3.3GB / 3.43GB | 0B / 0B | 2 |
| 25 | 1793215852 | mtusi2026lab3-valkey-1 | 7.14% | 11.63MiB / 128MiB | 9.09% | 162MB / 178MB | 0B / 1.45MB | 6 |
| 26 | 1793215855 | mtusi2026lab3-k6-run-51b9b2d1c804 | 59.70% | 312.3MiB / 1GiB | 30.50% | 230MB / 37.3MB | 0B / 0B | 10 |
| 27 | 1793215855 | mtusi2026lab3-api-1 | 315.01% | 329.4MiB / 2GiB | 16.08% | 2.81GB / 3.97GB | 0B / 0B | 25 |
| 28 | 1793215855 | mtusi2026lab3-postgres-1 | 141.13% | 434.1MiB / 1GiB | 42.39% | 906MB / 1.87GB | 11.9MB / 8.69GB | 38 |
| 29 | 1793215855 | mtusi2026lab3-lb-1 | 34.44% | 23.46MiB / 128MiB | 18.33% | 3.36GB / 3.49GB | 0B / 0B | 2 |
| 30 | 1793215855 | mtusi2026lab3-valkey-1 | 7.18% | 11.64MiB / 128MiB | 9.10% | 166MB / 182MB | 0B / 1.46MB | 6 |
| 31 | 1793215859 | mtusi2026lab3-k6-run-51b9b2d1c804 | 67.60% | 312.4MiB / 1GiB | 30.50% | 275MB / 44.5MB | 0B / 0B | 10 |
| 32 | 1793215859 | mtusi2026lab3-api-1 | 315.55% | 331.3MiB / 2GiB | 16.18% | 2.87GB / 4.05GB | 0B / 0B | 25 |
| 33 | 1793215859 | mtusi2026lab3-postgres-1 | 140.57% | 434MiB / 1GiB | 42.39% | 921MB / 1.9GB | 11.9MB / 8.81GB | 38 |
| 34 | 1793215859 | mtusi2026lab3-lb-1 | 34.56% | 25.45MiB / 128MiB | 19.89% | 3.41GB / 3.55GB | 0B / 0B | 2 |
| 35 | 1793215859 | mtusi2026lab3-valkey-1 | 7.76% | 11.33MiB / 128MiB | 8.85% | 168MB / 184MB | 0B / 1.47MB | 6 |
| 36 | 1793215863 | mtusi2026lab3-k6-run-51b9b2d1c804 | 68.43% | 326.3MiB / 1GiB | 31.87% | 319MB / 51.6MB | 0B / 0B | 10 |
| 37 | 1793215863 | mtusi2026lab3-api-1 | 317.22% | 331.3MiB / 2GiB | 16.18% | 2.92GB / 4.12GB | 0B / 0B | 25 |
| 38 | 1793215863 | mtusi2026lab3-postgres-1 | 138.31% | 429MiB / 1GiB | 41.89% | 935MB / 1.93GB | 11.9MB / 8.92GB | 37 |
| 39 | 1793215863 | mtusi2026lab3-lb-1 | 34.36% | 24.06MiB / 128MiB | 18.80% | 3.47GB / 3.6GB | 0B / 0B | 2 |
| 40 | 1793215863 | mtusi2026lab3-valkey-1 | 8.05% | 11.33MiB / 128MiB | 8.85% | 170MB / 187MB | 0B / 1.47MB | 6 |
| 41 | 1793215866 | mtusi2026lab3-k6-run-51b9b2d1c804 | 71.77% | 326.3MiB / 1GiB | 31.87% | 355MB / 57.4MB | 0B / 0B | 10 |
| 42 | 1793215866 | mtusi2026lab3-api-1 | 342.20% | 331.3MiB / 2GiB | 16.18% | 2.95GB / 4.17GB | 0B / 0B | 25 |
| 43 | 1793215866 | mtusi2026lab3-postgres-1 | 162.68% | 442.7MiB / 1GiB | 43.23% | 947MB / 1.95GB | 33.1MB / 9GB | 39 |
| 44 | 1793215866 | mtusi2026lab3-lb-1 | 35.78% | 24.98MiB / 128MiB | 19.52% | 3.51GB / 3.65GB | 0B / 0B | 2 |
| 45 | 1793215866 | mtusi2026lab3-valkey-1 | 8.37% | 11.32MiB / 128MiB | 8.85% | 173MB / 191MB | 0B / 1.47MB | 6 |
| 46 | 1793215869 | mtusi2026lab3-k6-run-51b9b2d1c804 | 59.85% | 336.4MiB / 1GiB | 32.85% | 399MB / 64.6MB | 0B / 0B | 10 |
| 47 | 1793215869 | mtusi2026lab3-api-1 | 317.99% | 338.2MiB / 2GiB | 16.51% | 3GB / 4.23GB | 0B / 0B | 25 |
| 48 | 1793215869 | mtusi2026lab3-postgres-1 | 142.43% | 433.3MiB / 1GiB | 42.31% | 962MB / 1.99GB | 52.5MB / 9.16GB | 38 |
| 49 | 1793215869 | mtusi2026lab3-lb-1 | 34.28% | 25.72MiB / 128MiB | 20.09% | 3.55GB / 3.69GB | 0B / 0B | 2 |
| 50 | 1793215869 | mtusi2026lab3-valkey-1 | 7.19% | 11.33MiB / 128MiB | 8.85% | 176MB / 194MB | 0B / 1.47MB | 6 |
| 51 | 1793215873 | mtusi2026lab3-k6-run-51b9b2d1c804 | 64.81% | 336.5MiB / 1GiB | 32.86% | 444MB / 71.7MB | 0B / 0B | 10 |
| 52 | 1793215873 | mtusi2026lab3-api-1 | 323.59% | 339.2MiB / 2GiB | 16.56% | 3.04GB / 4.3GB | 0B / 0B | 25 |
| 53 | 1793215873 | mtusi2026lab3-postgres-1 | 151.19% | 434.1MiB / 1GiB | 42.40% | 977MB / 2.02GB | 52.5MB / 9.27GB | 38 |
| 54 | 1793215873 | mtusi2026lab3-lb-1 | 37.23% | 39.52MiB / 128MiB | 30.88% | 3.62GB / 3.76GB | 0B / 0B | 2 |
| 55 | 1793215873 | mtusi2026lab3-valkey-1 | 7.92% | 11.32MiB / 128MiB | 8.84% | 178MB / 196MB | 0B / 1.47MB | 6 |
| 56 | 1793215877 | mtusi2026lab3-k6-run-51b9b2d1c804 | 62.68% | 349.1MiB / 1GiB | 34.09% | 481MB / 77.8MB | 0B / 0B | 10 |
| 57 | 1793215877 | mtusi2026lab3-api-1 | 302.52% | 338.7MiB / 2GiB | 16.54% | 3.08GB / 4.35GB | 0B / 0B | 25 |
| 58 | 1793215877 | mtusi2026lab3-postgres-1 | 130.70% | 433.7MiB / 1GiB | 42.36% | 989MB / 2.04GB | 52.5MB / 9.37GB | 38 |
| 59 | 1793215877 | mtusi2026lab3-lb-1 | 32.48% | 24.57MiB / 128MiB | 19.20% | 3.67GB / 3.81GB | 0B / 0B | 2 |
| 60 | 1793215877 | mtusi2026lab3-valkey-1 | 7.16% | 11.28MiB / 128MiB | 8.81% | 181MB / 199MB | 0B / 1.47MB | 6 |