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 | 1793216136 | mtusi2026lab3-api-1 | 21.25% | 147.2MiB / 1GiB | 14.38% | 1.08MB / 1.41MB | 0B / 0B | 13 |
| 3 | 1793216136 | mtusi2026lab3-api-2 | 21.52% | 126.5MiB / 1GiB | 12.36% | 1.08MB / 1.44MB | 0B / 0B | 12 |
| 4 | 1793216136 | mtusi2026lab3-postgres-1 | 16.38% | 81.52MiB / 1GiB | 7.96% | 953kB / 1.32MB | 86kB / 60.3MB | 19 |
| 5 | 1793216136 | mtusi2026lab3-lb-1 | 5.73% | 12.68MiB / 128MiB | 9.91% | 2.16MB / 2.32MB | 0B / 0B | 2 |
| 6 | 1793216136 | mtusi2026lab3-valkey-1 | 0.76% | 10.82MiB / 128MiB | 8.45% | 60.4kB / 54.1kB | 0B / 94.2kB | 6 |
| 7 | 1793216140 | mtusi2026lab3-k6-run-5e0831a34e32 | 10.92% | 47.57MiB / 1GiB | 4.65% | 7.55MB / 1.33MB | 0B / 0B | 8 |
| 8 | 1793216140 | mtusi2026lab3-api-1 | 35.11% | 147.3MiB / 1GiB | 14.38% | 4.15MB / 5.78MB | 0B / 0B | 13 |
| 9 | 1793216140 | mtusi2026lab3-api-2 | 21.96% | 126.9MiB / 1GiB | 12.40% | 3.3MB / 4.6MB | 0B / 0B | 12 |
| 10 | 1793216140 | mtusi2026lab3-postgres-1 | 17.29% | 90.12MiB / 1GiB | 8.80% | 2.9MB / 5.4MB | 86kB / 76.4MB | 21 |
| 11 | 1793216140 | mtusi2026lab3-lb-1 | 5.93% | 12.08MiB / 128MiB | 9.44% | 9.48MB / 9.95MB | 0B / 0B | 2 |
| 12 | 1793216140 | mtusi2026lab3-valkey-1 | 1.78% | 10.83MiB / 128MiB | 8.46% | 512kB / 549kB | 0B / 94.2kB | 6 |
| 13 | 1793216143 | mtusi2026lab3-k6-run-5e0831a34e32 | 12.03% | 47.66MiB / 1GiB | 4.65% | 11.9MB / 2.01MB | 0B / 0B | 8 |
| 14 | 1793216143 | mtusi2026lab3-api-1 | 23.92% | 161.9MiB / 1GiB | 15.81% | 7.12MB / 9.94MB | 0B / 0B | 13 |
| 15 | 1793216143 | mtusi2026lab3-api-2 | 24.32% | 141.4MiB / 1GiB | 13.81% | 7.18MB / 10.1MB | 0B / 0B | 12 |
| 16 | 1793216143 | mtusi2026lab3-postgres-1 | 17.59% | 91.01MiB / 1GiB | 8.89% | 4.81MB / 9.4MB | 86kB / 92.6MB | 21 |
| 17 | 1793216143 | mtusi2026lab3-lb-1 | 5.24% | 12.12MiB / 128MiB | 9.47% | 16.6MB / 17.4MB | 0B / 0B | 2 |
| 18 | 1793216143 | mtusi2026lab3-valkey-1 | 1.16% | 10.82MiB / 128MiB | 8.46% | 866kB / 937kB | 0B / 94.2kB | 6 |
| 19 | 1793216147 | mtusi2026lab3-k6-run-5e0831a34e32 | 11.39% | 52.16MiB / 1GiB | 5.09% | 17.9MB / 3.04MB | 0B / 0B | 8 |
| 20 | 1793216147 | mtusi2026lab3-api-1 | 22.72% | 162.3MiB / 1GiB | 15.85% | 9.51MB / 13.3MB | 0B / 0B | 13 |
| 21 | 1793216147 | mtusi2026lab3-api-2 | 22.93% | 141.6MiB / 1GiB | 13.83% | 9.62MB / 13.5MB | 0B / 0B | 12 |
| 22 | 1793216147 | mtusi2026lab3-postgres-1 | 16.94% | 91.63MiB / 1GiB | 8.95% | 6.39MB / 12.6MB | 86kB / 106MB | 21 |
| 23 | 1793216147 | mtusi2026lab3-lb-1 | 6.07% | 11.76MiB / 128MiB | 9.19% | 22.3MB / 23.3MB | 0B / 0B | 2 |
| 24 | 1793216147 | mtusi2026lab3-valkey-1 | 1.78% | 10.82MiB / 128MiB | 8.46% | 1.16MB / 1.26MB | 0B / 94.2kB | 6 |
| 25 | 1793216150 | mtusi2026lab3-k6-run-5e0831a34e32 | 11.28% | 52.02MiB / 1GiB | 5.08% | 23.5MB / 3.98MB | 0B / 0B | 9 |
| 26 | 1793216150 | mtusi2026lab3-api-1 | 35.07% | 162.2MiB / 1GiB | 15.84% | 12.5MB / 17.5MB | 0B / 0B | 13 |
| 27 | 1793216150 | mtusi2026lab3-api-2 | 22.19% | 141.8MiB / 1GiB | 13.85% | 11.8MB / 16.5MB | 0B / 0B | 12 |
| 28 | 1793216150 | mtusi2026lab3-postgres-1 | 16.65% | 93.21MiB / 1GiB | 9.10% | 8.32MB / 16.5MB | 86kB / 139MB | 21 |
| 29 | 1793216150 | mtusi2026lab3-lb-1 | 5.89% | 11.95MiB / 128MiB | 9.34% | 29.3MB / 30.6MB | 0B / 0B | 2 |
| 30 | 1793216150 | mtusi2026lab3-valkey-1 | 1.72% | 10.84MiB / 128MiB | 8.47% | 1.51MB / 1.64MB | 0B / 94.2kB | 6 |
| 31 | 1793216154 | mtusi2026lab3-k6-run-5e0831a34e32 | 12.21% | 52.12MiB / 1GiB | 5.09% | 29.3MB / 4.92MB | 0B / 0B | 9 |
| 32 | 1793216154 | mtusi2026lab3-api-1 | 21.79% | 161.9MiB / 1GiB | 15.81% | 15.6MB / 21.9MB | 0B / 0B | 13 |
| 33 | 1793216154 | mtusi2026lab3-api-2 | 22.11% | 141.5MiB / 1GiB | 13.82% | 15.5MB / 21.7MB | 0B / 0B | 12 |
| 34 | 1793216154 | mtusi2026lab3-postgres-1 | 17.20% | 94.62MiB / 1GiB | 9.24% | 10.2MB / 20.5MB | 86kB / 156MB | 21 |
| 35 | 1793216154 | mtusi2026lab3-lb-1 | 5.19% | 12.21MiB / 128MiB | 9.54% | 34.6MB / 36.2MB | 0B / 0B | 2 |
| 36 | 1793216154 | mtusi2026lab3-valkey-1 | 1.72% | 10.89MiB / 128MiB | 8.51% | 1.87MB / 2.03MB | 0B / 94.2kB | 6 |
| 37 | 1793216157 | mtusi2026lab3-k6-run-5e0831a34e32 | 10.98% | 52.17MiB / 1GiB | 5.09% | 34.8MB / 5.85MB | 0B / 0B | 9 |
| 38 | 1793216157 | mtusi2026lab3-api-1 | 21.61% | 162.2MiB / 1GiB | 15.84% | 18.6MB / 26MB | 0B / 0B | 13 |
| 39 | 1793216157 | mtusi2026lab3-api-2 | 21.69% | 141.7MiB / 1GiB | 13.84% | 18.4MB / 25.8MB | 0B / 0B | 12 |
| 40 | 1793216157 | mtusi2026lab3-postgres-1 | 16.63% | 95.52MiB / 1GiB | 9.33% | 12.2MB / 24.3MB | 86kB / 172MB | 21 |
| 41 | 1793216157 | mtusi2026lab3-lb-1 | 5.14% | 11.69MiB / 128MiB | 9.13% | 43.3MB / 45.3MB | 0B / 0B | 2 |
| 42 | 1793216157 | mtusi2026lab3-valkey-1 | 1.74% | 10.85MiB / 128MiB | 8.47% | 2.12MB / 2.31MB | 0B / 94.2kB | 6 |
| 43 | 1793216161 | mtusi2026lab3-k6-run-5e0831a34e32 | 11.43% | 52.23MiB / 1GiB | 5.10% | 40.3MB / 6.79MB | 0B / 0B | 9 |
| 44 | 1793216161 | mtusi2026lab3-api-1 | 22.51% | 161.9MiB / 1GiB | 15.81% | 21.4MB / 30MB | 0B / 0B | 13 |
| 45 | 1793216161 | mtusi2026lab3-api-2 | 22.66% | 141.7MiB / 1GiB | 13.84% | 21.4MB / 30MB | 0B / 0B | 12 |
| 46 | 1793216161 | mtusi2026lab3-postgres-1 | 17.75% | 96.44MiB / 1GiB | 9.42% | 13.6MB / 27.1MB | 86kB / 184MB | 21 |
| 47 | 1793216161 | mtusi2026lab3-lb-1 | 5.44% | 11.71MiB / 128MiB | 9.15% | 50.1MB / 52.4MB | 0B / 0B | 2 |
| 48 | 1793216161 | mtusi2026lab3-valkey-1 | 1.19% | 10.84MiB / 128MiB | 8.47% | 2.57MB / 2.81MB | 0B / 94.2kB | 6 |
| 49 | 1793216165 | mtusi2026lab3-k6-run-5e0831a34e32 | 11.16% | 52.27MiB / 1GiB | 5.10% | 46.2MB / 7.73MB | 0B / 0B | 9 |
| 50 | 1793216165 | mtusi2026lab3-api-1 | 22.15% | 163.2MiB / 1GiB | 15.94% | 24.4MB / 34.2MB | 0B / 0B | 13 |
| 51 | 1793216165 | mtusi2026lab3-api-2 | 22.53% | 141.5MiB / 1GiB | 13.82% | 24.5MB / 34.4MB | 0B / 0B | 12 |
| 52 | 1793216165 | mtusi2026lab3-postgres-1 | 17.16% | 97.39MiB / 1GiB | 9.51% | 16MB / 32.2MB | 86kB / 205MB | 21 |
| 53 | 1793216165 | mtusi2026lab3-lb-1 | 5.78% | 12.01MiB / 128MiB | 9.38% | 55.4MB / 57.9MB | 0B / 0B | 2 |
| 54 | 1793216165 | mtusi2026lab3-valkey-1 | 1.74% | 10.84MiB / 128MiB | 8.47% | 2.92MB / 3.19MB | 0B / 94.2kB | 6 |
| 55 | 1793216168 | mtusi2026lab3-k6-run-5e0831a34e32 | 11.85% | 52.3MiB / 1GiB | 5.11% | 50.5MB / 8.41MB | 0B / 0B | 9 |
| 56 | 1793216168 | mtusi2026lab3-api-1 | 22.46% | 162.8MiB / 1GiB | 15.90% | 27.4MB / 38.4MB | 0B / 0B | 13 |
| 57 | 1793216168 | mtusi2026lab3-api-2 | 23.06% | 141.5MiB / 1GiB | 13.82% | 27.6MB / 38.8MB | 0B / 0B | 12 |
| 58 | 1793216168 | mtusi2026lab3-postgres-1 | 17.25% | 98.46MiB / 1GiB | 9.61% | 17.9MB / 36.2MB | 86kB / 221MB | 21 |
| 59 | 1793216168 | mtusi2026lab3-lb-1 | 5.98% | 11.96MiB / 128MiB | 9.34% | 64.7MB / 67.6MB | 0B / 0B | 2 |
| 60 | 1793216168 | mtusi2026lab3-valkey-1 | 1.74% | 10.87MiB / 128MiB | 8.49% | 3.28MB / 3.58MB | 0B / 94.2kB | 6 |
| 61 | 1793216172 | mtusi2026lab3-k6-run-5e0831a34e32 | 11.10% | 52.43MiB / 1GiB | 5.12% | 57.2MB / 9.43MB | 0B / 0B | 9 |
| 62 | 1793216172 | mtusi2026lab3-api-1 | 22.23% | 162.8MiB / 1GiB | 15.90% | 30MB / 42.1MB | 0B / 0B | 13 |
| 63 | 1793216172 | mtusi2026lab3-api-2 | 22.35% | 141.9MiB / 1GiB | 13.85% | 30.1MB / 42.3MB | 0B / 0B | 12 |
| 64 | 1793216172 | mtusi2026lab3-postgres-1 | 17.87% | 99.18MiB / 1GiB | 9.69% | 19.5MB / 39.6MB | 86kB / 234MB | 21 |
| 65 | 1793216172 | mtusi2026lab3-lb-1 | 5.30% | 11.75MiB / 128MiB | 9.18% | 70.8MB / 74MB | 0B / 0B | 2 |
| 66 | 1793216172 | mtusi2026lab3-valkey-1 | 1.16% | 10.84MiB / 128MiB | 8.47% | 3.57MB / 3.9MB | 0B / 94.2kB | 6 |