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
6.4 KiB
6.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216697 | mtusi2026lab3-api-1 | 129.64% | 189.9MiB / 1GiB | 18.54% | 801MB / 1.13GB | 0B / 0B | 13 |
| 3 | 1793216697 | mtusi2026lab3-api-2 | 129.58% | 186.8MiB / 1GiB | 18.24% | 802MB / 1.13GB | 0B / 0B | 13 |
| 4 | 1793216697 | mtusi2026lab3-postgres-1 | 104.39% | 402.7MiB / 1GiB | 39.32% | 515MB / 1.06GB | 86kB / 5.12GB | 38 |
| 5 | 1793216697 | mtusi2026lab3-lb-1 | 27.50% | 16.12MiB / 128MiB | 12.59% | 1.9GB / 1.98GB | 0B / 0B | 2 |
| 6 | 1793216697 | mtusi2026lab3-valkey-1 | 6.36% | 11.36MiB / 128MiB | 8.88% | 94.1MB / 104MB | 0B / 1.19MB | 6 |
| 7 | 1793216701 | mtusi2026lab3-k6-run-37a25fbcff82 | 46.74% | 181.2MiB / 1GiB | 17.69% | 30.9MB / 5.11MB | 0B / 0B | 8 |
| 8 | 1793216701 | mtusi2026lab3-api-1 | 129.57% | 190.2MiB / 1GiB | 18.57% | 816MB / 1.15GB | 0B / 0B | 13 |
| 9 | 1793216701 | mtusi2026lab3-api-2 | 128.89% | 186.9MiB / 1GiB | 18.25% | 817MB / 1.15GB | 0B / 0B | 13 |
| 10 | 1793216701 | mtusi2026lab3-postgres-1 | 104.58% | 403.3MiB / 1GiB | 39.39% | 524MB / 1.08GB | 86kB / 5.19GB | 37 |
| 11 | 1793216701 | mtusi2026lab3-lb-1 | 26.75% | 14.55MiB / 128MiB | 11.37% | 1.94GB / 2.02GB | 0B / 0B | 2 |
| 12 | 1793216701 | mtusi2026lab3-valkey-1 | 6.36% | 11.36MiB / 128MiB | 8.88% | 95.9MB / 106MB | 0B / 1.19MB | 6 |
| 13 | 1793216704 | mtusi2026lab3-k6-run-37a25fbcff82 | 47.16% | 185.2MiB / 1GiB | 18.08% | 68.3MB / 11.1MB | 0B / 0B | 9 |
| 14 | 1793216704 | mtusi2026lab3-api-1 | 130.50% | 190.2MiB / 1GiB | 18.57% | 832MB / 1.17GB | 0B / 0B | 13 |
| 15 | 1793216704 | mtusi2026lab3-api-2 | 132.73% | 186.8MiB / 1GiB | 18.24% | 832MB / 1.17GB | 0B / 0B | 13 |
| 16 | 1793216704 | mtusi2026lab3-postgres-1 | 108.08% | 404.3MiB / 1GiB | 39.48% | 534MB / 1.1GB | 86kB / 5.26GB | 36 |
| 17 | 1793216704 | mtusi2026lab3-lb-1 | 27.47% | 14.71MiB / 128MiB | 11.49% | 1.98GB / 2.05GB | 0B / 0B | 2 |
| 18 | 1793216704 | mtusi2026lab3-valkey-1 | 5.88% | 11.36MiB / 128MiB | 8.88% | 97.2MB / 107MB | 0B / 1.19MB | 6 |
| 19 | 1793216708 | mtusi2026lab3-k6-run-37a25fbcff82 | 47.12% | 193.8MiB / 1GiB | 18.93% | 93.7MB / 15.4MB | 0B / 0B | 9 |
| 20 | 1793216708 | mtusi2026lab3-api-1 | 133.10% | 190MiB / 1GiB | 18.56% | 845MB / 1.19GB | 0B / 0B | 13 |
| 21 | 1793216708 | mtusi2026lab3-api-2 | 134.08% | 186.8MiB / 1GiB | 18.24% | 846MB / 1.19GB | 0B / 0B | 13 |
| 22 | 1793216708 | mtusi2026lab3-postgres-1 | 112.77% | 416.1MiB / 1GiB | 40.64% | 543MB / 1.12GB | 86kB / 5.36GB | 38 |
| 23 | 1793216708 | mtusi2026lab3-lb-1 | 27.68% | 18.19MiB / 128MiB | 14.21% | 2.01GB / 2.09GB | 0B / 0B | 2 |
| 24 | 1793216708 | mtusi2026lab3-valkey-1 | 5.93% | 11.38MiB / 128MiB | 8.89% | 99.3MB / 109MB | 0B / 1.19MB | 6 |
| 25 | 1793216711 | mtusi2026lab3-k6-run-37a25fbcff82 | 50.94% | 212.1MiB / 1GiB | 20.71% | 123MB / 20.2MB | 0B / 0B | 9 |
| 26 | 1793216711 | mtusi2026lab3-api-1 | 120.86% | 190.3MiB / 1GiB | 18.58% | 860MB / 1.21GB | 0B / 0B | 13 |
| 27 | 1793216711 | mtusi2026lab3-api-2 | 120.15% | 186.8MiB / 1GiB | 18.24% | 861MB / 1.21GB | 0B / 0B | 13 |
| 28 | 1793216711 | mtusi2026lab3-postgres-1 | 97.99% | 416.5MiB / 1GiB | 40.67% | 553MB / 1.14GB | 86kB / 5.43GB | 37 |
| 29 | 1793216711 | mtusi2026lab3-lb-1 | 25.83% | 15.88MiB / 128MiB | 12.40% | 2.04GB / 2.13GB | 0B / 0B | 2 |
| 30 | 1793216711 | mtusi2026lab3-valkey-1 | 5.24% | 11.36MiB / 128MiB | 8.87% | 101MB / 111MB | 0B / 1.19MB | 6 |
| 31 | 1793216715 | mtusi2026lab3-k6-run-37a25fbcff82 | 44.30% | 212.1MiB / 1GiB | 20.71% | 152MB / 24.9MB | 0B / 0B | 9 |
| 32 | 1793216715 | mtusi2026lab3-api-1 | 121.95% | 190.3MiB / 1GiB | 18.58% | 875MB / 1.23GB | 0B / 0B | 13 |
| 33 | 1793216715 | mtusi2026lab3-api-2 | 120.28% | 186.8MiB / 1GiB | 18.24% | 876MB / 1.24GB | 0B / 0B | 13 |
| 34 | 1793216715 | mtusi2026lab3-postgres-1 | 96.04% | 423.9MiB / 1GiB | 41.39% | 560MB / 1.15GB | 86kB / 5.5GB | 38 |
| 35 | 1793216715 | mtusi2026lab3-lb-1 | 25.52% | 15.35MiB / 128MiB | 11.99% | 2.08GB / 2.16GB | 0B / 0B | 2 |
| 36 | 1793216715 | mtusi2026lab3-valkey-1 | 6.04% | 11.36MiB / 128MiB | 8.88% | 103MB / 113MB | 0B / 1.19MB | 6 |
| 37 | 1793216718 | mtusi2026lab3-k6-run-37a25fbcff82 | 45.51% | 212.1MiB / 1GiB | 20.71% | 181MB / 29.7MB | 0B / 0B | 9 |
| 38 | 1793216718 | mtusi2026lab3-api-1 | 124.53% | 190MiB / 1GiB | 18.56% | 891MB / 1.26GB | 0B / 0B | 13 |
| 39 | 1793216718 | mtusi2026lab3-api-2 | 126.65% | 186.8MiB / 1GiB | 18.24% | 891MB / 1.26GB | 0B / 0B | 13 |
| 40 | 1793216718 | mtusi2026lab3-postgres-1 | 101.42% | 424.1MiB / 1GiB | 41.42% | 572MB / 1.18GB | 86kB / 5.59GB | 37 |
| 41 | 1793216718 | mtusi2026lab3-lb-1 | 26.39% | 15.02MiB / 128MiB | 11.74% | 2.12GB / 2.2GB | 0B / 0B | 2 |
| 42 | 1793216718 | mtusi2026lab3-valkey-1 | 5.51% | 11.36MiB / 128MiB | 8.88% | 104MB / 115MB | 0B / 1.2MB | 6 |
| 43 | 1793216722 | mtusi2026lab3-k6-run-37a25fbcff82 | 44.87% | 212.5MiB / 1GiB | 20.76% | 205MB / 33.6MB | 0B / 0B | 9 |
| 44 | 1793216722 | mtusi2026lab3-api-1 | 120.59% | 190MiB / 1GiB | 18.56% | 903MB / 1.27GB | 0B / 0B | 13 |
| 45 | 1793216722 | mtusi2026lab3-api-2 | 122.25% | 186.8MiB / 1GiB | 18.24% | 904MB / 1.27GB | 0B / 0B | 13 |
| 46 | 1793216722 | mtusi2026lab3-postgres-1 | 98.17% | 429.4MiB / 1GiB | 41.93% | 580MB / 1.2GB | 86kB / 5.67GB | 38 |
| 47 | 1793216722 | mtusi2026lab3-lb-1 | 25.32% | 15.11MiB / 128MiB | 11.80% | 2.15GB / 2.23GB | 0B / 0B | 2 |
| 48 | 1793216722 | mtusi2026lab3-valkey-1 | 5.35% | 11.36MiB / 128MiB | 8.87% | 106MB / 117MB | 0B / 1.2MB | 6 |
| 49 | 1793216725 | mtusi2026lab3-k6-run-37a25fbcff82 | 48.27% | 212.6MiB / 1GiB | 20.76% | 235MB / 38.4MB | 0B / 0B | 9 |
| 50 | 1793216725 | mtusi2026lab3-api-1 | 117.91% | 190.3MiB / 1GiB | 18.58% | 914MB / 1.29GB | 0B / 0B | 13 |
| 51 | 1793216725 | mtusi2026lab3-api-2 | 115.34% | 186.8MiB / 1GiB | 18.24% | 919MB / 1.3GB | 0B / 0B | 13 |
| 52 | 1793216725 | mtusi2026lab3-postgres-1 | 93.41% | 430.8MiB / 1GiB | 42.07% | 590MB / 1.22GB | 86kB / 5.77GB | 38 |
| 53 | 1793216725 | mtusi2026lab3-lb-1 | 24.78% | 14.12MiB / 128MiB | 11.03% | 2.18GB / 2.27GB | 0B / 0B | 2 |
| 54 | 1793216725 | mtusi2026lab3-valkey-1 | 5.64% | 11.36MiB / 128MiB | 8.87% | 108MB / 119MB | 0B / 1.23MB | 6 |
| 55 | 1793216729 | mtusi2026lab3-k6-run-37a25fbcff82 | 43.50% | 212.6MiB / 1GiB | 20.76% | 256MB / 41.8MB | 0B / 0B | 9 |
| 56 | 1793216729 | mtusi2026lab3-api-1 | 118.25% | 191MiB / 1GiB | 18.65% | 934MB / 1.32GB | 0B / 0B | 13 |
| 57 | 1793216729 | mtusi2026lab3-api-2 | 118.31% | 187.1MiB / 1GiB | 18.27% | 934MB / 1.32GB | 0B / 0B | 13 |
| 58 | 1793216729 | mtusi2026lab3-postgres-1 | 95.61% | 430.8MiB / 1GiB | 42.07% | 600MB / 1.24GB | 86kB / 5.85GB | 38 |
| 59 | 1793216729 | mtusi2026lab3-lb-1 | 25.52% | 17.8MiB / 128MiB | 13.91% | 2.22GB / 2.31GB | 0B / 0B | 2 |
| 60 | 1793216729 | mtusi2026lab3-valkey-1 | 5.90% | 11.36MiB / 128MiB | 8.87% | 110MB / 121MB | 0B / 1.23MB | 6 |
| 61 | 1793216732 | mtusi2026lab3-k6-run-37a25fbcff82 | 47.02% | 221.2MiB / 1GiB | 21.60% | 290MB / 47.3MB | 0B / 0B | 9 |
| 62 | 1793216732 | mtusi2026lab3-api-1 | 128.57% | 190.7MiB / 1GiB | 18.63% | 947MB / 1.34GB | 0B / 0B | 13 |
| 63 | 1793216732 | mtusi2026lab3-api-2 | 128.28% | 187.1MiB / 1GiB | 18.27% | 948MB / 1.34GB | 0B / 0B | 13 |
| 64 | 1793216732 | mtusi2026lab3-postgres-1 | 97.50% | 419.9MiB / 1GiB | 41.01% | 608MB / 1.25GB | 86kB / 5.93GB | 41 |
| 65 | 1793216732 | mtusi2026lab3-lb-1 | 24.50% | 15.95MiB / 128MiB | 12.46% | 2.25GB / 2.34GB | 0B / 0B | 2 |
| 66 | 1793216732 | mtusi2026lab3-valkey-1 | 5.14% | 11.36MiB / 128MiB | 8.87% | 111MB / 122MB | 0B / 1.23MB | 6 |
| 67 | 1793216736 | mtusi2026lab3-k6-run-37a25fbcff82 | 45.32% | 221.7MiB / 1GiB | 21.65% | 318MB / 51.9MB | 0B / 0B | 9 |
| 68 | 1793216736 | mtusi2026lab3-api-1 | 102.55% | 190.7MiB / 1GiB | 18.62% | 962MB / 1.36GB | 0B / 0B | 13 |
| 69 | 1793216736 | mtusi2026lab3-api-2 | 103.01% | 186.8MiB / 1GiB | 18.25% | 962MB / 1.36GB | 0B / 0B | 13 |
| 70 | 1793216736 | mtusi2026lab3-postgres-1 | 82.37% | 412.7MiB / 1GiB | 40.30% | 618MB / 1.27GB | 86kB / 6.01GB | 33 |
| 71 | 1793216736 | mtusi2026lab3-lb-1 | 21.84% | 14.3MiB / 128MiB | 11.18% | 2.28GB / 2.38GB | 0B / 0B | 2 |
| 72 | 1793216736 | mtusi2026lab3-valkey-1 | 5.89% | 11.35MiB / 128MiB | 8.87% | 112MB / 124MB | 0B / 1.23MB | 6 |