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.0 KiB
5.0 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215885 | mtusi2026lab3-api-1 | 309.97% | 338.9MiB / 2GiB | 16.55% | 3.1GB / 4.38GB | 0B / 0B | 25 |
| 3 | 1793215885 | mtusi2026lab3-postgres-1 | 139.08% | 434.4MiB / 1GiB | 42.42% | 995MB / 2.05GB | 52.6MB / 9.43GB | 38 |
| 4 | 1793215885 | mtusi2026lab3-lb-1 | 34.31% | 26.02MiB / 128MiB | 20.32% | 3.69GB / 3.83GB | 0B / 0B | 2 |
| 5 | 1793215885 | mtusi2026lab3-valkey-1 | 3.16% | 11.33MiB / 128MiB | 8.85% | 181MB / 199MB | 0B / 1.53MB | 6 |
| 6 | 1793215888 | mtusi2026lab3-k6-run-83c362168757 | 65.42% | 270.9MiB / 1GiB | 26.45% | 61.5MB / 10MB | 0B / 0B | 9 |
| 7 | 1793215888 | mtusi2026lab3-api-1 | 320.16% | 338.7MiB / 2GiB | 16.54% | 3.14GB / 4.43GB | 0B / 0B | 25 |
| 8 | 1793215888 | mtusi2026lab3-postgres-1 | 140.76% | 434.5MiB / 1GiB | 42.43% | 1.01GB / 2.08GB | 52.6MB / 9.54GB | 38 |
| 9 | 1793215888 | mtusi2026lab3-lb-1 | 34.67% | 23.05MiB / 128MiB | 18.01% | 3.74GB / 3.89GB | 0B / 0B | 2 |
| 10 | 1793215888 | mtusi2026lab3-valkey-1 | 7.76% | 11.33MiB / 128MiB | 8.85% | 185MB / 203MB | 0B / 1.53MB | 6 |
| 11 | 1793215892 | mtusi2026lab3-k6-run-83c362168757 | 57.61% | 273MiB / 1GiB | 26.66% | 106MB / 17.1MB | 0B / 0B | 9 |
| 12 | 1793215892 | mtusi2026lab3-api-1 | 321.73% | 339.4MiB / 2GiB | 16.57% | 3.19GB / 4.51GB | 0B / 0B | 25 |
| 13 | 1793215892 | mtusi2026lab3-postgres-1 | 136.85% | 435.3MiB / 1GiB | 42.51% | 1.02GB / 2.11GB | 52.6MB / 9.66GB | 38 |
| 14 | 1793215892 | mtusi2026lab3-lb-1 | 34.07% | 24.3MiB / 128MiB | 18.98% | 3.8GB / 3.95GB | 0B / 0B | 2 |
| 15 | 1793215892 | mtusi2026lab3-valkey-1 | 7.60% | 11.33MiB / 128MiB | 8.85% | 187MB / 205MB | 0B / 1.53MB | 6 |
| 16 | 1793215896 | mtusi2026lab3-k6-run-83c362168757 | 57.41% | 305.8MiB / 1GiB | 29.86% | 150MB / 24.3MB | 0B / 0B | 9 |
| 17 | 1793215896 | mtusi2026lab3-api-1 | 315.07% | 339.2MiB / 2GiB | 16.56% | 3.24GB / 4.58GB | 0B / 0B | 25 |
| 18 | 1793215896 | mtusi2026lab3-postgres-1 | 139.79% | 436.1MiB / 1GiB | 42.58% | 1.04GB / 2.14GB | 52.6MB / 9.78GB | 38 |
| 19 | 1793215896 | mtusi2026lab3-lb-1 | 35.47% | 25.31MiB / 128MiB | 19.77% | 3.85GB / 4GB | 0B / 0B | 2 |
| 20 | 1793215896 | mtusi2026lab3-valkey-1 | 7.70% | 11.33MiB / 128MiB | 8.85% | 189MB / 208MB | 0B / 1.53MB | 6 |
| 21 | 1793215899 | mtusi2026lab3-k6-run-83c362168757 | 58.94% | 310.3MiB / 1GiB | 30.31% | 195MB / 31.5MB | 0B / 0B | 9 |
| 22 | 1793215899 | mtusi2026lab3-api-1 | 308.25% | 338.9MiB / 2GiB | 16.55% | 3.29GB / 4.64GB | 0B / 0B | 25 |
| 23 | 1793215899 | mtusi2026lab3-postgres-1 | 134.97% | 436.1MiB / 1GiB | 42.59% | 1.05GB / 2.18GB | 52.6MB / 9.87GB | 38 |
| 24 | 1793215899 | mtusi2026lab3-lb-1 | 33.98% | 26.06MiB / 128MiB | 20.36% | 3.91GB / 4.06GB | 0B / 0B | 2 |
| 25 | 1793215899 | mtusi2026lab3-valkey-1 | 7.71% | 11.32MiB / 128MiB | 8.85% | 192MB / 211MB | 0B / 1.53MB | 6 |
| 26 | 1793215903 | mtusi2026lab3-k6-run-83c362168757 | 59.92% | 310.3MiB / 1GiB | 30.30% | 230MB / 37.3MB | 0B / 0B | 9 |
| 27 | 1793215903 | mtusi2026lab3-api-1 | 325.88% | 338.9MiB / 2GiB | 16.55% | 3.32GB / 4.69GB | 0B / 0B | 25 |
| 28 | 1793215903 | mtusi2026lab3-postgres-1 | 141.71% | 435.6MiB / 1GiB | 42.54% | 1.07GB / 2.2GB | 52.6MB / 9.97GB | 38 |
| 29 | 1793215903 | mtusi2026lab3-lb-1 | 34.58% | 24.57MiB / 128MiB | 19.19% | 3.95GB / 4.11GB | 0B / 0B | 2 |
| 30 | 1793215903 | mtusi2026lab3-valkey-1 | 7.78% | 11.33MiB / 128MiB | 8.85% | 195MB / 214MB | 0B / 1.54MB | 6 |
| 31 | 1793215906 | mtusi2026lab3-k6-run-83c362168757 | 59.50% | 310.3MiB / 1GiB | 30.31% | 274MB / 44.5MB | 0B / 0B | 9 |
| 32 | 1793215906 | mtusi2026lab3-api-1 | 309.58% | 339MiB / 2GiB | 16.55% | 3.37GB / 4.76GB | 0B / 0B | 25 |
| 33 | 1793215906 | mtusi2026lab3-postgres-1 | 135.69% | 436MiB / 1GiB | 42.58% | 1.08GB / 2.22GB | 52.6MB / 10.1GB | 38 |
| 34 | 1793215906 | mtusi2026lab3-lb-1 | 34.57% | 23.78MiB / 128MiB | 18.58% | 4.01GB / 4.16GB | 0B / 0B | 2 |
| 35 | 1793215906 | mtusi2026lab3-valkey-1 | 7.01% | 11.34MiB / 128MiB | 8.86% | 198MB / 217MB | 0B / 1.54MB | 6 |
| 36 | 1793215910 | mtusi2026lab3-k6-run-83c362168757 | 58.29% | 312.4MiB / 1GiB | 30.51% | 319MB / 51.6MB | 0B / 0B | 9 |
| 37 | 1793215910 | mtusi2026lab3-api-1 | 309.70% | 338.7MiB / 2GiB | 16.54% | 3.41GB / 4.82GB | 0B / 0B | 25 |
| 38 | 1793215910 | mtusi2026lab3-postgres-1 | 134.64% | 436.7MiB / 1GiB | 42.64% | 1.09GB / 2.26GB | 52.7MB / 10.2GB | 38 |
| 39 | 1793215910 | mtusi2026lab3-lb-1 | 33.91% | 23.65MiB / 128MiB | 18.48% | 4.06GB / 4.22GB | 0B / 0B | 2 |
| 40 | 1793215910 | mtusi2026lab3-valkey-1 | 7.62% | 11.33MiB / 128MiB | 8.85% | 200MB / 219MB | 0B / 1.54MB | 6 |
| 41 | 1793215913 | mtusi2026lab3-k6-run-83c362168757 | 59.73% | 312.4MiB / 1GiB | 30.50% | 357MB / 57.8MB | 0B / 0B | 9 |
| 42 | 1793215913 | mtusi2026lab3-api-1 | 312.00% | 339.1MiB / 2GiB | 16.56% | 3.45GB / 4.88GB | 0B / 0B | 25 |
| 43 | 1793215913 | mtusi2026lab3-postgres-1 | 137.81% | 432.9MiB / 1GiB | 42.28% | 1.11GB / 2.29GB | 52.7MB / 10.3GB | 37 |
| 44 | 1793215913 | mtusi2026lab3-lb-1 | 34.47% | 23.47MiB / 128MiB | 18.34% | 4.11GB / 4.27GB | 0B / 0B | 2 |
| 45 | 1793215913 | mtusi2026lab3-valkey-1 | 7.70% | 11.32MiB / 128MiB | 8.85% | 203MB / 223MB | 0B / 1.54MB | 6 |
| 46 | 1793215917 | mtusi2026lab3-k6-run-83c362168757 | 60.48% | 322.5MiB / 1GiB | 31.49% | 402MB / 65MB | 0B / 0B | 9 |
| 47 | 1793215917 | mtusi2026lab3-api-1 | 314.80% | 339.3MiB / 2GiB | 16.57% | 3.5GB / 4.94GB | 0B / 0B | 25 |
| 48 | 1793215917 | mtusi2026lab3-postgres-1 | 139.62% | 437MiB / 1GiB | 42.68% | 1.12GB / 2.32GB | 52.7MB / 10.4GB | 38 |
| 49 | 1793215917 | mtusi2026lab3-lb-1 | 34.08% | 24.51MiB / 128MiB | 19.15% | 4.15GB / 4.31GB | 0B / 0B | 2 |
| 50 | 1793215917 | mtusi2026lab3-valkey-1 | 7.71% | 11.33MiB / 128MiB | 8.85% | 205MB / 226MB | 0B / 1.54MB | 6 |
| 51 | 1793215920 | mtusi2026lab3-k6-run-83c362168757 | 69.88% | 322.6MiB / 1GiB | 31.50% | 447MB / 72.2MB | 0B / 0B | 9 |
| 52 | 1793215920 | mtusi2026lab3-api-1 | 322.27% | 338.9MiB / 2GiB | 16.55% | 3.55GB / 5.01GB | 0B / 0B | 25 |
| 53 | 1793215920 | mtusi2026lab3-postgres-1 | 147.02% | 437.1MiB / 1GiB | 42.68% | 1.14GB / 2.35GB | 52.7MB / 10.5GB | 38 |
| 54 | 1793215920 | mtusi2026lab3-lb-1 | 35.76% | 27.41MiB / 128MiB | 21.41% | 4.22GB / 4.39GB | 0B / 0B | 2 |
| 55 | 1793215920 | mtusi2026lab3-valkey-1 | 8.98% | 11.33MiB / 128MiB | 8.85% | 207MB / 228MB | 0B / 1.54MB | 6 |