forked from mtusi2026/mtusi2026lab3
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.3 KiB
5.3 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215227 | mtusi2026lab3-api-1 | 65.65% | 238.6MiB / 2GiB | 11.65% | 128MB / 181MB | 0B / 0B | 23 |
| 3 | 1793215227 | mtusi2026lab3-postgres-1 | 19.29% | 175MiB / 1GiB | 17.09% | 42.3MB / 85.8MB | 0B / 456MB | 38 |
| 4 | 1793215227 | mtusi2026lab3-lb-1 | 6.86% | 21.11MiB / 128MiB | 16.49% | 154MB / 160MB | 0B / 0B | 2 |
| 5 | 1793215227 | mtusi2026lab3-valkey-1 | 1.95% | 11.65MiB / 128MiB | 9.10% | 7.83MB / 8.46MB | 0B / 266kB | 6 |
| 6 | 1793215231 | mtusi2026lab3-k6-run-75a2814b5dfa | 11.81% | 45.56MiB / 1GiB | 4.45% | 6.76MB / 1.17MB | 0B / 0B | 8 |
| 7 | 1793215231 | mtusi2026lab3-api-1 | 51.46% | 238.5MiB / 2GiB | 11.65% | 135MB / 190MB | 0B / 0B | 23 |
| 8 | 1793215231 | mtusi2026lab3-postgres-1 | 20.62% | 176MiB / 1GiB | 17.19% | 43.9MB / 89.2MB | 0B / 485MB | 38 |
| 9 | 1793215231 | mtusi2026lab3-lb-1 | 6.84% | 20.89MiB / 128MiB | 16.32% | 160MB / 167MB | 0B / 0B | 2 |
| 10 | 1793215231 | mtusi2026lab3-valkey-1 | 1.40% | 11.64MiB / 128MiB | 9.09% | 8.12MB / 8.78MB | 0B / 266kB | 6 |
| 11 | 1793215234 | mtusi2026lab3-k6-run-75a2814b5dfa | 18.38% | 47.79MiB / 1GiB | 4.67% | 12.4MB / 2.12MB | 0B / 0B | 8 |
| 12 | 1793215234 | mtusi2026lab3-api-1 | 79.26% | 238.6MiB / 2GiB | 11.65% | 141MB / 199MB | 0B / 0B | 23 |
| 13 | 1793215234 | mtusi2026lab3-postgres-1 | 33.26% | 177.6MiB / 1GiB | 17.34% | 45.8MB / 93.1MB | 0B / 501MB | 38 |
| 14 | 1793215234 | mtusi2026lab3-lb-1 | 11.48% | 20.97MiB / 128MiB | 16.38% | 167MB / 174MB | 0B / 0B | 2 |
| 15 | 1793215234 | mtusi2026lab3-valkey-1 | 1.38% | 11.64MiB / 128MiB | 9.10% | 8.39MB / 9.06MB | 0B / 266kB | 6 |
| 16 | 1793215237 | mtusi2026lab3-k6-run-75a2814b5dfa | 10.38% | 73.08MiB / 1GiB | 7.14% | 17MB / 2.87MB | 0B / 0B | 9 |
| 17 | 1793215237 | mtusi2026lab3-api-1 | 47.62% | 240.2MiB / 2GiB | 11.73% | 146MB / 206MB | 0B / 0B | 23 |
| 18 | 1793215237 | mtusi2026lab3-postgres-1 | 19.97% | 177.9MiB / 1GiB | 17.37% | 47.3MB / 96.3MB | 0B / 512MB | 38 |
| 19 | 1793215237 | mtusi2026lab3-lb-1 | 7.05% | 21.48MiB / 128MiB | 16.78% | 172MB / 180MB | 0B / 0B | 2 |
| 20 | 1793215237 | mtusi2026lab3-valkey-1 | 1.67% | 11.42MiB / 128MiB | 8.92% | 8.69MB / 9.38MB | 0B / 266kB | 6 |
| 21 | 1793215242 | mtusi2026lab3-k6-run-75a2814b5dfa | 12.41% | 72.89MiB / 1GiB | 7.12% | 22.4MB / 3.76MB | 0B / 0B | 9 |
| 22 | 1793215242 | mtusi2026lab3-api-1 | 43.09% | 239.8MiB / 2GiB | 11.71% | 151MB / 214MB | 0B / 0B | 23 |
| 23 | 1793215242 | mtusi2026lab3-postgres-1 | 18.07% | 178.7MiB / 1GiB | 17.45% | 49.1MB / 100MB | 0B / 527MB | 38 |
| 24 | 1793215242 | mtusi2026lab3-lb-1 | 6.42% | 21.54MiB / 128MiB | 16.82% | 179MB / 187MB | 0B / 0B | 2 |
| 25 | 1793215242 | mtusi2026lab3-valkey-1 | 1.23% | 11.41MiB / 128MiB | 8.92% | 9.12MB / 9.85MB | 0B / 266kB | 6 |
| 26 | 1793215245 | mtusi2026lab3-k6-run-75a2814b5dfa | 13.56% | 74.99MiB / 1GiB | 7.32% | 28.4MB / 4.71MB | 0B / 0B | 9 |
| 27 | 1793215245 | mtusi2026lab3-api-1 | 51.63% | 240.2MiB / 2GiB | 11.73% | 158MB / 222MB | 0B / 0B | 23 |
| 28 | 1793215245 | mtusi2026lab3-postgres-1 | 21.05% | 179.7MiB / 1GiB | 17.55% | 51.1MB / 104MB | 0B / 548MB | 38 |
| 29 | 1793215245 | mtusi2026lab3-lb-1 | 6.81% | 21.02MiB / 128MiB | 16.42% | 187MB / 195MB | 0B / 0B | 2 |
| 30 | 1793215245 | mtusi2026lab3-valkey-1 | 1.92% | 11.43MiB / 128MiB | 8.93% | 9.38MB / 10.1MB | 0B / 266kB | 6 |
| 31 | 1793215249 | mtusi2026lab3-k6-run-75a2814b5dfa | 12.77% | 75.04MiB / 1GiB | 7.33% | 34.1MB / 5.64MB | 0B / 0B | 9 |
| 32 | 1793215249 | mtusi2026lab3-api-1 | 42.48% | 239.8MiB / 2GiB | 11.71% | 162MB / 228MB | 0B / 0B | 23 |
| 33 | 1793215249 | mtusi2026lab3-postgres-1 | 18.08% | 180.5MiB / 1GiB | 17.63% | 53MB / 108MB | 0B / 564MB | 38 |
| 34 | 1793215249 | mtusi2026lab3-lb-1 | 6.10% | 21.33MiB / 128MiB | 16.67% | 194MB / 202MB | 0B / 0B | 2 |
| 35 | 1793215249 | mtusi2026lab3-valkey-1 | 1.24% | 11.42MiB / 128MiB | 8.92% | 9.84MB / 10.6MB | 0B / 266kB | 6 |
| 36 | 1793215253 | mtusi2026lab3-k6-run-75a2814b5dfa | 12.16% | 75.07MiB / 1GiB | 7.33% | 39.9MB / 6.58MB | 0B / 0B | 9 |
| 37 | 1793215253 | mtusi2026lab3-api-1 | 41.42% | 240MiB / 2GiB | 11.72% | 168MB / 237MB | 0B / 0B | 23 |
| 38 | 1793215253 | mtusi2026lab3-postgres-1 | 17.99% | 181.8MiB / 1GiB | 17.75% | 54.9MB / 112MB | 0B / 580MB | 38 |
| 39 | 1793215253 | mtusi2026lab3-lb-1 | 6.21% | 21.52MiB / 128MiB | 16.81% | 201MB / 209MB | 0B / 0B | 2 |
| 40 | 1793215253 | mtusi2026lab3-valkey-1 | 1.77% | 11.39MiB / 128MiB | 8.90% | 10.2MB / 11MB | 0B / 266kB | 6 |
| 41 | 1793215256 | mtusi2026lab3-k6-run-75a2814b5dfa | 12.20% | 75.09MiB / 1GiB | 7.33% | 44.4MB / 7.35MB | 0B / 0B | 9 |
| 42 | 1793215256 | mtusi2026lab3-api-1 | 41.42% | 240.5MiB / 2GiB | 11.74% | 174MB / 246MB | 0B / 0B | 23 |
| 43 | 1793215256 | mtusi2026lab3-postgres-1 | 17.44% | 178.8MiB / 1GiB | 17.46% | 56.5MB / 115MB | 0B / 594MB | 37 |
| 44 | 1793215256 | mtusi2026lab3-lb-1 | 5.67% | 21.31MiB / 128MiB | 16.65% | 206MB / 215MB | 0B / 0B | 2 |
| 45 | 1793215256 | mtusi2026lab3-valkey-1 | 1.19% | 11.64MiB / 128MiB | 9.10% | 10.5MB / 11.3MB | 0B / 266kB | 6 |
| 46 | 1793215259 | mtusi2026lab3-k6-run-75a2814b5dfa | 12.47% | 75.16MiB / 1GiB | 7.34% | 50.5MB / 8.29MB | 0B / 0B | 9 |
| 47 | 1793215259 | mtusi2026lab3-api-1 | 41.38% | 240.1MiB / 2GiB | 11.72% | 179MB / 252MB | 0B / 0B | 23 |
| 48 | 1793215259 | mtusi2026lab3-postgres-1 | 14.37% | 179.7MiB / 1GiB | 17.54% | 58.4MB / 119MB | 0B / 610MB | 37 |
| 49 | 1793215259 | mtusi2026lab3-lb-1 | 5.48% | 21.28MiB / 128MiB | 16.63% | 214MB / 223MB | 0B / 0B | 2 |
| 50 | 1793215259 | mtusi2026lab3-valkey-1 | 1.16% | 11.4MiB / 128MiB | 8.91% | 10.8MB / 11.7MB | 0B / 266kB | 6 |
| 51 | 1793215263 | mtusi2026lab3-k6-run-75a2814b5dfa | 10.64% | 75.24MiB / 1GiB | 7.35% | 56.2MB / 9.23MB | 0B / 0B | 9 |
| 52 | 1793215263 | mtusi2026lab3-api-1 | 56.62% | 239.8MiB / 2GiB | 11.71% | 187MB / 263MB | 0B / 0B | 23 |
| 53 | 1793215263 | mtusi2026lab3-postgres-1 | 19.10% | 176.3MiB / 1GiB | 17.22% | 59.9MB / 122MB | 0B / 622MB | 36 |
| 54 | 1793215263 | mtusi2026lab3-lb-1 | 6.06% | 21.05MiB / 128MiB | 16.45% | 221MB / 230MB | 0B / 0B | 2 |
| 55 | 1793215263 | mtusi2026lab3-valkey-1 | 1.82% | 11.64MiB / 128MiB | 9.09% | 11.2MB / 12.1MB | 0B / 266kB | 6 |
| 56 | 1793215267 | mtusi2026lab3-k6-run-75a2814b5dfa | 3.81% | 77.31MiB / 1GiB | 7.55% | 59.8MB / 9.86MB | 0B / 0B | 9 |
| 57 | 1793215267 | mtusi2026lab3-api-1 | 12.50% | 239.8MiB / 2GiB | 11.71% | 191MB / 269MB | 0B / 0B | 23 |
| 58 | 1793215267 | mtusi2026lab3-postgres-1 | 15.66% | 173.5MiB / 1GiB | 16.95% | 61.7MB / 126MB | 0B / 654MB | 35 |
| 59 | 1793215267 | mtusi2026lab3-lb-1 | 2.23% | 20.8MiB / 128MiB | 16.25% | 226MB / 235MB | 0B / 0B | 2 |
| 60 | 1793215267 | mtusi2026lab3-valkey-1 | 1.37% | 11.39MiB / 128MiB | 8.90% | 11.4MB / 12.4MB | 0B / 266kB | 6 |