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.3 KiB
5.3 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215463 | mtusi2026lab3-api-1 | 85.65% | 294.5MiB / 2GiB | 14.38% | 638MB / 899MB | 0B / 0B | 24 |
| 3 | 1793215463 | mtusi2026lab3-postgres-1 | 34.90% | 249.1MiB / 1GiB | 24.32% | 205MB / 422MB | 0B / 2.08GB | 37 |
| 4 | 1793215463 | mtusi2026lab3-lb-1 | 11.66% | 27.07MiB / 128MiB | 21.15% | 756MB / 788MB | 0B / 0B | 2 |
| 5 | 1793215463 | mtusi2026lab3-valkey-1 | 2.28% | 11.23MiB / 128MiB | 8.77% | 37.8MB / 41.3MB | 0B / 725kB | 6 |
| 6 | 1793215467 | mtusi2026lab3-k6-run-4099bb384573 | 20.71% | 89.46MiB / 1GiB | 8.74% | 17.8MB / 2.99MB | 0B / 0B | 8 |
| 7 | 1793215467 | mtusi2026lab3-api-1 | 97.68% | 294.5MiB / 2GiB | 14.38% | 651MB / 918MB | 0B / 0B | 24 |
| 8 | 1793215467 | mtusi2026lab3-postgres-1 | 40.49% | 250.9MiB / 1GiB | 24.50% | 210MB / 431MB | 0B / 2.11GB | 37 |
| 9 | 1793215467 | mtusi2026lab3-lb-1 | 12.37% | 26.56MiB / 128MiB | 20.75% | 772MB / 805MB | 0B / 0B | 2 |
| 10 | 1793215467 | mtusi2026lab3-valkey-1 | 3.19% | 11.23MiB / 128MiB | 8.77% | 38.4MB / 41.9MB | 0B / 725kB | 6 |
| 11 | 1793215471 | mtusi2026lab3-k6-run-4099bb384573 | 22.86% | 89.64MiB / 1GiB | 8.75% | 30.8MB / 5.1MB | 0B / 0B | 8 |
| 12 | 1793215471 | mtusi2026lab3-api-1 | 98.99% | 294.6MiB / 2GiB | 14.39% | 665MB / 938MB | 0B / 0B | 24 |
| 13 | 1793215471 | mtusi2026lab3-postgres-1 | 41.15% | 253.4MiB / 1GiB | 24.74% | 214MB / 440MB | 0B / 2.15GB | 37 |
| 14 | 1793215471 | mtusi2026lab3-lb-1 | 12.47% | 27.39MiB / 128MiB | 21.40% | 788MB / 821MB | 0B / 0B | 2 |
| 15 | 1793215471 | mtusi2026lab3-valkey-1 | 3.15% | 11.28MiB / 128MiB | 8.81% | 39.2MB / 42.8MB | 0B / 725kB | 6 |
| 16 | 1793215474 | mtusi2026lab3-k6-run-4099bb384573 | 20.52% | 100.6MiB / 1GiB | 9.82% | 42.4MB / 6.95MB | 0B / 0B | 9 |
| 17 | 1793215474 | mtusi2026lab3-api-1 | 109.50% | 294.8MiB / 2GiB | 14.40% | 677MB / 954MB | 0B / 0B | 24 |
| 18 | 1793215474 | mtusi2026lab3-postgres-1 | 40.70% | 255.2MiB / 1GiB | 24.93% | 218MB / 448MB | 0B / 2.18GB | 37 |
| 19 | 1793215474 | mtusi2026lab3-lb-1 | 12.92% | 26.74MiB / 128MiB | 20.89% | 803MB / 836MB | 0B / 0B | 2 |
| 20 | 1793215474 | mtusi2026lab3-valkey-1 | 3.09% | 11.22MiB / 128MiB | 8.77% | 40.1MB / 43.8MB | 0B / 725kB | 6 |
| 21 | 1793215477 | mtusi2026lab3-k6-run-4099bb384573 | 21.21% | 100.1MiB / 1GiB | 9.77% | 55.2MB / 9.07MB | 0B / 0B | 9 |
| 22 | 1793215477 | mtusi2026lab3-api-1 | 98.72% | 294.6MiB / 2GiB | 14.38% | 690MB / 973MB | 0B / 0B | 24 |
| 23 | 1793215477 | mtusi2026lab3-postgres-1 | 42.63% | 253.7MiB / 1GiB | 24.78% | 222MB / 457MB | 0B / 2.24GB | 36 |
| 24 | 1793215477 | mtusi2026lab3-lb-1 | 12.39% | 26.69MiB / 128MiB | 20.85% | 814MB / 848MB | 0B / 0B | 2 |
| 25 | 1793215477 | mtusi2026lab3-valkey-1 | 2.61% | 11.23MiB / 128MiB | 8.77% | 40.9MB / 44.7MB | 0B / 725kB | 6 |
| 26 | 1793215481 | mtusi2026lab3-k6-run-4099bb384573 | 20.40% | 100.1MiB / 1GiB | 9.78% | 67.8MB / 11.2MB | 0B / 0B | 9 |
| 27 | 1793215481 | mtusi2026lab3-api-1 | 94.32% | 294.5MiB / 2GiB | 14.38% | 704MB / 992MB | 0B / 0B | 24 |
| 28 | 1793215481 | mtusi2026lab3-postgres-1 | 40.70% | 256.2MiB / 1GiB | 25.02% | 226MB / 465MB | 0B / 2.27GB | 36 |
| 29 | 1793215481 | mtusi2026lab3-lb-1 | 12.11% | 26.49MiB / 128MiB | 20.69% | 830MB / 865MB | 0B / 0B | 2 |
| 30 | 1793215481 | mtusi2026lab3-valkey-1 | 2.49% | 11.25MiB / 128MiB | 8.79% | 41.7MB / 45.5MB | 0B / 737kB | 6 |
| 31 | 1793215485 | mtusi2026lab3-k6-run-4099bb384573 | 21.03% | 100.1MiB / 1GiB | 9.78% | 81.6MB / 13.3MB | 0B / 0B | 9 |
| 32 | 1793215485 | mtusi2026lab3-api-1 | 107.57% | 295.3MiB / 2GiB | 14.42% | 718MB / 1.01GB | 0B / 0B | 24 |
| 33 | 1793215485 | mtusi2026lab3-postgres-1 | 38.02% | 258.4MiB / 1GiB | 25.24% | 231MB / 475MB | 0B / 2.31GB | 36 |
| 34 | 1793215485 | mtusi2026lab3-lb-1 | 12.62% | 26.33MiB / 128MiB | 20.57% | 847MB / 882MB | 0B / 0B | 2 |
| 35 | 1793215485 | mtusi2026lab3-valkey-1 | 2.44% | 11.25MiB / 128MiB | 8.79% | 42.5MB / 46.4MB | 0B / 737kB | 6 |
| 36 | 1793215489 | mtusi2026lab3-k6-run-4099bb384573 | 21.64% | 105.5MiB / 1GiB | 10.30% | 91.9MB / 15MB | 0B / 0B | 9 |
| 37 | 1793215489 | mtusi2026lab3-api-1 | 96.38% | 308.5MiB / 2GiB | 15.07% | 728MB / 1.03GB | 0B / 0B | 24 |
| 38 | 1793215489 | mtusi2026lab3-postgres-1 | 41.60% | 259.5MiB / 1GiB | 25.34% | 234MB / 482MB | 0B / 2.34GB | 36 |
| 39 | 1793215489 | mtusi2026lab3-lb-1 | 12.65% | 26.73MiB / 128MiB | 20.88% | 864MB / 900MB | 0B / 0B | 2 |
| 40 | 1793215489 | mtusi2026lab3-valkey-1 | 3.16% | 11.25MiB / 128MiB | 8.79% | 43.2MB / 47.1MB | 0B / 737kB | 6 |
| 41 | 1793215492 | mtusi2026lab3-k6-run-4099bb384573 | 19.62% | 105.7MiB / 1GiB | 10.32% | 105MB / 17.1MB | 0B / 0B | 9 |
| 42 | 1793215492 | mtusi2026lab3-api-1 | 90.97% | 308.6MiB / 2GiB | 15.07% | 742MB / 1.05GB | 0B / 0B | 24 |
| 43 | 1793215492 | mtusi2026lab3-postgres-1 | 39.14% | 262MiB / 1GiB | 25.59% | 239MB / 491MB | 0B / 2.4GB | 36 |
| 44 | 1793215492 | mtusi2026lab3-lb-1 | 12.22% | 26.21MiB / 128MiB | 20.48% | 880MB / 916MB | 0B / 0B | 2 |
| 45 | 1793215492 | mtusi2026lab3-valkey-1 | 3.01% | 11.25MiB / 128MiB | 8.79% | 43.7MB / 47.8MB | 0B / 737kB | 6 |
| 46 | 1793215495 | mtusi2026lab3-k6-run-4099bb384573 | 22.60% | 104.8MiB / 1GiB | 10.23% | 117MB / 19.3MB | 0B / 0B | 9 |
| 47 | 1793215495 | mtusi2026lab3-api-1 | 96.00% | 311.1MiB / 2GiB | 15.19% | 752MB / 1.06GB | 0B / 0B | 25 |
| 48 | 1793215495 | mtusi2026lab3-postgres-1 | 39.42% | 256.8MiB / 1GiB | 25.08% | 243MB / 499MB | 0B / 2.44GB | 34 |
| 49 | 1793215495 | mtusi2026lab3-lb-1 | 12.01% | 26.21MiB / 128MiB | 20.47% | 895MB / 933MB | 0B / 0B | 2 |
| 50 | 1793215495 | mtusi2026lab3-valkey-1 | 2.44% | 11.24MiB / 128MiB | 8.78% | 44.8MB / 48.9MB | 0B / 737kB | 6 |
| 51 | 1793215499 | mtusi2026lab3-k6-run-4099bb384573 | 23.95% | 111.4MiB / 1GiB | 10.88% | 128MB / 21.1MB | 0B / 0B | 9 |
| 52 | 1793215499 | mtusi2026lab3-api-1 | 101.09% | 308.6MiB / 2GiB | 15.07% | 767MB / 1.08GB | 0B / 0B | 24 |
| 53 | 1793215499 | mtusi2026lab3-postgres-1 | 41.08% | 255.3MiB / 1GiB | 24.93% | 247MB / 507MB | 0B / 2.47GB | 33 |
| 54 | 1793215499 | mtusi2026lab3-lb-1 | 12.89% | 27MiB / 128MiB | 21.09% | 909MB / 947MB | 0B / 0B | 2 |
| 55 | 1793215499 | mtusi2026lab3-valkey-1 | 3.23% | 11.25MiB / 128MiB | 8.79% | 45.5MB / 49.6MB | 0B / 737kB | 6 |
| 56 | 1793215502 | mtusi2026lab3-k6-run-4099bb384573 | 15.79% | 111.8MiB / 1GiB | 10.92% | 140MB / 23MB | 0B / 0B | 9 |
| 57 | 1793215502 | mtusi2026lab3-api-1 | 60.84% | 308.5MiB / 2GiB | 15.06% | 779MB / 1.1GB | 0B / 0B | 24 |
| 58 | 1793215502 | mtusi2026lab3-postgres-1 | 25.84% | 257.1MiB / 1GiB | 25.10% | 251MB / 515MB | 0B / 2.5GB | 33 |
| 59 | 1793215502 | mtusi2026lab3-lb-1 | 8.33% | 26.22MiB / 128MiB | 20.48% | 924MB / 963MB | 0B / 0B | 2 |
| 60 | 1793215502 | mtusi2026lab3-valkey-1 | 2.48% | 11.25MiB / 128MiB | 8.79% | 46MB / 50.3MB | 0B / 737kB | 6 |