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
4.9 KiB
4.9 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215370 | mtusi2026lab3-api-1 | 53.74% | 286MiB / 2GiB | 13.97% | 390MB / 549MB | 0B / 0B | 24 |
| 3 | 1793215370 | mtusi2026lab3-postgres-1 | 20.21% | 183.8MiB / 1GiB | 17.95% | 126MB / 258MB | 0B / 1.28GB | 29 |
| 4 | 1793215370 | mtusi2026lab3-lb-1 | 7.80% | 26.8MiB / 128MiB | 20.94% | 462MB / 481MB | 0B / 0B | 2 |
| 5 | 1793215370 | mtusi2026lab3-valkey-1 | 0.95% | 11.06MiB / 128MiB | 8.64% | 23.1MB / 25.1MB | 0B / 516kB | 6 |
| 6 | 1793215373 | mtusi2026lab3-k6-run-45fb1d89b3b9 | 16.23% | 62.34MiB / 1GiB | 6.09% | 9.52MB / 1.63MB | 0B / 0B | 9 |
| 7 | 1793215373 | mtusi2026lab3-api-1 | 58.85% | 286MiB / 2GiB | 13.97% | 399MB / 562MB | 0B / 0B | 24 |
| 8 | 1793215373 | mtusi2026lab3-postgres-1 | 22.91% | 184.9MiB / 1GiB | 18.06% | 129MB / 264MB | 0B / 1.3GB | 29 |
| 9 | 1793215373 | mtusi2026lab3-lb-1 | 8.16% | 27.02MiB / 128MiB | 21.11% | 473MB / 493MB | 0B / 0B | 2 |
| 10 | 1793215373 | mtusi2026lab3-valkey-1 | 1.63% | 11.06MiB / 128MiB | 8.64% | 23.8MB / 25.9MB | 0B / 516kB | 6 |
| 11 | 1793215377 | mtusi2026lab3-k6-run-45fb1d89b3b9 | 14.40% | 64.54MiB / 1GiB | 6.30% | 18.9MB / 3.15MB | 0B / 0B | 9 |
| 12 | 1793215377 | mtusi2026lab3-api-1 | 75.91% | 285.9MiB / 2GiB | 13.96% | 407MB / 573MB | 0B / 0B | 24 |
| 13 | 1793215377 | mtusi2026lab3-postgres-1 | 25.21% | 186.1MiB / 1GiB | 18.17% | 131MB / 269MB | 0B / 1.32GB | 29 |
| 14 | 1793215377 | mtusi2026lab3-lb-1 | 9.19% | 26.82MiB / 128MiB | 20.96% | 481MB / 502MB | 0B / 0B | 2 |
| 15 | 1793215377 | mtusi2026lab3-valkey-1 | 2.29% | 11.06MiB / 128MiB | 8.64% | 24.2MB / 26.4MB | 0B / 516kB | 6 |
| 16 | 1793215380 | mtusi2026lab3-k6-run-45fb1d89b3b9 | 13.50% | 71.16MiB / 1GiB | 6.95% | 27.6MB / 4.57MB | 0B / 0B | 9 |
| 17 | 1793215380 | mtusi2026lab3-api-1 | 61.03% | 285.8MiB / 2GiB | 13.95% | 416MB / 586MB | 0B / 0B | 24 |
| 18 | 1793215380 | mtusi2026lab3-postgres-1 | 24.34% | 188.2MiB / 1GiB | 18.38% | 134MB / 275MB | 0B / 1.36GB | 29 |
| 19 | 1793215380 | mtusi2026lab3-lb-1 | 9.19% | 27.18MiB / 128MiB | 21.23% | 492MB / 513MB | 0B / 0B | 2 |
| 20 | 1793215380 | mtusi2026lab3-valkey-1 | 1.61% | 11.05MiB / 128MiB | 8.63% | 24.6MB / 26.8MB | 0B / 516kB | 6 |
| 21 | 1793215384 | mtusi2026lab3-k6-run-45fb1d89b3b9 | 15.67% | 70.93MiB / 1GiB | 6.93% | 36.5MB / 5.98MB | 0B / 0B | 9 |
| 22 | 1793215384 | mtusi2026lab3-api-1 | 59.87% | 286MiB / 2GiB | 13.97% | 425MB / 599MB | 0B / 0B | 24 |
| 23 | 1793215384 | mtusi2026lab3-postgres-1 | 23.97% | 190MiB / 1GiB | 18.55% | 137MB / 281MB | 0B / 1.39GB | 29 |
| 24 | 1793215384 | mtusi2026lab3-lb-1 | 8.42% | 27.15MiB / 128MiB | 21.21% | 500MB / 522MB | 0B / 0B | 2 |
| 25 | 1793215384 | mtusi2026lab3-valkey-1 | 1.67% | 11.05MiB / 128MiB | 8.64% | 25.3MB / 27.5MB | 0B / 516kB | 6 |
| 26 | 1793215388 | mtusi2026lab3-k6-run-45fb1d89b3b9 | 14.24% | 70.99MiB / 1GiB | 6.93% | 42.9MB / 7.01MB | 0B / 0B | 9 |
| 27 | 1793215388 | mtusi2026lab3-api-1 | 69.47% | 289MiB / 2GiB | 14.11% | 434MB / 611MB | 0B / 0B | 24 |
| 28 | 1793215388 | mtusi2026lab3-postgres-1 | 27.11% | 187.6MiB / 1GiB | 18.32% | 140MB / 287MB | 0B / 1.41GB | 28 |
| 29 | 1793215388 | mtusi2026lab3-lb-1 | 9.33% | 26.75MiB / 128MiB | 20.90% | 514MB / 536MB | 0B / 0B | 2 |
| 30 | 1793215388 | mtusi2026lab3-valkey-1 | 1.88% | 11.05MiB / 128MiB | 8.64% | 25.8MB / 28.1MB | 0B / 516kB | 6 |
| 31 | 1793215391 | mtusi2026lab3-k6-run-45fb1d89b3b9 | 15.44% | 71.04MiB / 1GiB | 6.94% | 53.9MB / 8.8MB | 0B / 0B | 9 |
| 32 | 1793215391 | mtusi2026lab3-api-1 | 71.03% | 288.6MiB / 2GiB | 14.09% | 443MB / 624MB | 0B / 0B | 24 |
| 33 | 1793215391 | mtusi2026lab3-postgres-1 | 22.58% | 181.5MiB / 1GiB | 17.72% | 143MB / 293MB | 0B / 1.44GB | 26 |
| 34 | 1793215391 | mtusi2026lab3-lb-1 | 8.24% | 26.8MiB / 128MiB | 20.94% | 525MB / 547MB | 0B / 0B | 2 |
| 35 | 1793215391 | mtusi2026lab3-valkey-1 | 2.20% | 11.1MiB / 128MiB | 8.67% | 26.2MB / 28.5MB | 0B / 516kB | 6 |
| 36 | 1793215395 | mtusi2026lab3-k6-run-45fb1d89b3b9 | 13.88% | 71.07MiB / 1GiB | 6.94% | 61.9MB / 10.2MB | 0B / 0B | 9 |
| 37 | 1793215395 | mtusi2026lab3-api-1 | 58.86% | 288.7MiB / 2GiB | 14.10% | 452MB / 636MB | 0B / 0B | 24 |
| 38 | 1793215395 | mtusi2026lab3-postgres-1 | 24.02% | 175.6MiB / 1GiB | 17.14% | 145MB / 297MB | 0B / 1.46GB | 24 |
| 39 | 1793215395 | mtusi2026lab3-lb-1 | 8.42% | 26.78MiB / 128MiB | 20.92% | 535MB / 557MB | 0B / 0B | 2 |
| 40 | 1793215395 | mtusi2026lab3-valkey-1 | 2.21% | 11.05MiB / 128MiB | 8.64% | 26.9MB / 29.3MB | 0B / 516kB | 6 |
| 41 | 1793215399 | mtusi2026lab3-k6-run-45fb1d89b3b9 | 14.48% | 71.09MiB / 1GiB | 6.94% | 70.2MB / 11.6MB | 0B / 0B | 9 |
| 42 | 1793215399 | mtusi2026lab3-api-1 | 57.70% | 292.1MiB / 2GiB | 14.26% | 460MB / 649MB | 0B / 0B | 24 |
| 43 | 1793215399 | mtusi2026lab3-postgres-1 | 23.72% | 177.2MiB / 1GiB | 17.31% | 149MB / 304MB | 0B / 1.5GB | 24 |
| 44 | 1793215399 | mtusi2026lab3-lb-1 | 8.39% | 27.24MiB / 128MiB | 21.28% | 545MB / 568MB | 0B / 0B | 2 |
| 45 | 1793215399 | mtusi2026lab3-valkey-1 | 1.57% | 11.06MiB / 128MiB | 8.64% | 27.3MB / 29.7MB | 0B / 516kB | 6 |
| 46 | 1793215402 | mtusi2026lab3-k6-run-45fb1d89b3b9 | 15.20% | 73.12MiB / 1GiB | 7.14% | 77.7MB / 12.8MB | 0B / 0B | 9 |
| 47 | 1793215402 | mtusi2026lab3-api-1 | 79.37% | 292.1MiB / 2GiB | 14.26% | 468MB / 659MB | 0B / 0B | 24 |
| 48 | 1793215402 | mtusi2026lab3-postgres-1 | 26.61% | 188.9MiB / 1GiB | 18.45% | 151MB / 309MB | 0B / 1.53GB | 27 |
| 49 | 1793215402 | mtusi2026lab3-lb-1 | 9.07% | 27.04MiB / 128MiB | 21.12% | 554MB / 578MB | 0B / 0B | 2 |
| 50 | 1793215402 | mtusi2026lab3-valkey-1 | 1.84% | 11.3MiB / 128MiB | 8.83% | 27.9MB / 30.4MB | 0B / 516kB | 6 |
| 51 | 1793215405 | mtusi2026lab3-k6-run-45fb1d89b3b9 | 14.30% | 73.13MiB / 1GiB | 7.14% | 86.7MB / 14.2MB | 0B / 0B | 9 |
| 52 | 1793215405 | mtusi2026lab3-api-1 | 58.15% | 292MiB / 2GiB | 14.26% | 475MB / 669MB | 0B / 0B | 24 |
| 53 | 1793215405 | mtusi2026lab3-postgres-1 | 23.52% | 193.9MiB / 1GiB | 18.94% | 154MB / 315MB | 0B / 1.56GB | 28 |
| 54 | 1793215405 | mtusi2026lab3-lb-1 | 7.64% | 27.01MiB / 128MiB | 21.10% | 565MB / 589MB | 0B / 0B | 2 |
| 55 | 1793215405 | mtusi2026lab3-valkey-1 | 1.55% | 11.06MiB / 128MiB | 8.64% | 28.4MB / 30.9MB | 0B / 516kB | 6 |