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.5 KiB
6.5 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216744 | mtusi2026lab3-api-1 | 115.70% | 191MiB / 1GiB | 18.65% | 968MB / 1.37GB | 0B / 0B | 13 |
| 3 | 1793216744 | mtusi2026lab3-api-2 | 116.36% | 187.1MiB / 1GiB | 18.27% | 968MB / 1.37GB | 0B / 0B | 13 |
| 4 | 1793216744 | mtusi2026lab3-postgres-1 | 90.99% | 427MiB / 1GiB | 41.70% | 622MB / 1.28GB | 537kB / 6.07GB | 37 |
| 5 | 1793216744 | mtusi2026lab3-lb-1 | 24.68% | 15.76MiB / 128MiB | 12.31% | 2.3GB / 2.39GB | 0B / 0B | 2 |
| 6 | 1793216744 | mtusi2026lab3-valkey-1 | 2.98% | 11.36MiB / 128MiB | 8.87% | 113MB / 125MB | 0B / 1.3MB | 6 |
| 7 | 1793216748 | mtusi2026lab3-k6-run-3d9fab3af69b | 42.33% | 183.5MiB / 1GiB | 17.92% | 41.5MB / 6.66MB | 0B / 0B | 9 |
| 8 | 1793216748 | mtusi2026lab3-api-1 | 120.49% | 190.7MiB / 1GiB | 18.62% | 979MB / 1.38GB | 0B / 0B | 13 |
| 9 | 1793216748 | mtusi2026lab3-api-2 | 131.31% | 186.9MiB / 1GiB | 18.25% | 984MB / 1.39GB | 0B / 0B | 13 |
| 10 | 1793216748 | mtusi2026lab3-postgres-1 | 96.64% | 430.6MiB / 1GiB | 42.06% | 632MB / 1.3GB | 537kB / 6.17GB | 38 |
| 11 | 1793216748 | mtusi2026lab3-lb-1 | 24.90% | 15.73MiB / 128MiB | 12.29% | 2.34GB / 2.43GB | 0B / 0B | 2 |
| 12 | 1793216748 | mtusi2026lab3-valkey-1 | 5.83% | 11.36MiB / 128MiB | 8.87% | 115MB / 127MB | 0B / 1.3MB | 6 |
| 13 | 1793216751 | mtusi2026lab3-k6-run-3d9fab3af69b | 45.39% | 185.3MiB / 1GiB | 18.10% | 71.1MB / 11.4MB | 0B / 0B | 9 |
| 14 | 1793216751 | mtusi2026lab3-api-1 | 115.89% | 191MiB / 1GiB | 18.65% | 999MB / 1.41GB | 0B / 0B | 13 |
| 15 | 1793216751 | mtusi2026lab3-api-2 | 116.73% | 186.9MiB / 1GiB | 18.25% | 995MB / 1.4GB | 0B / 0B | 13 |
| 16 | 1793216751 | mtusi2026lab3-postgres-1 | 91.12% | 430.8MiB / 1GiB | 42.07% | 641MB / 1.32GB | 537kB / 6.25GB | 38 |
| 17 | 1793216751 | mtusi2026lab3-lb-1 | 24.44% | 15.96MiB / 128MiB | 12.47% | 2.37GB / 2.47GB | 0B / 0B | 2 |
| 18 | 1793216751 | mtusi2026lab3-valkey-1 | 5.77% | 11.36MiB / 128MiB | 8.87% | 117MB / 129MB | 0B / 1.3MB | 6 |
| 19 | 1793216755 | mtusi2026lab3-k6-run-3d9fab3af69b | 48.82% | 208.5MiB / 1GiB | 20.36% | 100MB / 16.2MB | 0B / 0B | 9 |
| 20 | 1793216755 | mtusi2026lab3-api-1 | 119.68% | 190.7MiB / 1GiB | 18.62% | 1.01GB / 1.43GB | 0B / 0B | 13 |
| 21 | 1793216755 | mtusi2026lab3-api-2 | 121.11% | 187.1MiB / 1GiB | 18.27% | 1.01GB / 1.43GB | 0B / 0B | 13 |
| 22 | 1793216755 | mtusi2026lab3-postgres-1 | 93.62% | 431.6MiB / 1GiB | 42.15% | 648MB / 1.34GB | 15.7MB / 6.32GB | 38 |
| 23 | 1793216755 | mtusi2026lab3-lb-1 | 25.50% | 14.98MiB / 128MiB | 11.70% | 2.41GB / 2.5GB | 0B / 0B | 2 |
| 24 | 1793216755 | mtusi2026lab3-valkey-1 | 5.96% | 11.36MiB / 128MiB | 8.88% | 119MB / 131MB | 0B / 1.3MB | 6 |
| 25 | 1793216759 | mtusi2026lab3-k6-run-3d9fab3af69b | 49.29% | 210.5MiB / 1GiB | 20.56% | 124MB / 20.2MB | 0B / 0B | 9 |
| 26 | 1793216759 | mtusi2026lab3-api-1 | 130.44% | 190.7MiB / 1GiB | 18.62% | 1.03GB / 1.45GB | 0B / 0B | 13 |
| 27 | 1793216759 | mtusi2026lab3-api-2 | 128.72% | 186.9MiB / 1GiB | 18.25% | 1.03GB / 1.45GB | 0B / 0B | 13 |
| 28 | 1793216759 | mtusi2026lab3-postgres-1 | 94.44% | 432.2MiB / 1GiB | 42.21% | 659MB / 1.36GB | 15.7MB / 6.41GB | 38 |
| 29 | 1793216759 | mtusi2026lab3-lb-1 | 24.82% | 14.6MiB / 128MiB | 11.40% | 2.44GB / 2.54GB | 0B / 0B | 2 |
| 30 | 1793216759 | mtusi2026lab3-valkey-1 | 5.41% | 11.37MiB / 128MiB | 8.88% | 120MB / 133MB | 0B / 1.3MB | 6 |
| 31 | 1793216762 | mtusi2026lab3-k6-run-3d9fab3af69b | 49.17% | 210.5MiB / 1GiB | 20.56% | 153MB / 24.9MB | 0B / 0B | 9 |
| 32 | 1793216762 | mtusi2026lab3-api-1 | 121.38% | 190.7MiB / 1GiB | 18.63% | 1.04GB / 1.47GB | 0B / 0B | 13 |
| 33 | 1793216762 | mtusi2026lab3-api-2 | 122.08% | 187.2MiB / 1GiB | 18.28% | 1.04GB / 1.47GB | 0B / 0B | 13 |
| 34 | 1793216762 | mtusi2026lab3-postgres-1 | 96.06% | 429MiB / 1GiB | 41.89% | 669MB / 1.38GB | 15.7MB / 6.52GB | 37 |
| 35 | 1793216762 | mtusi2026lab3-lb-1 | 25.56% | 14.9MiB / 128MiB | 11.64% | 2.47GB / 2.57GB | 0B / 0B | 2 |
| 36 | 1793216762 | mtusi2026lab3-valkey-1 | 5.36% | 11.36MiB / 128MiB | 8.87% | 122MB / 134MB | 0B / 1.3MB | 6 |
| 37 | 1793216765 | mtusi2026lab3-k6-run-3d9fab3af69b | 42.74% | 210.5MiB / 1GiB | 20.56% | 183MB / 29.7MB | 0B / 0B | 9 |
| 38 | 1793216765 | mtusi2026lab3-api-1 | 117.88% | 191MiB / 1GiB | 18.65% | 1.05GB / 1.49GB | 0B / 0B | 13 |
| 39 | 1793216765 | mtusi2026lab3-api-2 | 118.30% | 187.1MiB / 1GiB | 18.27% | 1.06GB / 1.49GB | 0B / 0B | 13 |
| 40 | 1793216765 | mtusi2026lab3-postgres-1 | 94.57% | 432.6MiB / 1GiB | 42.24% | 679MB / 1.4GB | 15.7MB / 6.62GB | 38 |
| 41 | 1793216765 | mtusi2026lab3-lb-1 | 25.13% | 14.61MiB / 128MiB | 11.41% | 2.51GB / 2.61GB | 0B / 0B | 2 |
| 42 | 1793216765 | mtusi2026lab3-valkey-1 | 5.93% | 11.36MiB / 128MiB | 8.87% | 124MB / 137MB | 0B / 1.31MB | 6 |
| 43 | 1793216769 | mtusi2026lab3-k6-run-3d9fab3af69b | 49.15% | 210.5MiB / 1GiB | 20.56% | 210MB / 33.8MB | 0B / 0B | 9 |
| 44 | 1793216769 | mtusi2026lab3-api-1 | 134.12% | 191.2MiB / 1GiB | 18.67% | 1.07GB / 1.51GB | 0B / 0B | 13 |
| 45 | 1793216769 | mtusi2026lab3-api-2 | 133.00% | 187.1MiB / 1GiB | 18.27% | 1.07GB / 1.51GB | 0B / 0B | 13 |
| 46 | 1793216769 | mtusi2026lab3-postgres-1 | 97.41% | 428.7MiB / 1GiB | 41.87% | 687MB / 1.42GB | 15.7MB / 6.69GB | 37 |
| 47 | 1793216769 | mtusi2026lab3-lb-1 | 24.95% | 14.37MiB / 128MiB | 11.22% | 2.54GB / 2.65GB | 0B / 0B | 2 |
| 48 | 1793216769 | mtusi2026lab3-valkey-1 | 5.62% | 11.36MiB / 128MiB | 8.88% | 126MB / 138MB | 0B / 1.31MB | 6 |
| 49 | 1793216772 | mtusi2026lab3-k6-run-3d9fab3af69b | 44.76% | 218MiB / 1GiB | 21.29% | 239MB / 38.6MB | 0B / 0B | 9 |
| 50 | 1793216772 | mtusi2026lab3-api-1 | 122.30% | 190.9MiB / 1GiB | 18.65% | 1.09GB / 1.53GB | 0B / 0B | 13 |
| 51 | 1793216772 | mtusi2026lab3-api-2 | 122.36% | 186.9MiB / 1GiB | 18.25% | 1.09GB / 1.53GB | 0B / 0B | 13 |
| 52 | 1793216772 | mtusi2026lab3-postgres-1 | 99.00% | 432.4MiB / 1GiB | 42.23% | 697MB / 1.44GB | 15.8MB / 6.79GB | 38 |
| 53 | 1793216772 | mtusi2026lab3-lb-1 | 25.78% | 14.29MiB / 128MiB | 11.17% | 2.57GB / 2.67GB | 0B / 0B | 2 |
| 54 | 1793216772 | mtusi2026lab3-valkey-1 | 5.49% | 11.36MiB / 128MiB | 8.87% | 127MB / 140MB | 0B / 1.31MB | 6 |
| 55 | 1793216776 | mtusi2026lab3-k6-run-3d9fab3af69b | 44.46% | 218MiB / 1GiB | 21.29% | 270MB / 43.4MB | 0B / 0B | 9 |
| 56 | 1793216776 | mtusi2026lab3-api-1 | 120.13% | 190.7MiB / 1GiB | 18.62% | 1.1GB / 1.55GB | 0B / 0B | 13 |
| 57 | 1793216776 | mtusi2026lab3-api-2 | 119.21% | 186.9MiB / 1GiB | 18.25% | 1.1GB / 1.55GB | 0B / 0B | 13 |
| 58 | 1793216776 | mtusi2026lab3-postgres-1 | 96.48% | 428.6MiB / 1GiB | 41.85% | 704MB / 1.45GB | 15.8MB / 6.88GB | 37 |
| 59 | 1793216776 | mtusi2026lab3-lb-1 | 25.66% | 14.34MiB / 128MiB | 11.20% | 2.62GB / 2.72GB | 0B / 0B | 2 |
| 60 | 1793216776 | mtusi2026lab3-valkey-1 | 5.98% | 11.35MiB / 128MiB | 8.87% | 129MB / 142MB | 0B / 1.31MB | 6 |
| 61 | 1793216780 | mtusi2026lab3-k6-run-3d9fab3af69b | 49.25% | 208.5MiB / 1GiB | 20.36% | 299MB / 48.1MB | 0B / 0B | 9 |
| 62 | 1793216780 | mtusi2026lab3-api-1 | 133.04% | 190.9MiB / 1GiB | 18.64% | 1.11GB / 1.57GB | 0B / 0B | 13 |
| 63 | 1793216780 | mtusi2026lab3-api-2 | 119.76% | 187.1MiB / 1GiB | 18.28% | 1.12GB / 1.58GB | 0B / 0B | 13 |
| 64 | 1793216780 | mtusi2026lab3-postgres-1 | 95.81% | 429.3MiB / 1GiB | 41.93% | 717MB / 1.48GB | 15.8MB / 7GB | 37 |
| 65 | 1793216780 | mtusi2026lab3-lb-1 | 25.59% | 14.84MiB / 128MiB | 11.60% | 2.65GB / 2.76GB | 0B / 0B | 2 |
| 66 | 1793216780 | mtusi2026lab3-valkey-1 | 6.06% | 11.36MiB / 128MiB | 8.88% | 131MB / 144MB | 0B / 1.31MB | 6 |
| 67 | 1793216783 | mtusi2026lab3-k6-run-3d9fab3af69b | 41.90% | 209.6MiB / 1GiB | 20.46% | 322MB / 51.8MB | 0B / 0B | 9 |
| 68 | 1793216783 | mtusi2026lab3-api-1 | 98.81% | 190.7MiB / 1GiB | 18.62% | 1.13GB / 1.59GB | 0B / 0B | 13 |
| 69 | 1793216783 | mtusi2026lab3-api-2 | 98.14% | 186.9MiB / 1GiB | 18.25% | 1.13GB / 1.59GB | 0B / 0B | 13 |
| 70 | 1793216783 | mtusi2026lab3-postgres-1 | 78.07% | 432.7MiB / 1GiB | 42.26% | 724MB / 1.49GB | 15.8MB / 7.07GB | 38 |
| 71 | 1793216783 | mtusi2026lab3-lb-1 | 20.58% | 14.51MiB / 128MiB | 11.34% | 2.68GB / 2.79GB | 0B / 0B | 2 |
| 72 | 1793216783 | mtusi2026lab3-valkey-1 | 4.45% | 11.58MiB / 128MiB | 9.05% | 132MB / 146MB | 0B / 1.31MB | 6 |