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.8 KiB
5.8 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216370 | mtusi2026lab3-api-1 | 36.91% | 186.3MiB / 1GiB | 18.19% | 196MB / 276MB | 0B / 0B | 13 |
| 3 | 1793216370 | mtusi2026lab3-api-2 | 31.63% | 183.7MiB / 1GiB | 17.94% | 198MB / 279MB | 0B / 0B | 13 |
| 4 | 1793216370 | mtusi2026lab3-postgres-1 | 22.21% | 209.6MiB / 1GiB | 20.47% | 128MB / 262MB | 86kB / 1.3GB | 36 |
| 5 | 1793216370 | mtusi2026lab3-lb-1 | 8.44% | 13.57MiB / 128MiB | 10.60% | 469MB / 489MB | 0B / 0B | 2 |
| 6 | 1793216370 | mtusi2026lab3-valkey-1 | 2.30% | 11.04MiB / 128MiB | 8.62% | 23.4MB / 25.6MB | 0B / 520kB | 6 |
| 7 | 1793216373 | mtusi2026lab3-k6-run-9e740496e907 | 13.66% | 62.36MiB / 1GiB | 6.09% | 11.9MB / 2MB | 0B / 0B | 9 |
| 8 | 1793216373 | mtusi2026lab3-api-1 | 31.67% | 186.6MiB / 1GiB | 18.22% | 202MB / 285MB | 0B / 0B | 13 |
| 9 | 1793216373 | mtusi2026lab3-api-2 | 32.37% | 183.7MiB / 1GiB | 17.94% | 203MB / 286MB | 0B / 0B | 13 |
| 10 | 1793216373 | mtusi2026lab3-postgres-1 | 24.11% | 211MiB / 1GiB | 20.60% | 130MB / 268MB | 86kB / 1.33GB | 36 |
| 11 | 1793216373 | mtusi2026lab3-lb-1 | 8.38% | 13.03MiB / 128MiB | 10.18% | 480MB / 500MB | 0B / 0B | 2 |
| 12 | 1793216373 | mtusi2026lab3-valkey-1 | 1.75% | 11.04MiB / 128MiB | 8.62% | 23.8MB / 26MB | 0B / 520kB | 6 |
| 13 | 1793216377 | mtusi2026lab3-k6-run-9e740496e907 | 14.25% | 64.53MiB / 1GiB | 6.30% | 20.6MB / 3.4MB | 0B / 0B | 9 |
| 14 | 1793216377 | mtusi2026lab3-api-1 | 45.90% | 186.3MiB / 1GiB | 18.20% | 207MB / 291MB | 0B / 0B | 13 |
| 15 | 1793216377 | mtusi2026lab3-api-2 | 46.00% | 183.7MiB / 1GiB | 17.94% | 207MB / 292MB | 0B / 0B | 13 |
| 16 | 1793216377 | mtusi2026lab3-postgres-1 | 26.25% | 212.8MiB / 1GiB | 20.78% | 133MB / 274MB | 86kB / 1.37GB | 36 |
| 17 | 1793216377 | mtusi2026lab3-lb-1 | 8.47% | 13.53MiB / 128MiB | 10.57% | 488MB / 509MB | 0B / 0B | 2 |
| 18 | 1793216377 | mtusi2026lab3-valkey-1 | 1.71% | 11.04MiB / 128MiB | 8.62% | 24.4MB / 26.8MB | 0B / 520kB | 6 |
| 19 | 1793216381 | mtusi2026lab3-k6-run-9e740496e907 | 13.56% | 71.18MiB / 1GiB | 6.95% | 29.2MB / 4.81MB | 0B / 0B | 9 |
| 20 | 1793216381 | mtusi2026lab3-api-1 | 31.38% | 186.6MiB / 1GiB | 18.22% | 211MB / 298MB | 0B / 0B | 13 |
| 21 | 1793216381 | mtusi2026lab3-api-2 | 31.22% | 183.7MiB / 1GiB | 17.94% | 212MB / 299MB | 0B / 0B | 13 |
| 22 | 1793216381 | mtusi2026lab3-postgres-1 | 24.58% | 213.9MiB / 1GiB | 20.89% | 136MB / 280MB | 86kB / 1.39GB | 36 |
| 23 | 1793216381 | mtusi2026lab3-lb-1 | 8.00% | 13.8MiB / 128MiB | 10.78% | 501MB / 523MB | 0B / 0B | 2 |
| 24 | 1793216381 | mtusi2026lab3-valkey-1 | 2.36% | 11.02MiB / 128MiB | 8.61% | 24.8MB / 27.2MB | 0B / 520kB | 6 |
| 25 | 1793216384 | mtusi2026lab3-k6-run-9e740496e907 | 13.73% | 70.92MiB / 1GiB | 6.93% | 37.7MB / 6.22MB | 0B / 0B | 9 |
| 26 | 1793216384 | mtusi2026lab3-api-1 | 30.83% | 186.3MiB / 1GiB | 18.19% | 216MB / 304MB | 0B / 0B | 13 |
| 27 | 1793216384 | mtusi2026lab3-api-2 | 31.24% | 183.8MiB / 1GiB | 17.94% | 216MB / 305MB | 0B / 0B | 13 |
| 28 | 1793216384 | mtusi2026lab3-postgres-1 | 22.82% | 215.2MiB / 1GiB | 21.02% | 139MB / 286MB | 86kB / 1.41GB | 36 |
| 29 | 1793216384 | mtusi2026lab3-lb-1 | 7.92% | 13.34MiB / 128MiB | 10.42% | 512MB / 534MB | 0B / 0B | 2 |
| 30 | 1793216384 | mtusi2026lab3-valkey-1 | 1.68% | 11.02MiB / 128MiB | 8.61% | 25.4MB / 27.8MB | 0B / 520kB | 6 |
| 31 | 1793216388 | mtusi2026lab3-k6-run-9e740496e907 | 14.50% | 71.2MiB / 1GiB | 6.95% | 46.3MB / 7.63MB | 0B / 0B | 9 |
| 32 | 1793216388 | mtusi2026lab3-api-1 | 32.02% | 186.6MiB / 1GiB | 18.22% | 220MB / 310MB | 0B / 0B | 13 |
| 33 | 1793216388 | mtusi2026lab3-api-2 | 32.15% | 184MiB / 1GiB | 17.97% | 221MB / 311MB | 0B / 0B | 13 |
| 34 | 1793216388 | mtusi2026lab3-postgres-1 | 25.19% | 216.4MiB / 1GiB | 21.13% | 141MB / 290MB | 86kB / 1.43GB | 36 |
| 35 | 1793216388 | mtusi2026lab3-lb-1 | 8.45% | 13.8MiB / 128MiB | 10.78% | 522MB / 545MB | 0B / 0B | 2 |
| 36 | 1793216388 | mtusi2026lab3-valkey-1 | 2.23% | 11.02MiB / 128MiB | 8.61% | 26MB / 28.5MB | 0B / 520kB | 6 |
| 37 | 1793216392 | mtusi2026lab3-k6-run-9e740496e907 | 13.40% | 70.97MiB / 1GiB | 6.93% | 53.7MB / 8.78MB | 0B / 0B | 9 |
| 38 | 1793216392 | mtusi2026lab3-api-1 | 31.20% | 186.6MiB / 1GiB | 18.23% | 224MB / 315MB | 0B / 0B | 13 |
| 39 | 1793216392 | mtusi2026lab3-api-2 | 31.63% | 183.8MiB / 1GiB | 17.95% | 225MB / 317MB | 0B / 0B | 13 |
| 40 | 1793216392 | mtusi2026lab3-postgres-1 | 22.65% | 214.3MiB / 1GiB | 20.93% | 144MB / 297MB | 86kB / 1.46GB | 35 |
| 41 | 1793216392 | mtusi2026lab3-lb-1 | 7.63% | 13.58MiB / 128MiB | 10.61% | 532MB / 554MB | 0B / 0B | 2 |
| 42 | 1793216392 | mtusi2026lab3-valkey-1 | 1.58% | 11.02MiB / 128MiB | 8.61% | 26.5MB / 29MB | 0B / 520kB | 6 |
| 43 | 1793216395 | mtusi2026lab3-k6-run-9e740496e907 | 13.95% | 71MiB / 1GiB | 6.93% | 62.6MB / 10.2MB | 0B / 0B | 9 |
| 44 | 1793216395 | mtusi2026lab3-api-1 | 31.95% | 186.4MiB / 1GiB | 18.20% | 229MB / 322MB | 0B / 0B | 13 |
| 45 | 1793216395 | mtusi2026lab3-api-2 | 32.56% | 184MiB / 1GiB | 17.97% | 228MB / 321MB | 0B / 0B | 13 |
| 46 | 1793216395 | mtusi2026lab3-postgres-1 | 26.15% | 186.5MiB / 1GiB | 18.21% | 147MB / 303MB | 86kB / 1.48GB | 27 |
| 47 | 1793216395 | mtusi2026lab3-lb-1 | 8.02% | 13.56MiB / 128MiB | 10.60% | 542MB / 566MB | 0B / 0B | 2 |
| 48 | 1793216395 | mtusi2026lab3-valkey-1 | 1.69% | 11.02MiB / 128MiB | 8.61% | 27MB / 29.6MB | 0B / 520kB | 6 |
| 49 | 1793216398 | mtusi2026lab3-k6-run-9e740496e907 | 14.13% | 71.02MiB / 1GiB | 6.94% | 71.2MB / 11.6MB | 0B / 0B | 9 |
| 50 | 1793216398 | mtusi2026lab3-api-1 | 30.75% | 186.5MiB / 1GiB | 18.21% | 233MB / 328MB | 0B / 0B | 13 |
| 51 | 1793216398 | mtusi2026lab3-api-2 | 30.80% | 183.8MiB / 1GiB | 17.94% | 234MB / 329MB | 0B / 0B | 13 |
| 52 | 1793216398 | mtusi2026lab3-postgres-1 | 23.43% | 188.2MiB / 1GiB | 18.37% | 150MB / 309MB | 86kB / 1.52GB | 27 |
| 53 | 1793216398 | mtusi2026lab3-lb-1 | 8.22% | 13.56MiB / 128MiB | 10.59% | 553MB / 577MB | 0B / 0B | 2 |
| 54 | 1793216398 | mtusi2026lab3-valkey-1 | 1.66% | 11.04MiB / 128MiB | 8.62% | 27.4MB / 30MB | 0B / 520kB | 6 |
| 55 | 1793216402 | mtusi2026lab3-k6-run-9e740496e907 | 14.33% | 71.04MiB / 1GiB | 6.94% | 79MB / 12.8MB | 0B / 0B | 9 |
| 56 | 1793216402 | mtusi2026lab3-api-1 | 32.67% | 186.4MiB / 1GiB | 18.20% | 237MB / 334MB | 0B / 0B | 13 |
| 57 | 1793216402 | mtusi2026lab3-api-2 | 33.12% | 183.7MiB / 1GiB | 17.94% | 238MB / 335MB | 0B / 0B | 13 |
| 58 | 1793216402 | mtusi2026lab3-postgres-1 | 25.79% | 189.6MiB / 1GiB | 18.51% | 153MB / 314MB | 86kB / 1.56GB | 27 |
| 59 | 1793216402 | mtusi2026lab3-lb-1 | 8.70% | 13.37MiB / 128MiB | 10.44% | 563MB / 587MB | 0B / 0B | 2 |
| 60 | 1793216402 | mtusi2026lab3-valkey-1 | 1.72% | 11.02MiB / 128MiB | 8.61% | 28MB / 30.7MB | 0B / 520kB | 6 |
| 61 | 1793216405 | mtusi2026lab3-k6-run-9e740496e907 | 13.80% | 73.19MiB / 1GiB | 7.15% | 87.8MB / 14.2MB | 0B / 0B | 9 |
| 62 | 1793216405 | mtusi2026lab3-api-1 | 31.33% | 186.5MiB / 1GiB | 18.21% | 242MB / 340MB | 0B / 0B | 13 |
| 63 | 1793216405 | mtusi2026lab3-api-2 | 31.73% | 184.1MiB / 1GiB | 17.98% | 242MB / 342MB | 0B / 0B | 13 |
| 64 | 1793216405 | mtusi2026lab3-postgres-1 | 24.66% | 190.9MiB / 1GiB | 18.64% | 155MB / 320MB | 86kB / 1.58GB | 27 |
| 65 | 1793216405 | mtusi2026lab3-lb-1 | 7.95% | 13.69MiB / 128MiB | 10.69% | 574MB / 598MB | 0B / 0B | 2 |
| 66 | 1793216405 | mtusi2026lab3-valkey-1 | 2.23% | 11.02MiB / 128MiB | 8.61% | 28.4MB / 31.1MB | 0B / 520kB | 6 |