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.4 KiB
5.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215180 | mtusi2026lab3-api-1 | 58.46% | 231.9MiB / 2GiB | 11.32% | 67.1MB / 94.8MB | 0B / 0B | 23 |
| 3 | 1793215180 | mtusi2026lab3-postgres-1 | 17.84% | 161.7MiB / 1GiB | 15.79% | 21.9MB / 44.4MB | 0B / 260MB | 38 |
| 4 | 1793215180 | mtusi2026lab3-lb-1 | 6.83% | 15.02MiB / 128MiB | 11.73% | 79.4MB / 82.8MB | 0B / 0B | 2 |
| 5 | 1793215180 | mtusi2026lab3-valkey-1 | 1.96% | 11.39MiB / 128MiB | 8.90% | 4.02MB / 4.34MB | 0B / 180kB | 6 |
| 6 | 1793215183 | mtusi2026lab3-k6-run-f3229a195126 | 11.60% | 47.69MiB / 1GiB | 4.66% | 6.56MB / 1.21MB | 61.4kB / 0B | 9 |
| 7 | 1793215183 | mtusi2026lab3-api-1 | 49.98% | 232MiB / 2GiB | 11.33% | 73.1MB / 103MB | 0B / 0B | 23 |
| 8 | 1793215183 | mtusi2026lab3-postgres-1 | 20.53% | 162.3MiB / 1GiB | 15.85% | 23.9MB / 48.4MB | 0B / 276MB | 38 |
| 9 | 1793215183 | mtusi2026lab3-lb-1 | 7.05% | 15.27MiB / 128MiB | 11.93% | 84.6MB / 88.2MB | 0B / 0B | 2 |
| 10 | 1793215183 | mtusi2026lab3-valkey-1 | 1.98% | 11.16MiB / 128MiB | 8.72% | 4.28MB / 4.63MB | 0B / 180kB | 6 |
| 11 | 1793215187 | mtusi2026lab3-k6-run-f3229a195126 | 11.88% | 47.79MiB / 1GiB | 4.67% | 12.6MB / 2.14MB | 61.4kB / 0B | 9 |
| 12 | 1793215187 | mtusi2026lab3-api-1 | 46.62% | 232MiB / 2GiB | 11.33% | 79.3MB / 112MB | 0B / 0B | 23 |
| 13 | 1793215187 | mtusi2026lab3-postgres-1 | 18.13% | 164.6MiB / 1GiB | 16.08% | 25.8MB / 52.5MB | 0B / 309MB | 44 |
| 14 | 1793215187 | mtusi2026lab3-lb-1 | 6.31% | 14.76MiB / 128MiB | 11.53% | 94MB / 98MB | 0B / 0B | 2 |
| 15 | 1793215187 | mtusi2026lab3-valkey-1 | 1.95% | 11.16MiB / 128MiB | 8.72% | 4.63MB / 5.02MB | 0B / 180kB | 6 |
| 16 | 1793215191 | mtusi2026lab3-k6-run-f3229a195126 | 18.43% | 52.33MiB / 1GiB | 5.11% | 17.3MB / 2.94MB | 61.4kB / 0B | 9 |
| 17 | 1793215191 | mtusi2026lab3-api-1 | 105.24% | 233.5MiB / 2GiB | 11.40% | 84.2MB / 119MB | 0B / 0B | 23 |
| 18 | 1793215191 | mtusi2026lab3-postgres-1 | 39.18% | 166.3MiB / 1GiB | 16.24% | 27.4MB / 55.7MB | 0B / 322MB | 38 |
| 19 | 1793215191 | mtusi2026lab3-lb-1 | 13.53% | 16.85MiB / 128MiB | 13.17% | 99.8MB / 104MB | 0B / 0B | 2 |
| 20 | 1793215191 | mtusi2026lab3-valkey-1 | 1.78% | 11.18MiB / 128MiB | 8.73% | 4.93MB / 5.34MB | 0B / 180kB | 6 |
| 21 | 1793215195 | mtusi2026lab3-k6-run-f3229a195126 | 11.29% | 58.3MiB / 1GiB | 5.69% | 22MB / 3.72MB | 61.4kB / 0B | 9 |
| 22 | 1793215195 | mtusi2026lab3-api-1 | 42.73% | 233.5MiB / 2GiB | 11.40% | 89.2MB / 126MB | 0B / 0B | 23 |
| 23 | 1793215195 | mtusi2026lab3-postgres-1 | 16.19% | 167.4MiB / 1GiB | 16.34% | 29MB / 59MB | 0B / 335MB | 38 |
| 24 | 1793215195 | mtusi2026lab3-lb-1 | 6.05% | 16.77MiB / 128MiB | 13.10% | 106MB / 110MB | 0B / 0B | 2 |
| 25 | 1793215195 | mtusi2026lab3-valkey-1 | 1.25% | 11.37MiB / 128MiB | 8.88% | 5.35MB / 5.79MB | 0B / 180kB | 6 |
| 26 | 1793215198 | mtusi2026lab3-k6-run-f3229a195126 | 11.36% | 58.52MiB / 1GiB | 5.72% | 27.8MB / 4.65MB | 61.4kB / 0B | 9 |
| 27 | 1793215198 | mtusi2026lab3-api-1 | 45.58% | 233.2MiB / 2GiB | 11.39% | 95.2MB / 134MB | 0B / 0B | 23 |
| 28 | 1793215198 | mtusi2026lab3-postgres-1 | 19.07% | 168.1MiB / 1GiB | 16.42% | 30.9MB / 63MB | 0B / 352MB | 38 |
| 29 | 1793215198 | mtusi2026lab3-lb-1 | 6.29% | 16.75MiB / 128MiB | 13.09% | 113MB / 118MB | 0B / 0B | 2 |
| 30 | 1793215198 | mtusi2026lab3-valkey-1 | 1.92% | 11.4MiB / 128MiB | 8.91% | 5.61MB / 6.07MB | 0B / 180kB | 6 |
| 31 | 1793215201 | mtusi2026lab3-k6-run-f3229a195126 | 11.64% | 58.57MiB / 1GiB | 5.72% | 33.9MB / 5.58MB | 61.4kB / 0B | 9 |
| 32 | 1793215201 | mtusi2026lab3-api-1 | 60.80% | 233.3MiB / 2GiB | 11.39% | 101MB / 143MB | 0B / 0B | 23 |
| 33 | 1793215201 | mtusi2026lab3-postgres-1 | 18.69% | 168.9MiB / 1GiB | 16.49% | 32.8MB / 67.1MB | 0B / 368MB | 38 |
| 34 | 1793215201 | mtusi2026lab3-lb-1 | 6.56% | 17.04MiB / 128MiB | 13.31% | 120MB / 125MB | 0B / 0B | 2 |
| 35 | 1793215201 | mtusi2026lab3-valkey-1 | 1.92% | 11.36MiB / 128MiB | 8.88% | 5.97MB / 6.46MB | 0B / 180kB | 6 |
| 36 | 1793215205 | mtusi2026lab3-k6-run-f3229a195126 | 11.66% | 58.59MiB / 1GiB | 5.72% | 38.9MB / 6.4MB | 61.4kB / 0B | 9 |
| 37 | 1793215205 | mtusi2026lab3-api-1 | 48.52% | 233.6MiB / 2GiB | 11.40% | 107MB / 151MB | 0B / 0B | 23 |
| 38 | 1793215205 | mtusi2026lab3-postgres-1 | 19.30% | 170MiB / 1GiB | 16.60% | 34.5MB / 70.5MB | 0B / 382MB | 38 |
| 39 | 1793215205 | mtusi2026lab3-lb-1 | 7.01% | 16.26MiB / 128MiB | 12.70% | 126MB / 132MB | 0B / 0B | 2 |
| 40 | 1793215205 | mtusi2026lab3-valkey-1 | 1.99% | 11.37MiB / 128MiB | 8.88% | 6.38MB / 6.9MB | 0B / 180kB | 6 |
| 41 | 1793215208 | mtusi2026lab3-k6-run-f3229a195126 | 12.06% | 58.61MiB / 1GiB | 5.72% | 44.4MB / 7.34MB | 61.4kB / 0B | 9 |
| 42 | 1793215208 | mtusi2026lab3-api-1 | 49.02% | 233.5MiB / 2GiB | 11.40% | 112MB / 159MB | 0B / 0B | 23 |
| 43 | 1793215208 | mtusi2026lab3-postgres-1 | 19.16% | 170.8MiB / 1GiB | 16.68% | 36.4MB / 74.4MB | 0B / 398MB | 38 |
| 44 | 1793215208 | mtusi2026lab3-lb-1 | 6.98% | 17MiB / 128MiB | 13.28% | 133MB / 139MB | 0B / 0B | 2 |
| 45 | 1793215208 | mtusi2026lab3-valkey-1 | 2.13% | 11.61MiB / 128MiB | 9.07% | 6.63MB / 7.18MB | 0B / 180kB | 6 |
| 46 | 1793215212 | mtusi2026lab3-k6-run-f3229a195126 | 10.45% | 83.67MiB / 1GiB | 8.17% | 49.4MB / 8.16MB | 61.4kB / 0B | 9 |
| 47 | 1793215212 | mtusi2026lab3-api-1 | 96.49% | 238.5MiB / 2GiB | 11.64% | 116MB / 164MB | 0B / 0B | 23 |
| 48 | 1793215212 | mtusi2026lab3-postgres-1 | 20.45% | 172.7MiB / 1GiB | 16.86% | 38.1MB / 77.9MB | 0B / 417MB | 38 |
| 49 | 1793215212 | mtusi2026lab3-lb-1 | 6.69% | 21.05MiB / 128MiB | 16.45% | 139MB / 145MB | 0B / 0B | 2 |
| 50 | 1793215212 | mtusi2026lab3-valkey-1 | 1.34% | 11.4MiB / 128MiB | 8.91% | 7.06MB / 7.63MB | 0B / 180kB | 6 |
| 51 | 1793215216 | mtusi2026lab3-k6-run-f3229a195126 | 12.49% | 89.99MiB / 1GiB | 8.79% | 55MB / 9.13MB | 61.4kB / 0B | 9 |
| 52 | 1793215216 | mtusi2026lab3-api-1 | 58.26% | 238.4MiB / 2GiB | 11.64% | 124MB / 174MB | 0B / 0B | 23 |
| 53 | 1793215216 | mtusi2026lab3-postgres-1 | 18.31% | 174.2MiB / 1GiB | 17.01% | 40MB / 81.7MB | 0B / 433MB | 39 |
| 54 | 1793215216 | mtusi2026lab3-lb-1 | 6.44% | 21.33MiB / 128MiB | 16.66% | 146MB / 153MB | 0B / 0B | 2 |
| 55 | 1793215216 | mtusi2026lab3-valkey-1 | 1.85% | 11.4MiB / 128MiB | 8.91% | 7.31MB / 7.91MB | 0B / 180kB | 6 |
| 56 | 1793215220 | mtusi2026lab3-k6-run-f3229a195126 | 7.82% | 90.75MiB / 1GiB | 8.86% | 58.9MB / 9.84MB | 61.4kB / 0B | 9 |
| 57 | 1793215220 | mtusi2026lab3-api-1 | 30.34% | 238.4MiB / 2GiB | 11.64% | 128MB / 180MB | 0B / 0B | 23 |
| 58 | 1793215220 | mtusi2026lab3-postgres-1 | 12.58% | 174.1MiB / 1GiB | 17.00% | 41.5MB / 84.5MB | 0B / 445MB | 38 |
| 59 | 1793215220 | mtusi2026lab3-lb-1 | 4.83% | 21.11MiB / 128MiB | 16.49% | 151MB / 158MB | 0B / 0B | 2 |
| 60 | 1793215220 | mtusi2026lab3-valkey-1 | 1.54% | 11.64MiB / 128MiB | 9.10% | 7.67MB / 8.3MB | 0B / 180kB | 6 |