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.8 KiB
5.8 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216276 | mtusi2026lab3-api-1 | 41.08% | 165.9MiB / 1GiB | 16.20% | 98.5MB / 138MB | 0B / 0B | 13 |
| 3 | 1793216276 | mtusi2026lab3-api-2 | 35.73% | 170.7MiB / 1GiB | 16.67% | 100MB / 141MB | 0B / 0B | 13 |
| 4 | 1793216276 | mtusi2026lab3-postgres-1 | 24.46% | 129.5MiB / 1GiB | 12.64% | 64.4MB / 132MB | 86kB / 692MB | 22 |
| 5 | 1793216276 | mtusi2026lab3-lb-1 | 9.08% | 11.96MiB / 128MiB | 9.34% | 236MB / 247MB | 0B / 0B | 2 |
| 6 | 1793216276 | mtusi2026lab3-valkey-1 | 2.45% | 10.85MiB / 128MiB | 8.47% | 11.8MB / 12.9MB | 0B / 348kB | 6 |
| 7 | 1793216280 | mtusi2026lab3-k6-run-9767d78377dc | 17.72% | 64.4MiB / 1GiB | 6.29% | 11.9MB / 2MB | 16.4kB / 0B | 9 |
| 8 | 1793216280 | mtusi2026lab3-api-1 | 38.73% | 167.3MiB / 1GiB | 16.34% | 104MB / 147MB | 0B / 0B | 13 |
| 9 | 1793216280 | mtusi2026lab3-api-2 | 38.51% | 170.7MiB / 1GiB | 16.67% | 105MB / 148MB | 0B / 0B | 13 |
| 10 | 1793216280 | mtusi2026lab3-postgres-1 | 27.73% | 130.7MiB / 1GiB | 12.77% | 67.2MB / 138MB | 86kB / 716MB | 22 |
| 11 | 1793216280 | mtusi2026lab3-lb-1 | 9.30% | 12.2MiB / 128MiB | 9.53% | 247MB / 258MB | 0B / 0B | 2 |
| 12 | 1793216280 | mtusi2026lab3-valkey-1 | 1.90% | 10.85MiB / 128MiB | 8.47% | 12.2MB / 13.3MB | 0B / 348kB | 6 |
| 13 | 1793216283 | mtusi2026lab3-k6-run-9767d78377dc | 17.67% | 64.57MiB / 1GiB | 6.31% | 20.6MB / 3.39MB | 16.4kB / 0B | 9 |
| 14 | 1793216283 | mtusi2026lab3-api-1 | 39.45% | 167.1MiB / 1GiB | 16.32% | 108MB / 151MB | 0B / 0B | 13 |
| 15 | 1793216283 | mtusi2026lab3-api-2 | 43.82% | 180.8MiB / 1GiB | 17.66% | 109MB / 154MB | 0B / 0B | 14 |
| 16 | 1793216283 | mtusi2026lab3-postgres-1 | 28.22% | 132MiB / 1GiB | 12.89% | 70.1MB / 144MB | 86kB / 741MB | 22 |
| 17 | 1793216283 | mtusi2026lab3-lb-1 | 8.63% | 11.92MiB / 128MiB | 9.31% | 258MB / 269MB | 0B / 0B | 2 |
| 18 | 1793216283 | mtusi2026lab3-valkey-1 | 1.89% | 10.85MiB / 128MiB | 8.47% | 12.9MB / 14.1MB | 0B / 348kB | 6 |
| 19 | 1793216287 | mtusi2026lab3-k6-run-9767d78377dc | 17.69% | 71.2MiB / 1GiB | 6.95% | 29.3MB / 4.81MB | 16.4kB / 0B | 9 |
| 20 | 1793216287 | mtusi2026lab3-api-1 | 37.83% | 182.9MiB / 1GiB | 17.86% | 113MB / 159MB | 0B / 0B | 13 |
| 21 | 1793216287 | mtusi2026lab3-api-2 | 37.86% | 170.7MiB / 1GiB | 16.67% | 114MB / 160MB | 0B / 0B | 13 |
| 22 | 1793216287 | mtusi2026lab3-postgres-1 | 27.93% | 136.9MiB / 1GiB | 13.37% | 73MB / 150MB | 86kB / 768MB | 23 |
| 23 | 1793216287 | mtusi2026lab3-lb-1 | 8.58% | 12.85MiB / 128MiB | 10.04% | 266MB / 278MB | 0B / 0B | 2 |
| 24 | 1793216287 | mtusi2026lab3-valkey-1 | 1.94% | 10.85MiB / 128MiB | 8.47% | 13.4MB / 14.7MB | 0B / 348kB | 6 |
| 25 | 1793216291 | mtusi2026lab3-k6-run-9767d78377dc | 15.65% | 70.91MiB / 1GiB | 6.93% | 37.6MB / 6.22MB | 16.4kB / 0B | 9 |
| 26 | 1793216291 | mtusi2026lab3-api-1 | 41.82% | 182.6MiB / 1GiB | 17.83% | 117MB / 164MB | 0B / 0B | 13 |
| 27 | 1793216291 | mtusi2026lab3-api-2 | 37.64% | 183.5MiB / 1GiB | 17.92% | 118MB / 166MB | 0B / 0B | 13 |
| 28 | 1793216291 | mtusi2026lab3-postgres-1 | 27.88% | 135MiB / 1GiB | 13.19% | 75.9MB / 156MB | 86kB / 794MB | 22 |
| 29 | 1793216291 | mtusi2026lab3-lb-1 | 8.60% | 12.72MiB / 128MiB | 9.94% | 279MB / 291MB | 0B / 0B | 2 |
| 30 | 1793216291 | mtusi2026lab3-valkey-1 | 2.46% | 10.85MiB / 128MiB | 8.47% | 13.9MB / 15.2MB | 0B / 348kB | 6 |
| 31 | 1793216294 | mtusi2026lab3-k6-run-9767d78377dc | 15.80% | 70.96MiB / 1GiB | 6.93% | 45.4MB / 7.37MB | 16.4kB / 0B | 9 |
| 32 | 1793216294 | mtusi2026lab3-api-1 | 50.79% | 195.4MiB / 1GiB | 19.08% | 122MB / 171MB | 0B / 0B | 14 |
| 33 | 1793216294 | mtusi2026lab3-api-2 | 50.46% | 196MiB / 1GiB | 19.14% | 122MB / 172MB | 0B / 0B | 14 |
| 34 | 1793216294 | mtusi2026lab3-postgres-1 | 34.50% | 149.3MiB / 1GiB | 14.58% | 78.3MB / 161MB | 86kB / 832MB | 26 |
| 35 | 1793216294 | mtusi2026lab3-lb-1 | 9.15% | 12.43MiB / 128MiB | 9.71% | 289MB / 301MB | 0B / 0B | 2 |
| 36 | 1793216294 | mtusi2026lab3-valkey-1 | 1.90% | 10.85MiB / 128MiB | 8.48% | 14.4MB / 15.7MB | 0B / 348kB | 6 |
| 37 | 1793216297 | mtusi2026lab3-k6-run-9767d78377dc | 15.92% | 70.99MiB / 1GiB | 6.93% | 53.8MB / 8.78MB | 16.4kB / 0B | 9 |
| 38 | 1793216297 | mtusi2026lab3-api-1 | 37.53% | 183.4MiB / 1GiB | 17.91% | 126MB / 177MB | 0B / 0B | 13 |
| 39 | 1793216297 | mtusi2026lab3-api-2 | 37.12% | 183.8MiB / 1GiB | 17.95% | 127MB / 178MB | 0B / 0B | 13 |
| 40 | 1793216297 | mtusi2026lab3-postgres-1 | 27.58% | 150.9MiB / 1GiB | 14.74% | 81.2MB / 167MB | 86kB / 857MB | 26 |
| 41 | 1793216297 | mtusi2026lab3-lb-1 | 8.55% | 12.16MiB / 128MiB | 9.50% | 299MB / 312MB | 0B / 0B | 2 |
| 42 | 1793216297 | mtusi2026lab3-valkey-1 | 2.48% | 10.85MiB / 128MiB | 8.47% | 14.8MB / 16.2MB | 0B / 348kB | 6 |
| 43 | 1793216301 | mtusi2026lab3-k6-run-9767d78377dc | 18.05% | 73.03MiB / 1GiB | 7.13% | 62.7MB / 10.2MB | 16.4kB / 0B | 9 |
| 44 | 1793216301 | mtusi2026lab3-api-1 | 37.72% | 183.4MiB / 1GiB | 17.91% | 131MB / 184MB | 0B / 0B | 13 |
| 45 | 1793216301 | mtusi2026lab3-api-2 | 37.42% | 183.8MiB / 1GiB | 17.95% | 131MB / 185MB | 0B / 0B | 13 |
| 46 | 1793216301 | mtusi2026lab3-postgres-1 | 28.53% | 152.5MiB / 1GiB | 14.89% | 84.1MB / 173MB | 86kB / 881MB | 26 |
| 47 | 1793216301 | mtusi2026lab3-lb-1 | 8.64% | 12.2MiB / 128MiB | 9.53% | 310MB / 324MB | 0B / 0B | 2 |
| 48 | 1793216301 | mtusi2026lab3-valkey-1 | 2.47% | 10.85MiB / 128MiB | 8.47% | 15.3MB / 16.7MB | 0B / 348kB | 6 |
| 49 | 1793216305 | mtusi2026lab3-k6-run-9767d78377dc | 16.41% | 73.05MiB / 1GiB | 7.13% | 70.5MB / 11.4MB | 16.4kB / 0B | 9 |
| 50 | 1793216305 | mtusi2026lab3-api-1 | 51.98% | 183.4MiB / 1GiB | 17.91% | 135MB / 190MB | 0B / 0B | 13 |
| 51 | 1793216305 | mtusi2026lab3-api-2 | 51.64% | 183.3MiB / 1GiB | 17.90% | 135MB / 190MB | 0B / 0B | 13 |
| 52 | 1793216305 | mtusi2026lab3-postgres-1 | 28.09% | 154.1MiB / 1GiB | 15.05% | 86.6MB / 179MB | 86kB / 905MB | 26 |
| 53 | 1793216305 | mtusi2026lab3-lb-1 | 9.35% | 12.45MiB / 128MiB | 9.72% | 320MB / 334MB | 0B / 0B | 2 |
| 54 | 1793216305 | mtusi2026lab3-valkey-1 | 2.52% | 10.84MiB / 128MiB | 8.47% | 15.9MB / 17.4MB | 0B / 348kB | 6 |
| 55 | 1793216308 | mtusi2026lab3-k6-run-9767d78377dc | 14.60% | 73.06MiB / 1GiB | 7.14% | 79.7MB / 12.8MB | 16.4kB / 0B | 9 |
| 56 | 1793216308 | mtusi2026lab3-api-1 | 31.40% | 185.9MiB / 1GiB | 18.15% | 139MB / 196MB | 0B / 0B | 13 |
| 57 | 1793216308 | mtusi2026lab3-api-2 | 32.07% | 183.4MiB / 1GiB | 17.91% | 140MB / 197MB | 0B / 0B | 13 |
| 58 | 1793216308 | mtusi2026lab3-postgres-1 | 22.42% | 159.1MiB / 1GiB | 15.53% | 89.5MB / 185MB | 86kB / 928MB | 27 |
| 59 | 1793216308 | mtusi2026lab3-lb-1 | 8.19% | 12.43MiB / 128MiB | 9.71% | 328MB / 342MB | 0B / 0B | 2 |
| 60 | 1793216308 | mtusi2026lab3-valkey-1 | 1.71% | 10.84MiB / 128MiB | 8.47% | 16.4MB / 18MB | 0B / 348kB | 6 |
| 61 | 1793216312 | mtusi2026lab3-k6-run-9767d78377dc | 16.16% | 73.09MiB / 1GiB | 7.14% | 87.9MB / 14.2MB | 16.4kB / 0B | 9 |
| 62 | 1793216312 | mtusi2026lab3-api-1 | 37.75% | 185.9MiB / 1GiB | 18.16% | 144MB / 202MB | 0B / 0B | 13 |
| 63 | 1793216312 | mtusi2026lab3-api-2 | 38.47% | 183.6MiB / 1GiB | 17.93% | 144MB / 203MB | 0B / 0B | 13 |
| 64 | 1793216312 | mtusi2026lab3-postgres-1 | 28.99% | 160.3MiB / 1GiB | 15.66% | 92.4MB / 191MB | 86kB / 953MB | 27 |
| 65 | 1793216312 | mtusi2026lab3-lb-1 | 8.71% | 12.2MiB / 128MiB | 9.53% | 341MB / 356MB | 0B / 0B | 2 |
| 66 | 1793216312 | mtusi2026lab3-valkey-1 | 2.34% | 10.84MiB / 128MiB | 8.47% | 16.8MB / 18.4MB | 0B / 348kB | 6 |