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 | 1793215604 | mtusi2026lab3-api-1 | 117.47% | 339.4MiB / 2GiB | 16.57% | 1.15GB / 1.62GB | 0B / 0B | 26 |
| 3 | 1793215604 | mtusi2026lab3-postgres-1 | 61.19% | 328.2MiB / 1GiB | 32.05% | 372MB / 763MB | 0B / 3.71GB | 36 |
| 4 | 1793215604 | mtusi2026lab3-lb-1 | 18.16% | 25.8MiB / 128MiB | 20.16% | 1.37GB / 1.42GB | 0B / 0B | 2 |
| 5 | 1793215604 | mtusi2026lab3-valkey-1 | 4.23% | 11.28MiB / 128MiB | 8.81% | 68.3MB / 74.7MB | 0B / 1MB | 6 |
| 6 | 1793215607 | mtusi2026lab3-k6-run-1c951e99e0fb | 28.98% | 127.1MiB / 1GiB | 12.41% | 27.7MB / 4.47MB | 0B / 0B | 9 |
| 7 | 1793215607 | mtusi2026lab3-api-1 | 145.15% | 328MiB / 2GiB | 16.01% | 1.17GB / 1.66GB | 0B / 0B | 25 |
| 8 | 1793215607 | mtusi2026lab3-postgres-1 | 61.47% | 331MiB / 1GiB | 32.32% | 378MB / 777MB | 0B / 3.77GB | 36 |
| 9 | 1793215607 | mtusi2026lab3-lb-1 | 17.60% | 25.6MiB / 128MiB | 20.00% | 1.39GB / 1.45GB | 0B / 0B | 2 |
| 10 | 1793215607 | mtusi2026lab3-valkey-1 | 3.76% | 11.27MiB / 128MiB | 8.80% | 69.1MB / 75.7MB | 0B / 1MB | 6 |
| 11 | 1793215611 | mtusi2026lab3-k6-run-1c951e99e0fb | 31.11% | 129.3MiB / 1GiB | 12.63% | 48.1MB / 7.62MB | 0B / 0B | 9 |
| 12 | 1793215611 | mtusi2026lab3-api-1 | 131.76% | 327.8MiB / 2GiB | 16.00% | 1.19GB / 1.68GB | 0B / 0B | 25 |
| 13 | 1793215611 | mtusi2026lab3-postgres-1 | 53.60% | 338.1MiB / 1GiB | 33.02% | 385MB / 790MB | 0B / 3.84GB | 37 |
| 14 | 1793215611 | mtusi2026lab3-lb-1 | 16.08% | 26.06MiB / 128MiB | 20.36% | 1.42GB / 1.48GB | 0B / 0B | 2 |
| 15 | 1793215611 | mtusi2026lab3-valkey-1 | 3.13% | 11.27MiB / 128MiB | 8.81% | 70.6MB / 77.3MB | 0B / 1MB | 6 |
| 16 | 1793215615 | mtusi2026lab3-k6-run-1c951e99e0fb | 31.67% | 142.5MiB / 1GiB | 13.92% | 68.1MB / 10.8MB | 0B / 0B | 9 |
| 17 | 1793215615 | mtusi2026lab3-api-1 | 134.88% | 328.2MiB / 2GiB | 16.03% | 1.22GB / 1.71GB | 0B / 0B | 25 |
| 18 | 1793215615 | mtusi2026lab3-postgres-1 | 55.74% | 333.6MiB / 1GiB | 32.58% | 391MB / 804MB | 0B / 3.89GB | 35 |
| 19 | 1793215615 | mtusi2026lab3-lb-1 | 16.60% | 26.09MiB / 128MiB | 20.38% | 1.44GB / 1.5GB | 0B / 0B | 2 |
| 20 | 1793215615 | mtusi2026lab3-valkey-1 | 3.80% | 11.67MiB / 128MiB | 9.12% | 71.5MB / 78.3MB | 0B / 1MB | 6 |
| 21 | 1793215618 | mtusi2026lab3-k6-run-1c951e99e0fb | 30.24% | 145.9MiB / 1GiB | 14.25% | 87.6MB / 14MB | 0B / 0B | 9 |
| 22 | 1793215618 | mtusi2026lab3-api-1 | 146.00% | 328.4MiB / 2GiB | 16.04% | 1.24GB / 1.74GB | 0B / 0B | 25 |
| 23 | 1793215618 | mtusi2026lab3-postgres-1 | 53.12% | 336.6MiB / 1GiB | 32.87% | 397MB / 818MB | 0B / 3.94GB | 35 |
| 24 | 1793215618 | mtusi2026lab3-lb-1 | 16.31% | 25.84MiB / 128MiB | 20.19% | 1.47GB / 1.53GB | 0B / 0B | 2 |
| 25 | 1793215618 | mtusi2026lab3-valkey-1 | 3.31% | 11.28MiB / 128MiB | 8.81% | 72.7MB / 79.6MB | 0B / 1MB | 6 |
| 26 | 1793215622 | mtusi2026lab3-k6-run-1c951e99e0fb | 28.59% | 145.9MiB / 1GiB | 14.25% | 104MB / 16.6MB | 0B / 0B | 10 |
| 27 | 1793215622 | mtusi2026lab3-api-1 | 130.73% | 327.7MiB / 2GiB | 16.00% | 1.25GB / 1.77GB | 0B / 0B | 25 |
| 28 | 1793215622 | mtusi2026lab3-postgres-1 | 53.47% | 342.9MiB / 1GiB | 33.49% | 403MB / 829MB | 0B / 4GB | 36 |
| 29 | 1793215622 | mtusi2026lab3-lb-1 | 16.13% | 25.28MiB / 128MiB | 19.75% | 1.49GB / 1.55GB | 0B / 0B | 2 |
| 30 | 1793215622 | mtusi2026lab3-valkey-1 | 3.15% | 11.28MiB / 128MiB | 8.81% | 74MB / 81MB | 0B / 1MB | 6 |
| 31 | 1793215625 | mtusi2026lab3-k6-run-1c951e99e0fb | 29.07% | 145.9MiB / 1GiB | 14.25% | 123MB / 19.7MB | 0B / 0B | 10 |
| 32 | 1793215625 | mtusi2026lab3-api-1 | 144.60% | 328.2MiB / 2GiB | 16.03% | 1.27GB / 1.8GB | 0B / 0B | 25 |
| 33 | 1793215625 | mtusi2026lab3-postgres-1 | 59.92% | 341.6MiB / 1GiB | 33.36% | 408MB / 838MB | 0B / 4.04GB | 35 |
| 34 | 1793215625 | mtusi2026lab3-lb-1 | 17.11% | 25.75MiB / 128MiB | 20.12% | 1.51GB / 1.57GB | 0B / 0B | 2 |
| 35 | 1793215625 | mtusi2026lab3-valkey-1 | 3.48% | 11.28MiB / 128MiB | 8.81% | 75.2MB / 82.3MB | 0B / 1.02MB | 6 |
| 36 | 1793215629 | mtusi2026lab3-k6-run-1c951e99e0fb | 29.90% | 145.9MiB / 1GiB | 14.25% | 143MB / 23MB | 0B / 0B | 10 |
| 37 | 1793215629 | mtusi2026lab3-api-1 | 157.62% | 327.9MiB / 2GiB | 16.01% | 1.29GB / 1.82GB | 0B / 0B | 25 |
| 38 | 1793215629 | mtusi2026lab3-postgres-1 | 64.57% | 348.1MiB / 1GiB | 33.99% | 414MB / 852MB | 0B / 4.1GB | 36 |
| 39 | 1793215629 | mtusi2026lab3-lb-1 | 17.19% | 26.32MiB / 128MiB | 20.56% | 1.54GB / 1.6GB | 0B / 0B | 2 |
| 40 | 1793215629 | mtusi2026lab3-valkey-1 | 4.08% | 11.3MiB / 128MiB | 8.83% | 76.4MB / 83.7MB | 0B / 1.02MB | 6 |
| 41 | 1793215632 | mtusi2026lab3-k6-run-1c951e99e0fb | 32.59% | 146MiB / 1GiB | 14.25% | 159MB / 25.7MB | 0B / 0B | 10 |
| 42 | 1793215632 | mtusi2026lab3-api-1 | 142.64% | 327.9MiB / 2GiB | 16.01% | 1.31GB / 1.85GB | 0B / 0B | 25 |
| 43 | 1793215632 | mtusi2026lab3-postgres-1 | 60.32% | 359.5MiB / 1GiB | 35.11% | 422MB / 867MB | 0B / 4.18GB | 38 |
| 44 | 1793215632 | mtusi2026lab3-lb-1 | 17.16% | 25.53MiB / 128MiB | 19.95% | 1.56GB / 1.62GB | 0B / 0B | 2 |
| 45 | 1793215632 | mtusi2026lab3-valkey-1 | 3.39% | 11.28MiB / 128MiB | 8.81% | 77.4MB / 84.8MB | 0B / 1.02MB | 6 |
| 46 | 1793215636 | mtusi2026lab3-k6-run-1c951e99e0fb | 29.01% | 146MiB / 1GiB | 14.26% | 174MB / 28MB | 0B / 0B | 10 |
| 47 | 1793215636 | mtusi2026lab3-api-1 | 143.06% | 327.7MiB / 2GiB | 16.00% | 1.33GB / 1.88GB | 0B / 0B | 25 |
| 48 | 1793215636 | mtusi2026lab3-postgres-1 | 61.32% | 358.5MiB / 1GiB | 35.01% | 428MB / 881MB | 0B / 4.24GB | 37 |
| 49 | 1793215636 | mtusi2026lab3-lb-1 | 17.58% | 25.37MiB / 128MiB | 19.82% | 1.58GB / 1.64GB | 0B / 0B | 2 |
| 50 | 1793215636 | mtusi2026lab3-valkey-1 | 3.46% | 11.28MiB / 128MiB | 8.81% | 78.6MB / 86.1MB | 0B / 1.02MB | 6 |
| 51 | 1793215639 | mtusi2026lab3-k6-run-1c951e99e0fb | 29.14% | 152MiB / 1GiB | 14.84% | 199MB / 32MB | 0B / 0B | 10 |
| 52 | 1793215639 | mtusi2026lab3-api-1 | 157.29% | 328.1MiB / 2GiB | 16.02% | 1.35GB / 1.91GB | 0B / 0B | 25 |
| 53 | 1793215639 | mtusi2026lab3-postgres-1 | 60.51% | 360.7MiB / 1GiB | 35.22% | 433MB / 890MB | 0B / 4.28GB | 37 |
| 54 | 1793215639 | mtusi2026lab3-lb-1 | 17.20% | 25.32MiB / 128MiB | 19.78% | 1.6GB / 1.67GB | 0B / 0B | 2 |
| 55 | 1793215639 | mtusi2026lab3-valkey-1 | 3.43% | 11.28MiB / 128MiB | 8.81% | 79.8MB / 87.4MB | 0B / 1.02MB | 6 |