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.4 KiB
5.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215791 | mtusi2026lab3-api-1 | 210.64% | 328.8MiB / 2GiB | 16.06% | 2.26GB / 3.2GB | 0B / 0B | 25 |
| 3 | 1793215791 | mtusi2026lab3-postgres-1 | 87.72% | 431.9MiB / 1GiB | 42.17% | 727MB / 1.5GB | 11.8MB / 7.13GB | 38 |
| 4 | 1793215791 | mtusi2026lab3-lb-1 | 25.51% | 26.04MiB / 128MiB | 20.34% | 2.69GB / 2.8GB | 0B / 0B | 2 |
| 5 | 1793215791 | mtusi2026lab3-valkey-1 | 2.36% | 11.34MiB / 128MiB | 8.86% | 133MB / 146MB | 0B / 1.38MB | 6 |
| 6 | 1793215795 | mtusi2026lab3-k6-run-a6d794831d10 | 40.54% | 183.4MiB / 1GiB | 17.91% | 41.5MB / 6.66MB | 0B / 0B | 9 |
| 7 | 1793215795 | mtusi2026lab3-api-1 | 219.11% | 329MiB / 2GiB | 16.06% | 2.29GB / 3.23GB | 0B / 0B | 25 |
| 8 | 1793215795 | mtusi2026lab3-postgres-1 | 88.05% | 432.4MiB / 1GiB | 42.22% | 737MB / 1.52GB | 11.8MB / 7.22GB | 38 |
| 9 | 1793215795 | mtusi2026lab3-lb-1 | 24.69% | 25.75MiB / 128MiB | 20.12% | 2.73GB / 2.84GB | 0B / 0B | 2 |
| 10 | 1793215795 | mtusi2026lab3-valkey-1 | 5.31% | 11.78MiB / 128MiB | 9.20% | 135MB / 148MB | 0B / 1.38MB | 6 |
| 11 | 1793215798 | mtusi2026lab3-k6-run-a6d794831d10 | 46.61% | 185.7MiB / 1GiB | 18.13% | 70.8MB / 11.4MB | 0B / 0B | 9 |
| 12 | 1793215798 | mtusi2026lab3-api-1 | 210.87% | 328.7MiB / 2GiB | 16.05% | 2.33GB / 3.28GB | 0B / 0B | 25 |
| 13 | 1793215798 | mtusi2026lab3-postgres-1 | 90.95% | 428.6MiB / 1GiB | 41.86% | 747MB / 1.54GB | 11.8MB / 7.3GB | 37 |
| 14 | 1793215798 | mtusi2026lab3-lb-1 | 25.06% | 25.07MiB / 128MiB | 19.59% | 2.76GB / 2.87GB | 0B / 0B | 2 |
| 15 | 1793215798 | mtusi2026lab3-valkey-1 | 5.47% | 11.58MiB / 128MiB | 9.05% | 136MB / 150MB | 0B / 1.38MB | 6 |
| 16 | 1793215802 | mtusi2026lab3-k6-run-a6d794831d10 | 46.19% | 203.5MiB / 1GiB | 19.87% | 93.1MB / 14.9MB | 0B / 0B | 9 |
| 17 | 1793215802 | mtusi2026lab3-api-1 | 206.46% | 329MiB / 2GiB | 16.06% | 2.36GB / 3.33GB | 0B / 0B | 25 |
| 18 | 1793215802 | mtusi2026lab3-postgres-1 | 86.24% | 431.6MiB / 1GiB | 42.14% | 756MB / 1.56GB | 11.8MB / 7.39GB | 38 |
| 19 | 1793215802 | mtusi2026lab3-lb-1 | 24.87% | 26.31MiB / 128MiB | 20.56% | 2.8GB / 2.91GB | 0B / 0B | 2 |
| 20 | 1793215802 | mtusi2026lab3-valkey-1 | 5.40% | 11.34MiB / 128MiB | 8.86% | 138MB / 152MB | 0B / 1.38MB | 6 |
| 21 | 1793215806 | mtusi2026lab3-k6-run-a6d794831d10 | 42.49% | 208.8MiB / 1GiB | 20.39% | 125MB / 20.1MB | 0B / 0B | 9 |
| 22 | 1793215806 | mtusi2026lab3-api-1 | 210.24% | 329.2MiB / 2GiB | 16.07% | 2.38GB / 3.36GB | 0B / 0B | 25 |
| 23 | 1793215806 | mtusi2026lab3-postgres-1 | 90.04% | 428MiB / 1GiB | 41.80% | 764MB / 1.58GB | 11.8MB / 7.45GB | 37 |
| 24 | 1793215806 | mtusi2026lab3-lb-1 | 25.31% | 25.2MiB / 128MiB | 19.69% | 2.83GB / 2.94GB | 0B / 0B | 2 |
| 25 | 1793215806 | mtusi2026lab3-valkey-1 | 5.40% | 11.35MiB / 128MiB | 8.87% | 140MB / 154MB | 0B / 1.38MB | 6 |
| 26 | 1793215809 | mtusi2026lab3-k6-run-a6d794831d10 | 47.44% | 210.5MiB / 1GiB | 20.56% | 154MB / 24.9MB | 0B / 0B | 9 |
| 27 | 1793215809 | mtusi2026lab3-api-1 | 208.64% | 328.9MiB / 2GiB | 16.06% | 2.41GB / 3.4GB | 0B / 0B | 25 |
| 28 | 1793215809 | mtusi2026lab3-postgres-1 | 89.32% | 424.7MiB / 1GiB | 41.47% | 774MB / 1.6GB | 11.9MB / 7.55GB | 36 |
| 29 | 1793215809 | mtusi2026lab3-lb-1 | 25.06% | 25.95MiB / 128MiB | 20.28% | 2.87GB / 2.98GB | 0B / 0B | 2 |
| 30 | 1793215809 | mtusi2026lab3-valkey-1 | 5.79% | 11.32MiB / 128MiB | 8.84% | 141MB / 155MB | 0B / 1.38MB | 6 |
| 31 | 1793215812 | mtusi2026lab3-k6-run-a6d794831d10 | 41.01% | 210.6MiB / 1GiB | 20.57% | 183MB / 29.6MB | 0B / 0B | 9 |
| 32 | 1793215812 | mtusi2026lab3-api-1 | 204.93% | 328.7MiB / 2GiB | 16.05% | 2.44GB / 3.45GB | 0B / 0B | 25 |
| 33 | 1793215812 | mtusi2026lab3-postgres-1 | 86.15% | 428.8MiB / 1GiB | 41.87% | 784MB / 1.62GB | 11.9MB / 7.62GB | 37 |
| 34 | 1793215812 | mtusi2026lab3-lb-1 | 23.95% | 25.28MiB / 128MiB | 19.75% | 2.9GB / 3.02GB | 0B / 0B | 2 |
| 35 | 1793215812 | mtusi2026lab3-valkey-1 | 5.36% | 11.32MiB / 128MiB | 8.85% | 143MB / 157MB | 0B / 1.39MB | 6 |
| 36 | 1793215816 | mtusi2026lab3-k6-run-a6d794831d10 | 41.89% | 213.2MiB / 1GiB | 20.82% | 209MB / 33.7MB | 0B / 0B | 9 |
| 37 | 1793215816 | mtusi2026lab3-api-1 | 210.85% | 328.9MiB / 2GiB | 16.06% | 2.47GB / 3.49GB | 0B / 0B | 25 |
| 38 | 1793215816 | mtusi2026lab3-postgres-1 | 88.04% | 432.8MiB / 1GiB | 42.26% | 792MB / 1.63GB | 11.9MB / 7.71GB | 38 |
| 39 | 1793215816 | mtusi2026lab3-lb-1 | 24.69% | 25.54MiB / 128MiB | 19.95% | 2.93GB / 3.05GB | 0B / 0B | 2 |
| 40 | 1793215816 | mtusi2026lab3-valkey-1 | 5.46% | 11.33MiB / 128MiB | 8.85% | 145MB / 159MB | 0B / 1.39MB | 6 |
| 41 | 1793215819 | mtusi2026lab3-k6-run-a6d794831d10 | 44.51% | 213.4MiB / 1GiB | 20.84% | 238MB / 38.5MB | 0B / 0B | 9 |
| 42 | 1793215819 | mtusi2026lab3-api-1 | 221.23% | 328.8MiB / 2GiB | 16.05% | 2.5GB / 3.53GB | 0B / 0B | 25 |
| 43 | 1793215819 | mtusi2026lab3-postgres-1 | 87.24% | 429.5MiB / 1GiB | 41.94% | 802MB / 1.65GB | 11.9MB / 7.79GB | 37 |
| 44 | 1793215819 | mtusi2026lab3-lb-1 | 24.53% | 25.54MiB / 128MiB | 19.95% | 2.96GB / 3.08GB | 0B / 0B | 2 |
| 45 | 1793215819 | mtusi2026lab3-valkey-1 | 5.42% | 11.32MiB / 128MiB | 8.84% | 147MB / 161MB | 0B / 1.39MB | 6 |
| 46 | 1793215823 | mtusi2026lab3-k6-run-a6d794831d10 | 42.56% | 216.4MiB / 1GiB | 21.13% | 267MB / 43.3MB | 0B / 0B | 9 |
| 47 | 1793215823 | mtusi2026lab3-api-1 | 211.56% | 329MiB / 2GiB | 16.06% | 2.53GB / 3.57GB | 0B / 0B | 25 |
| 48 | 1793215823 | mtusi2026lab3-postgres-1 | 89.79% | 429MiB / 1GiB | 41.90% | 812MB / 1.67GB | 11.9MB / 7.89GB | 37 |
| 49 | 1793215823 | mtusi2026lab3-lb-1 | 25.26% | 24.99MiB / 128MiB | 19.53% | 3.01GB / 3.13GB | 0B / 0B | 2 |
| 50 | 1793215823 | mtusi2026lab3-valkey-1 | 5.53% | 11.32MiB / 128MiB | 8.85% | 148MB / 163MB | 0B / 1.39MB | 6 |
| 51 | 1793215826 | mtusi2026lab3-k6-run-a6d794831d10 | 42.97% | 224.4MiB / 1GiB | 21.92% | 297MB / 48MB | 0B / 0B | 9 |
| 52 | 1793215826 | mtusi2026lab3-api-1 | 219.28% | 328.7MiB / 2GiB | 16.05% | 2.56GB / 3.61GB | 0B / 0B | 25 |
| 53 | 1793215826 | mtusi2026lab3-postgres-1 | 93.05% | 429.5MiB / 1GiB | 41.94% | 822MB / 1.69GB | 11.9MB / 7.97GB | 37 |
| 54 | 1793215826 | mtusi2026lab3-lb-1 | 25.33% | 25MiB / 128MiB | 19.53% | 3.04GB / 3.16GB | 0B / 0B | 2 |
| 55 | 1793215826 | mtusi2026lab3-valkey-1 | 5.63% | 11.33MiB / 128MiB | 8.85% | 150MB / 165MB | 0B / 1.39MB | 6 |
| 56 | 1793215830 | mtusi2026lab3-k6-run-a6d794831d10 | 53.86% | 224.7MiB / 1GiB | 21.94% | 321MB / 51.8MB | 0B / 0B | 9 |
| 57 | 1793215830 | mtusi2026lab3-api-1 | 233.19% | 328.6MiB / 2GiB | 16.05% | 2.58GB / 3.65GB | 0B / 0B | 25 |
| 58 | 1793215830 | mtusi2026lab3-postgres-1 | 94.39% | 418.5MiB / 1GiB | 40.87% | 830MB / 1.71GB | 11.9MB / 8.04GB | 34 |
| 59 | 1793215830 | mtusi2026lab3-lb-1 | 25.60% | 24.43MiB / 128MiB | 19.08% | 3.07GB / 3.19GB | 0B / 0B | 2 |
| 60 | 1793215830 | mtusi2026lab3-valkey-1 | 5.70% | 11.54MiB / 128MiB | 9.02% | 152MB / 167MB | 0B / 1.39MB | 6 |