forked from mtusi2026/mtusi2026lab2
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 | 1793215276 | mtusi2026lab3-api-1 | 53.33% | 259.2MiB / 2GiB | 12.66% | 194MB / 273MB | 0B / 0B | 24 |
| 3 | 1793215276 | mtusi2026lab3-postgres-1 | 19.79% | 174.5MiB / 1GiB | 17.04% | 62.9MB / 128MB | 0B / 670MB | 35 |
| 4 | 1793215276 | mtusi2026lab3-lb-1 | 4.65% | 23.03MiB / 128MiB | 17.99% | 226MB / 236MB | 0B / 0B | 2 |
| 5 | 1793215276 | mtusi2026lab3-valkey-1 | 0.91% | 11.39MiB / 128MiB | 8.90% | 11.5MB / 12.5MB | 0B / 344kB | 6 |
| 6 | 1793215280 | mtusi2026lab3-k6-run-7ac6713b8f1f | 13.59% | 62.25MiB / 1GiB | 6.08% | 10.2MB / 1.76MB | 0B / 0B | 9 |
| 7 | 1793215280 | mtusi2026lab3-api-1 | 60.19% | 259.6MiB / 2GiB | 12.67% | 201MB / 284MB | 0B / 0B | 24 |
| 8 | 1793215280 | mtusi2026lab3-postgres-1 | 22.79% | 175.4MiB / 1GiB | 17.13% | 65.3MB / 133MB | 0B / 689MB | 35 |
| 9 | 1793215280 | mtusi2026lab3-lb-1 | 8.38% | 23.27MiB / 128MiB | 18.18% | 238MB / 249MB | 0B / 0B | 2 |
| 10 | 1793215280 | mtusi2026lab3-valkey-1 | 2.25% | 11.39MiB / 128MiB | 8.90% | 12.1MB / 13.1MB | 0B / 344kB | 6 |
| 11 | 1793215283 | mtusi2026lab3-k6-run-7ac6713b8f1f | 13.66% | 64.48MiB / 1GiB | 6.30% | 19.1MB / 3.16MB | 0B / 0B | 9 |
| 12 | 1793215283 | mtusi2026lab3-api-1 | 74.27% | 259.6MiB / 2GiB | 12.68% | 211MB / 297MB | 0B / 0B | 24 |
| 13 | 1793215283 | mtusi2026lab3-postgres-1 | 19.96% | 176.7MiB / 1GiB | 17.25% | 67.4MB / 137MB | 0B / 707MB | 35 |
| 14 | 1793215283 | mtusi2026lab3-lb-1 | 8.95% | 27.08MiB / 128MiB | 21.16% | 249MB / 260MB | 0B / 0B | 2 |
| 15 | 1793215283 | mtusi2026lab3-valkey-1 | 2.21% | 11.39MiB / 128MiB | 8.90% | 12.6MB / 13.7MB | 0B / 344kB | 6 |
| 16 | 1793215287 | mtusi2026lab3-k6-run-7ac6713b8f1f | 13.52% | 71.12MiB / 1GiB | 6.95% | 28.2MB / 4.58MB | 0B / 0B | 9 |
| 17 | 1793215287 | mtusi2026lab3-api-1 | 54.49% | 259.7MiB / 2GiB | 12.68% | 220MB / 310MB | 0B / 0B | 24 |
| 18 | 1793215287 | mtusi2026lab3-postgres-1 | 22.62% | 184.7MiB / 1GiB | 18.04% | 70.3MB / 144MB | 0B / 731MB | 37 |
| 19 | 1793215287 | mtusi2026lab3-lb-1 | 8.03% | 27.46MiB / 128MiB | 21.45% | 260MB / 271MB | 0B / 0B | 2 |
| 20 | 1793215287 | mtusi2026lab3-valkey-1 | 2.11% | 11.39MiB / 128MiB | 8.90% | 13.2MB / 14.3MB | 0B / 344kB | 6 |
| 21 | 1793215290 | mtusi2026lab3-k6-run-7ac6713b8f1f | 13.78% | 71.16MiB / 1GiB | 6.95% | 34.4MB / 5.6MB | 0B / 0B | 9 |
| 22 | 1793215290 | mtusi2026lab3-api-1 | 62.81% | 259.3MiB / 2GiB | 12.66% | 229MB / 322MB | 0B / 0B | 24 |
| 23 | 1793215290 | mtusi2026lab3-postgres-1 | 24.97% | 186.4MiB / 1GiB | 18.21% | 74MB / 151MB | 0B / 762MB | 37 |
| 24 | 1793215290 | mtusi2026lab3-lb-1 | 9.24% | 27.03MiB / 128MiB | 21.12% | 271MB / 282MB | 0B / 0B | 2 |
| 25 | 1793215290 | mtusi2026lab3-valkey-1 | 1.75% | 11.38MiB / 128MiB | 8.89% | 13.7MB / 14.9MB | 0B / 344kB | 6 |
| 26 | 1793215294 | mtusi2026lab3-k6-run-7ac6713b8f1f | 15.26% | 70.89MiB / 1GiB | 6.92% | 45.5MB / 7.4MB | 0B / 0B | 9 |
| 27 | 1793215294 | mtusi2026lab3-api-1 | 81.50% | 259.6MiB / 2GiB | 12.67% | 238MB / 335MB | 0B / 0B | 24 |
| 28 | 1793215294 | mtusi2026lab3-postgres-1 | 25.63% | 188MiB / 1GiB | 18.36% | 76.9MB / 157MB | 0B / 787MB | 37 |
| 29 | 1793215294 | mtusi2026lab3-lb-1 | 9.15% | 27.08MiB / 128MiB | 21.15% | 282MB / 294MB | 0B / 0B | 2 |
| 30 | 1793215294 | mtusi2026lab3-valkey-1 | 2.66% | 11.45MiB / 128MiB | 8.95% | 14.1MB / 15.3MB | 0B / 344kB | 6 |
| 31 | 1793215298 | mtusi2026lab3-k6-run-7ac6713b8f1f | 15.11% | 70.93MiB / 1GiB | 6.93% | 53.9MB / 8.81MB | 0B / 0B | 9 |
| 32 | 1793215298 | mtusi2026lab3-api-1 | 66.73% | 259.3MiB / 2GiB | 12.66% | 247MB / 348MB | 0B / 0B | 24 |
| 33 | 1793215298 | mtusi2026lab3-postgres-1 | 26.11% | 147.2MiB / 1GiB | 14.37% | 79.7MB / 163MB | 0B / 828MB | 25 |
| 34 | 1793215298 | mtusi2026lab3-lb-1 | 9.07% | 27.42MiB / 128MiB | 21.42% | 292MB / 305MB | 0B / 0B | 2 |
| 35 | 1793215298 | mtusi2026lab3-valkey-1 | 2.45% | 11.64MiB / 128MiB | 9.10% | 14.6MB / 15.9MB | 0B / 344kB | 6 |
| 36 | 1793215301 | mtusi2026lab3-k6-run-7ac6713b8f1f | 13.77% | 70.96MiB / 1GiB | 6.93% | 62.2MB / 10.2MB | 0B / 0B | 9 |
| 37 | 1793215301 | mtusi2026lab3-api-1 | 60.38% | 259.3MiB / 2GiB | 12.66% | 253MB / 357MB | 0B / 0B | 24 |
| 38 | 1793215301 | mtusi2026lab3-postgres-1 | 22.93% | 148.4MiB / 1GiB | 14.50% | 82.6MB / 169MB | 0B / 853MB | 25 |
| 39 | 1793215301 | mtusi2026lab3-lb-1 | 8.41% | 27.03MiB / 128MiB | 21.12% | 303MB / 315MB | 0B / 0B | 2 |
| 40 | 1793215301 | mtusi2026lab3-valkey-1 | 2.21% | 11.38MiB / 128MiB | 8.89% | 15.3MB / 16.6MB | 0B / 344kB | 6 |
| 41 | 1793215305 | mtusi2026lab3-k6-run-7ac6713b8f1f | 14.02% | 70.98MiB / 1GiB | 6.93% | 69.1MB / 11.4MB | 0B / 0B | 9 |
| 42 | 1793215305 | mtusi2026lab3-api-1 | 74.25% | 260.3MiB / 2GiB | 12.71% | 263MB / 370MB | 0B / 0B | 24 |
| 43 | 1793215305 | mtusi2026lab3-postgres-1 | 23.06% | 149.6MiB / 1GiB | 14.61% | 85MB / 174MB | 0B / 873MB | 25 |
| 44 | 1793215305 | mtusi2026lab3-lb-1 | 8.63% | 26.79MiB / 128MiB | 20.93% | 311MB / 324MB | 0B / 0B | 2 |
| 45 | 1793215305 | mtusi2026lab3-valkey-1 | 1.67% | 11.05MiB / 128MiB | 8.64% | 15.7MB / 17.1MB | 0B / 344kB | 6 |
| 46 | 1793215308 | mtusi2026lab3-k6-run-7ac6713b8f1f | 13.48% | 71.01MiB / 1GiB | 6.93% | 77.3MB / 12.8MB | 0B / 0B | 9 |
| 47 | 1793215308 | mtusi2026lab3-api-1 | 60.73% | 260.4MiB / 2GiB | 12.71% | 269MB / 379MB | 0B / 0B | 24 |
| 48 | 1793215308 | mtusi2026lab3-postgres-1 | 21.31% | 151MiB / 1GiB | 14.75% | 87.9MB / 179MB | 0B / 898MB | 25 |
| 49 | 1793215308 | mtusi2026lab3-lb-1 | 8.35% | 26.54MiB / 128MiB | 20.73% | 321MB / 335MB | 0B / 0B | 2 |
| 50 | 1793215308 | mtusi2026lab3-valkey-1 | 1.59% | 11.14MiB / 128MiB | 8.70% | 16.3MB / 17.7MB | 0B / 344kB | 6 |
| 51 | 1793215312 | mtusi2026lab3-k6-run-7ac6713b8f1f | 13.89% | 71.04MiB / 1GiB | 6.94% | 85.7MB / 14.2MB | 0B / 0B | 9 |
| 52 | 1793215312 | mtusi2026lab3-api-1 | 61.41% | 260.3MiB / 2GiB | 12.71% | 281MB / 395MB | 0B / 0B | 24 |
| 53 | 1793215312 | mtusi2026lab3-postgres-1 | 24.01% | 152.2MiB / 1GiB | 14.86% | 90.8MB / 185MB | 0B / 922MB | 25 |
| 54 | 1793215312 | mtusi2026lab3-lb-1 | 8.67% | 27MiB / 128MiB | 21.09% | 332MB / 346MB | 0B / 0B | 2 |
| 55 | 1793215312 | mtusi2026lab3-valkey-1 | 1.67% | 11.3MiB / 128MiB | 8.83% | 16.7MB / 18.1MB | 0B / 344kB | 6 |
| 56 | 1793215315 | mtusi2026lab3-k6-run-7ac6713b8f1f | 13.30% | 73.08MiB / 1GiB | 7.14% | 92.9MB / 15.4MB | 0B / 0B | 9 |
| 57 | 1793215315 | mtusi2026lab3-api-1 | 50.88% | 260.8MiB / 2GiB | 12.73% | 288MB / 406MB | 0B / 0B | 24 |
| 58 | 1793215315 | mtusi2026lab3-postgres-1 | 19.83% | 153.9MiB / 1GiB | 15.02% | 93.2MB / 190MB | 0B / 942MB | 31 |
| 59 | 1793215315 | mtusi2026lab3-lb-1 | 7.55% | 26.51MiB / 128MiB | 20.71% | 341MB / 355MB | 0B / 0B | 2 |
| 60 | 1793215315 | mtusi2026lab3-valkey-1 | 2.12% | 11.05MiB / 128MiB | 8.63% | 17.2MB / 18.7MB | 0B / 344kB | 6 |