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
6.4 KiB
6.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216183 | mtusi2026lab3-api-1 | 27.97% | 163.7MiB / 1GiB | 15.99% | 33.1MB / 46.4MB | 0B / 0B | 13 |
| 3 | 1793216183 | mtusi2026lab3-api-2 | 29.24% | 160.9MiB / 1GiB | 15.72% | 33.2MB / 46.6MB | 0B / 0B | 13 |
| 4 | 1793216183 | mtusi2026lab3-postgres-1 | 14.64% | 103.2MiB / 1GiB | 10.08% | 21.6MB / 43.7MB | 86kB / 262MB | 21 |
| 5 | 1793216183 | mtusi2026lab3-lb-1 | 4.42% | 11.45MiB / 128MiB | 8.95% | 77.9MB / 81.4MB | 0B / 0B | 2 |
| 6 | 1793216183 | mtusi2026lab3-valkey-1 | 1.00% | 10.86MiB / 128MiB | 8.48% | 3.95MB / 4.31MB | 0B / 180kB | 6 |
| 7 | 1793216186 | mtusi2026lab3-k6-run-bf4c0716cc44 | 11.18% | 45.52MiB / 1GiB | 4.45% | 6.09MB / 1.15MB | 0B / 0B | 8 |
| 8 | 1793216186 | mtusi2026lab3-api-1 | 34.87% | 164.1MiB / 1GiB | 16.03% | 35.9MB / 50.3MB | 0B / 0B | 13 |
| 9 | 1793216186 | mtusi2026lab3-api-2 | 35.14% | 161.4MiB / 1GiB | 15.76% | 36.2MB / 50.8MB | 0B / 0B | 13 |
| 10 | 1793216186 | mtusi2026lab3-postgres-1 | 16.96% | 104.1MiB / 1GiB | 10.16% | 23MB / 46.5MB | 86kB / 274MB | 21 |
| 11 | 1793216186 | mtusi2026lab3-lb-1 | 5.30% | 12.21MiB / 128MiB | 9.54% | 84.8MB / 88.6MB | 0B / 0B | 2 |
| 12 | 1793216186 | mtusi2026lab3-valkey-1 | 1.18% | 10.85MiB / 128MiB | 8.48% | 4.3MB / 4.7MB | 0B / 180kB | 6 |
| 13 | 1793216189 | mtusi2026lab3-k6-run-bf4c0716cc44 | 10.83% | 45.61MiB / 1GiB | 4.45% | 10.2MB / 1.82MB | 0B / 0B | 8 |
| 14 | 1793216189 | mtusi2026lab3-api-1 | 21.71% | 164MiB / 1GiB | 16.02% | 39MB / 54.7MB | 0B / 0B | 13 |
| 15 | 1793216189 | mtusi2026lab3-api-2 | 22.26% | 161.7MiB / 1GiB | 15.79% | 39.2MB / 55MB | 0B / 0B | 13 |
| 16 | 1793216189 | mtusi2026lab3-postgres-1 | 17.63% | 105.9MiB / 1GiB | 10.34% | 25.4MB / 51.5MB | 86kB / 311MB | 21 |
| 17 | 1793216189 | mtusi2026lab3-lb-1 | 5.26% | 12.28MiB / 128MiB | 9.59% | 92MB / 96.1MB | 0B / 0B | 2 |
| 18 | 1793216189 | mtusi2026lab3-valkey-1 | 1.15% | 10.86MiB / 128MiB | 8.48% | 4.66MB / 5.09MB | 0B / 180kB | 6 |
| 19 | 1793216193 | mtusi2026lab3-k6-run-bf4c0716cc44 | 10.93% | 50.12MiB / 1GiB | 4.89% | 18.2MB / 3.01MB | 0B / 0B | 8 |
| 20 | 1793216193 | mtusi2026lab3-api-1 | 22.22% | 163.8MiB / 1GiB | 15.99% | 42.2MB / 59.3MB | 0B / 0B | 13 |
| 21 | 1793216193 | mtusi2026lab3-api-2 | 22.43% | 161.5MiB / 1GiB | 15.77% | 42.2MB / 59.3MB | 0B / 0B | 13 |
| 22 | 1793216193 | mtusi2026lab3-postgres-1 | 16.84% | 107.4MiB / 1GiB | 10.49% | 27.3MB / 55.7MB | 86kB / 327MB | 21 |
| 23 | 1793216193 | mtusi2026lab3-lb-1 | 5.78% | 11.86MiB / 128MiB | 9.27% | 99.6MB / 104MB | 0B / 0B | 2 |
| 24 | 1793216193 | mtusi2026lab3-valkey-1 | 1.14% | 11.1MiB / 128MiB | 8.67% | 4.91MB / 5.37MB | 0B / 180kB | 6 |
| 25 | 1793216197 | mtusi2026lab3-k6-run-bf4c0716cc44 | 11.39% | 52.17MiB / 1GiB | 5.09% | 23.2MB / 3.78MB | 0B / 0B | 8 |
| 26 | 1793216197 | mtusi2026lab3-api-1 | 34.72% | 164.7MiB / 1GiB | 16.09% | 44.7MB / 62.9MB | 0B / 0B | 13 |
| 27 | 1793216197 | mtusi2026lab3-api-2 | 35.26% | 163.1MiB / 1GiB | 15.93% | 44.7MB / 62.9MB | 0B / 0B | 13 |
| 28 | 1793216197 | mtusi2026lab3-postgres-1 | 18.31% | 104.8MiB / 1GiB | 10.24% | 28.9MB / 59.1MB | 86kB / 340MB | 20 |
| 29 | 1793216197 | mtusi2026lab3-lb-1 | 5.49% | 12.13MiB / 128MiB | 9.48% | 106MB / 110MB | 0B / 0B | 2 |
| 30 | 1793216197 | mtusi2026lab3-valkey-1 | 1.19% | 11.1MiB / 128MiB | 8.67% | 5.3MB / 5.79MB | 0B / 180kB | 6 |
| 31 | 1793216200 | mtusi2026lab3-k6-run-bf4c0716cc44 | 12.04% | 52.08MiB / 1GiB | 5.09% | 29.2MB / 4.72MB | 0B / 0B | 9 |
| 32 | 1793216200 | mtusi2026lab3-api-1 | 21.52% | 164.7MiB / 1GiB | 16.09% | 47.7MB / 67.1MB | 0B / 0B | 13 |
| 33 | 1793216200 | mtusi2026lab3-api-2 | 21.78% | 163.1MiB / 1GiB | 15.93% | 47.8MB / 67.3MB | 0B / 0B | 13 |
| 34 | 1793216200 | mtusi2026lab3-postgres-1 | 16.58% | 98.68MiB / 1GiB | 9.64% | 30.8MB / 63.2MB | 86kB / 356MB | 18 |
| 35 | 1793216200 | mtusi2026lab3-lb-1 | 5.08% | 12.25MiB / 128MiB | 9.57% | 113MB / 118MB | 0B / 0B | 2 |
| 36 | 1793216200 | mtusi2026lab3-valkey-1 | 1.71% | 10.86MiB / 128MiB | 8.48% | 5.56MB / 6.07MB | 0B / 180kB | 6 |
| 37 | 1793216203 | mtusi2026lab3-k6-run-bf4c0716cc44 | 11.38% | 52.09MiB / 1GiB | 5.09% | 34.9MB / 5.65MB | 0B / 0B | 9 |
| 38 | 1793216203 | mtusi2026lab3-api-1 | 21.91% | 164.7MiB / 1GiB | 16.09% | 50.8MB / 71.5MB | 0B / 0B | 13 |
| 39 | 1793216203 | mtusi2026lab3-api-2 | 22.23% | 163.4MiB / 1GiB | 15.96% | 50MB / 70.3MB | 0B / 0B | 13 |
| 40 | 1793216203 | mtusi2026lab3-postgres-1 | 16.89% | 99.63MiB / 1GiB | 9.73% | 32.7MB / 67.2MB | 86kB / 373MB | 18 |
| 41 | 1793216203 | mtusi2026lab3-lb-1 | 5.40% | 11.78MiB / 128MiB | 9.20% | 120MB / 125MB | 0B / 0B | 2 |
| 42 | 1793216203 | mtusi2026lab3-valkey-1 | 1.67% | 10.85MiB / 128MiB | 8.48% | 6.01MB / 6.57MB | 0B / 180kB | 6 |
| 43 | 1793216207 | mtusi2026lab3-k6-run-bf4c0716cc44 | 11.74% | 52.12MiB / 1GiB | 5.09% | 39.8MB / 6.47MB | 0B / 0B | 9 |
| 44 | 1793216207 | mtusi2026lab3-api-1 | 35.12% | 164.8MiB / 1GiB | 16.09% | 53.4MB / 75.2MB | 0B / 0B | 13 |
| 45 | 1793216207 | mtusi2026lab3-api-2 | 35.56% | 163.3MiB / 1GiB | 15.95% | 53.3MB / 74.9MB | 0B / 0B | 13 |
| 46 | 1793216207 | mtusi2026lab3-postgres-1 | 18.14% | 96.86MiB / 1GiB | 9.46% | 34.4MB / 70.5MB | 86kB / 387MB | 17 |
| 47 | 1793216207 | mtusi2026lab3-lb-1 | 6.11% | 11.77MiB / 128MiB | 9.19% | 126MB / 132MB | 0B / 0B | 2 |
| 48 | 1793216207 | mtusi2026lab3-valkey-1 | 1.76% | 10.94MiB / 128MiB | 8.55% | 6.32MB / 6.91MB | 0B / 180kB | 6 |
| 49 | 1793216210 | mtusi2026lab3-k6-run-bf4c0716cc44 | 11.44% | 52.16MiB / 1GiB | 5.09% | 45.7MB / 7.4MB | 0B / 0B | 9 |
| 50 | 1793216210 | mtusi2026lab3-api-1 | 22.21% | 165MiB / 1GiB | 16.12% | 56.5MB / 79.5MB | 0B / 0B | 13 |
| 51 | 1793216210 | mtusi2026lab3-api-2 | 23.10% | 163.4MiB / 1GiB | 15.95% | 55.4MB / 78MB | 0B / 0B | 13 |
| 52 | 1793216210 | mtusi2026lab3-postgres-1 | 18.05% | 97.7MiB / 1GiB | 9.54% | 36.3MB / 74.6MB | 86kB / 403MB | 17 |
| 53 | 1793216210 | mtusi2026lab3-lb-1 | 5.38% | 11.98MiB / 128MiB | 9.36% | 133MB / 139MB | 0B / 0B | 2 |
| 54 | 1793216210 | mtusi2026lab3-valkey-1 | 1.17% | 11.11MiB / 128MiB | 8.68% | 6.67MB / 7.29MB | 0B / 180kB | 6 |
| 55 | 1793216214 | mtusi2026lab3-k6-run-bf4c0716cc44 | 11.30% | 52.26MiB / 1GiB | 5.10% | 51.4MB / 8.34MB | 0B / 0B | 9 |
| 56 | 1793216214 | mtusi2026lab3-api-1 | 22.37% | 164.7MiB / 1GiB | 16.09% | 58.7MB / 82.7MB | 0B / 0B | 13 |
| 57 | 1793216214 | mtusi2026lab3-api-2 | 22.64% | 163.4MiB / 1GiB | 15.96% | 59.2MB / 83.3MB | 0B / 0B | 13 |
| 58 | 1793216214 | mtusi2026lab3-postgres-1 | 18.53% | 98.82MiB / 1GiB | 9.65% | 38.2MB / 78.5MB | 86kB / 425MB | 17 |
| 59 | 1793216214 | mtusi2026lab3-lb-1 | 5.53% | 12.31MiB / 128MiB | 9.62% | 140MB / 147MB | 0B / 0B | 2 |
| 60 | 1793216214 | mtusi2026lab3-valkey-1 | 1.20% | 10.85MiB / 128MiB | 8.48% | 7.02MB / 7.68MB | 0B / 180kB | 6 |
| 61 | 1793216218 | mtusi2026lab3-k6-run-bf4c0716cc44 | 11.38% | 52.35MiB / 1GiB | 5.11% | 56.9MB / 9.28MB | 0B / 0B | 9 |
| 62 | 1793216218 | mtusi2026lab3-api-1 | 34.99% | 165.3MiB / 1GiB | 16.14% | 61.5MB / 86.6MB | 0B / 0B | 13 |
| 63 | 1793216218 | mtusi2026lab3-api-2 | 23.10% | 163.2MiB / 1GiB | 15.94% | 62.2MB / 87.5MB | 0B / 0B | 13 |
| 64 | 1793216218 | mtusi2026lab3-postgres-1 | 16.70% | 99.91MiB / 1GiB | 9.76% | 40.2MB / 82.4MB | 86kB / 441MB | 17 |
| 65 | 1793216218 | mtusi2026lab3-lb-1 | 5.56% | 11.75MiB / 128MiB | 9.18% | 147MB / 154MB | 0B / 0B | 2 |
| 66 | 1793216218 | mtusi2026lab3-valkey-1 | 1.73% | 10.86MiB / 128MiB | 8.48% | 7.38MB / 8.07MB | 0B / 180kB | 6 |
| 67 | 1793216221 | mtusi2026lab3-k6-run-bf4c0716cc44 | 11.44% | 52.37MiB / 1GiB | 5.11% | 61.7MB / 10MB | 0B / 0B | 9 |
| 68 | 1793216221 | mtusi2026lab3-api-1 | 22.42% | 165.5MiB / 1GiB | 16.16% | 64.9MB / 91.4MB | 0B / 0B | 13 |
| 69 | 1793216221 | mtusi2026lab3-api-2 | 22.36% | 163.2MiB / 1GiB | 15.94% | 64.7MB / 91MB | 0B / 0B | 13 |
| 70 | 1793216221 | mtusi2026lab3-postgres-1 | 17.75% | 100.3MiB / 1GiB | 9.80% | 41.7MB / 85.7MB | 86kB / 454MB | 17 |
| 71 | 1793216221 | mtusi2026lab3-lb-1 | 5.89% | 12.04MiB / 128MiB | 9.40% | 153MB / 160MB | 0B / 0B | 2 |
| 72 | 1793216221 | mtusi2026lab3-valkey-1 | 1.18% | 10.85MiB / 128MiB | 8.48% | 7.67MB / 8.39MB | 0B / 180kB | 6 |