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.9 KiB
5.9 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216603 | mtusi2026lab3-api-1 | 88.25% | 188.1MiB / 1GiB | 18.37% | 579MB / 815MB | 0B / 0B | 13 |
| 3 | 1793216603 | mtusi2026lab3-api-2 | 88.13% | 185.5MiB / 1GiB | 18.12% | 580MB / 818MB | 0B / 0B | 13 |
| 4 | 1793216603 | mtusi2026lab3-postgres-1 | 57.30% | 334.8MiB / 1GiB | 32.70% | 373MB / 766MB | 86kB / 3.74GB | 37 |
| 5 | 1793216603 | mtusi2026lab3-lb-1 | 16.85% | 14.61MiB / 128MiB | 11.42% | 1.37GB / 1.43GB | 0B / 0B | 2 |
| 6 | 1793216603 | mtusi2026lab3-valkey-1 | 1.67% | 11.29MiB / 128MiB | 8.82% | 67.9MB / 74.6MB | 0B / 1.01MB | 6 |
| 7 | 1793216607 | mtusi2026lab3-k6-run-5f58ac1233f0 | 31.81% | 126.8MiB / 1GiB | 12.39% | 26.5MB / 4.44MB | 0B / 0B | 9 |
| 8 | 1793216607 | mtusi2026lab3-api-1 | 86.41% | 189.2MiB / 1GiB | 18.47% | 589MB / 829MB | 0B / 0B | 13 |
| 9 | 1793216607 | mtusi2026lab3-api-2 | 85.78% | 186.1MiB / 1GiB | 18.18% | 590MB / 832MB | 0B / 0B | 13 |
| 10 | 1793216607 | mtusi2026lab3-postgres-1 | 62.20% | 337MiB / 1GiB | 32.91% | 377MB / 776MB | 86kB / 3.78GB | 37 |
| 11 | 1793216607 | mtusi2026lab3-lb-1 | 19.55% | 18MiB / 128MiB | 14.06% | 1.4GB / 1.46GB | 0B / 0B | 2 |
| 12 | 1793216607 | mtusi2026lab3-valkey-1 | 4.55% | 11.5MiB / 128MiB | 8.98% | 69.4MB / 76.3MB | 0B / 1.01MB | 6 |
| 13 | 1793216611 | mtusi2026lab3-k6-run-5f58ac1233f0 | 29.81% | 129.3MiB / 1GiB | 12.62% | 42.7MB / 7.04MB | 0B / 0B | 9 |
| 14 | 1793216611 | mtusi2026lab3-api-1 | 76.64% | 189.4MiB / 1GiB | 18.50% | 597MB / 842MB | 0B / 0B | 13 |
| 15 | 1793216611 | mtusi2026lab3-api-2 | 74.86% | 186.2MiB / 1GiB | 18.18% | 599MB / 844MB | 0B / 0B | 13 |
| 16 | 1793216611 | mtusi2026lab3-postgres-1 | 59.52% | 344.2MiB / 1GiB | 33.61% | 385MB / 791MB | 86kB / 3.85GB | 38 |
| 17 | 1793216611 | mtusi2026lab3-lb-1 | 16.34% | 18.19MiB / 128MiB | 14.21% | 1.42GB / 1.48GB | 0B / 0B | 2 |
| 18 | 1793216611 | mtusi2026lab3-valkey-1 | 3.47% | 11.39MiB / 128MiB | 8.90% | 70.4MB / 77.4MB | 0B / 1.01MB | 6 |
| 19 | 1793216614 | mtusi2026lab3-k6-run-5f58ac1233f0 | 33.49% | 144.6MiB / 1GiB | 14.12% | 62.2MB / 10.2MB | 0B / 0B | 9 |
| 20 | 1793216614 | mtusi2026lab3-api-1 | 95.27% | 189.2MiB / 1GiB | 18.47% | 607MB / 856MB | 0B / 0B | 13 |
| 21 | 1793216614 | mtusi2026lab3-api-2 | 96.88% | 186.1MiB / 1GiB | 18.17% | 609MB / 859MB | 0B / 0B | 13 |
| 22 | 1793216614 | mtusi2026lab3-postgres-1 | 64.91% | 347.1MiB / 1GiB | 33.90% | 391MB / 804MB | 86kB / 3.91GB | 38 |
| 23 | 1793216614 | mtusi2026lab3-lb-1 | 18.04% | 19.07MiB / 128MiB | 14.90% | 1.44GB / 1.5GB | 0B / 0B | 2 |
| 24 | 1793216614 | mtusi2026lab3-valkey-1 | 3.50% | 11.39MiB / 128MiB | 8.90% | 71.2MB / 78.3MB | 0B / 1.01MB | 6 |
| 25 | 1793216617 | mtusi2026lab3-k6-run-5f58ac1233f0 | 30.86% | 143.9MiB / 1GiB | 14.05% | 80.9MB / 13.4MB | 0B / 0B | 9 |
| 26 | 1793216617 | mtusi2026lab3-api-1 | 81.50% | 189.2MiB / 1GiB | 18.48% | 617MB / 870MB | 0B / 0B | 13 |
| 27 | 1793216617 | mtusi2026lab3-api-2 | 81.71% | 186.2MiB / 1GiB | 18.18% | 619MB / 872MB | 0B / 0B | 13 |
| 28 | 1793216617 | mtusi2026lab3-postgres-1 | 65.19% | 350.7MiB / 1GiB | 34.24% | 398MB / 817MB | 86kB / 3.98GB | 38 |
| 29 | 1793216617 | mtusi2026lab3-lb-1 | 17.90% | 18.4MiB / 128MiB | 14.38% | 1.47GB / 1.53GB | 0B / 0B | 2 |
| 30 | 1793216617 | mtusi2026lab3-valkey-1 | 3.62% | 11.39MiB / 128MiB | 8.90% | 72.4MB / 79.6MB | 0B / 1.01MB | 6 |
| 31 | 1793216621 | mtusi2026lab3-k6-run-5f58ac1233f0 | 30.65% | 143.9MiB / 1GiB | 14.05% | 101MB / 16.6MB | 0B / 0B | 9 |
| 32 | 1793216621 | mtusi2026lab3-api-1 | 82.10% | 189.2MiB / 1GiB | 18.48% | 628MB / 884MB | 0B / 0B | 13 |
| 33 | 1793216621 | mtusi2026lab3-api-2 | 82.15% | 186.6MiB / 1GiB | 18.22% | 629MB / 887MB | 0B / 0B | 13 |
| 34 | 1793216621 | mtusi2026lab3-postgres-1 | 65.66% | 350MiB / 1GiB | 34.18% | 404MB / 831MB | 86kB / 4.03GB | 37 |
| 35 | 1793216621 | mtusi2026lab3-lb-1 | 17.61% | 18.43MiB / 128MiB | 14.40% | 1.49GB / 1.55GB | 0B / 0B | 2 |
| 36 | 1793216621 | mtusi2026lab3-valkey-1 | 3.64% | 11.38MiB / 128MiB | 8.89% | 73.6MB / 80.9MB | 0B / 1.01MB | 6 |
| 37 | 1793216625 | mtusi2026lab3-k6-run-5f58ac1233f0 | 30.29% | 145.9MiB / 1GiB | 14.25% | 115MB / 18.9MB | 0B / 0B | 9 |
| 38 | 1793216625 | mtusi2026lab3-api-1 | 80.16% | 189.7MiB / 1GiB | 18.52% | 638MB / 899MB | 0B / 0B | 13 |
| 39 | 1793216625 | mtusi2026lab3-api-2 | 80.38% | 186.2MiB / 1GiB | 18.18% | 639MB / 901MB | 0B / 0B | 13 |
| 40 | 1793216625 | mtusi2026lab3-postgres-1 | 63.57% | 353MiB / 1GiB | 34.47% | 411MB / 845MB | 86kB / 4.09GB | 37 |
| 41 | 1793216625 | mtusi2026lab3-lb-1 | 16.92% | 17.97MiB / 128MiB | 14.04% | 1.51GB / 1.58GB | 0B / 0B | 2 |
| 42 | 1793216625 | mtusi2026lab3-valkey-1 | 3.62% | 11.62MiB / 128MiB | 9.08% | 75.1MB / 82.6MB | 0B / 1.02MB | 6 |
| 43 | 1793216628 | mtusi2026lab3-k6-run-5f58ac1233f0 | 32.02% | 145.9MiB / 1GiB | 14.25% | 135MB / 22.1MB | 0B / 0B | 9 |
| 44 | 1793216628 | mtusi2026lab3-api-1 | 80.16% | 189.2MiB / 1GiB | 18.47% | 648MB / 913MB | 0B / 0B | 13 |
| 45 | 1793216628 | mtusi2026lab3-api-2 | 79.53% | 186.4MiB / 1GiB | 18.20% | 650MB / 916MB | 0B / 0B | 13 |
| 46 | 1793216628 | mtusi2026lab3-postgres-1 | 63.20% | 356.6MiB / 1GiB | 34.82% | 417MB / 858MB | 86kB / 4.16GB | 37 |
| 47 | 1793216628 | mtusi2026lab3-lb-1 | 17.09% | 17.98MiB / 128MiB | 14.04% | 1.54GB / 1.6GB | 0B / 0B | 2 |
| 48 | 1793216628 | mtusi2026lab3-valkey-1 | 3.61% | 11.38MiB / 128MiB | 8.89% | 76.3MB / 83.9MB | 0B / 1.02MB | 6 |
| 49 | 1793216632 | mtusi2026lab3-k6-run-5f58ac1233f0 | 34.56% | 146.8MiB / 1GiB | 14.33% | 155MB / 25.2MB | 0B / 0B | 9 |
| 50 | 1793216632 | mtusi2026lab3-api-1 | 81.31% | 189.3MiB / 1GiB | 18.48% | 659MB / 928MB | 0B / 0B | 13 |
| 51 | 1793216632 | mtusi2026lab3-api-2 | 81.88% | 186.1MiB / 1GiB | 18.18% | 660MB / 931MB | 0B / 0B | 13 |
| 52 | 1793216632 | mtusi2026lab3-postgres-1 | 79.73% | 355.7MiB / 1GiB | 34.74% | 424MB / 872MB | 86kB / 4.22GB | 36 |
| 53 | 1793216632 | mtusi2026lab3-lb-1 | 17.34% | 17.71MiB / 128MiB | 13.84% | 1.56GB / 1.63GB | 0B / 0B | 2 |
| 54 | 1793216632 | mtusi2026lab3-valkey-1 | 3.70% | 11.35MiB / 128MiB | 8.87% | 77.5MB / 85.2MB | 0B / 1.02MB | 6 |
| 55 | 1793216636 | mtusi2026lab3-k6-run-5f58ac1233f0 | 34.00% | 146.8MiB / 1GiB | 14.33% | 177MB / 28.7MB | 0B / 0B | 9 |
| 56 | 1793216636 | mtusi2026lab3-api-1 | 80.90% | 189.2MiB / 1GiB | 18.48% | 667MB / 940MB | 0B / 0B | 13 |
| 57 | 1793216636 | mtusi2026lab3-api-2 | 80.51% | 186.1MiB / 1GiB | 18.18% | 668MB / 942MB | 0B / 0B | 13 |
| 58 | 1793216636 | mtusi2026lab3-postgres-1 | 65.92% | 360.8MiB / 1GiB | 35.23% | 429MB / 883MB | 86kB / 4.26GB | 37 |
| 59 | 1793216636 | mtusi2026lab3-lb-1 | 17.72% | 17.21MiB / 128MiB | 13.45% | 1.58GB / 1.65GB | 0B / 0B | 2 |
| 60 | 1793216636 | mtusi2026lab3-valkey-1 | 4.26% | 11.35MiB / 128MiB | 8.87% | 78.5MB / 86.3MB | 0B / 1.02MB | 6 |
| 61 | 1793216639 | mtusi2026lab3-k6-run-5f58ac1233f0 | 30.10% | 152MiB / 1GiB | 14.84% | 197MB / 31.9MB | 0B / 0B | 9 |
| 62 | 1793216639 | mtusi2026lab3-api-1 | 75.69% | 189.4MiB / 1GiB | 18.50% | 678MB / 955MB | 0B / 0B | 13 |
| 63 | 1793216639 | mtusi2026lab3-api-2 | 75.75% | 186.4MiB / 1GiB | 18.20% | 678MB / 957MB | 0B / 0B | 13 |
| 64 | 1793216639 | mtusi2026lab3-postgres-1 | 73.08% | 367.1MiB / 1GiB | 35.85% | 434MB / 893MB | 86kB / 4.32GB | 38 |
| 65 | 1793216639 | mtusi2026lab3-lb-1 | 16.99% | 16.21MiB / 128MiB | 12.66% | 1.61GB / 1.67GB | 0B / 0B | 2 |
| 66 | 1793216639 | mtusi2026lab3-valkey-1 | 3.45% | 11.35MiB / 128MiB | 8.87% | 79.7MB / 87.6MB | 0B / 1.02MB | 6 |