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.4 KiB
5.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215129 | mtusi2026lab3-api-1 | 43.33% | 199.7MiB / 2GiB | 9.75% | 1.94MB / 2.6MB | 0B / 0B | 23 |
| 3 | 1793215129 | mtusi2026lab3-postgres-1 | 17.04% | 93.53MiB / 1GiB | 9.13% | 902kB / 1.19MB | 0B / 59.7MB | 23 |
| 4 | 1793215129 | mtusi2026lab3-lb-1 | 6.72% | 13.96MiB / 128MiB | 10.91% | 1.94MB / 2.08MB | 0B / 0B | 2 |
| 5 | 1793215129 | mtusi2026lab3-valkey-1 | 1.87% | 11.1MiB / 128MiB | 8.67% | 142kB / 143kB | 0B / 94.2kB | 6 |
| 6 | 1793215133 | mtusi2026lab3-k6-run-1589ede61736 | 12.97% | 47.56MiB / 1GiB | 4.64% | 7.29MB / 1.29MB | 0B / 0B | 9 |
| 7 | 1793215133 | mtusi2026lab3-api-1 | 69.40% | 215.1MiB / 2GiB | 10.50% | 8MB / 11.2MB | 0B / 0B | 23 |
| 8 | 1793215133 | mtusi2026lab3-postgres-1 | 20.08% | 95.36MiB / 1GiB | 9.31% | 2.82MB / 5.22MB | 0B / 75.8MB | 23 |
| 9 | 1793215133 | mtusi2026lab3-lb-1 | 7.93% | 13.8MiB / 128MiB | 10.78% | 9.15MB / 9.61MB | 0B / 0B | 2 |
| 10 | 1793215133 | mtusi2026lab3-valkey-1 | 1.19% | 10.88MiB / 128MiB | 8.50% | 401kB / 426kB | 0B / 94.2kB | 6 |
| 11 | 1793215137 | mtusi2026lab3-k6-run-1589ede61736 | 16.01% | 47.72MiB / 1GiB | 4.66% | 13.3MB / 2.26MB | 0B / 0B | 9 |
| 12 | 1793215137 | mtusi2026lab3-api-1 | 65.87% | 217.3MiB / 2GiB | 10.61% | 14.3MB / 20.3MB | 0B / 0B | 23 |
| 13 | 1793215137 | mtusi2026lab3-postgres-1 | 27.36% | 149.1MiB / 1GiB | 14.56% | 5MB / 9.43MB | 0B / 91.3MB | 38 |
| 14 | 1793215137 | mtusi2026lab3-lb-1 | 13.96% | 15.11MiB / 128MiB | 11.80% | 14.6MB / 15.3MB | 0B / 0B | 2 |
| 15 | 1793215137 | mtusi2026lab3-valkey-1 | 1.98% | 11.14MiB / 128MiB | 8.70% | 886kB / 944kB | 0B / 94.2kB | 6 |
| 16 | 1793215140 | mtusi2026lab3-k6-run-1589ede61736 | 13.51% | 52.14MiB / 1GiB | 5.09% | 19.4MB / 3.21MB | 0B / 0B | 9 |
| 17 | 1793215140 | mtusi2026lab3-api-1 | 59.20% | 217MiB / 2GiB | 10.60% | 20.5MB / 29.1MB | 0B / 0B | 23 |
| 18 | 1793215140 | mtusi2026lab3-postgres-1 | 22.40% | 150.3MiB / 1GiB | 14.68% | 6.43MB / 12.4MB | 0B / 103MB | 38 |
| 19 | 1793215140 | mtusi2026lab3-lb-1 | 8.00% | 15.11MiB / 128MiB | 11.80% | 24.1MB / 25.2MB | 0B / 0B | 2 |
| 20 | 1793215140 | mtusi2026lab3-valkey-1 | 1.70% | 11.15MiB / 128MiB | 8.71% | 1.25MB / 1.34MB | 0B / 94.2kB | 6 |
| 21 | 1793215144 | mtusi2026lab3-k6-run-1589ede61736 | 13.01% | 51.99MiB / 1GiB | 5.08% | 24.3MB / 3.98MB | 0B / 0B | 9 |
| 22 | 1793215144 | mtusi2026lab3-api-1 | 64.97% | 217MiB / 2GiB | 10.60% | 25.5MB / 36.2MB | 0B / 0B | 23 |
| 23 | 1793215144 | mtusi2026lab3-postgres-1 | 19.88% | 151.8MiB / 1GiB | 14.83% | 8.54MB / 16.9MB | 0B / 137MB | 38 |
| 24 | 1793215144 | mtusi2026lab3-lb-1 | 7.66% | 14.77MiB / 128MiB | 11.54% | 30.2MB / 31.5MB | 0B / 0B | 2 |
| 25 | 1793215144 | mtusi2026lab3-valkey-1 | 2.11% | 11.16MiB / 128MiB | 8.72% | 1.54MB / 1.66MB | 0B / 94.2kB | 6 |
| 26 | 1793215147 | mtusi2026lab3-k6-run-1589ede61736 | 12.14% | 52.04MiB / 1GiB | 5.08% | 30.4MB / 4.92MB | 0B / 0B | 9 |
| 27 | 1793215147 | mtusi2026lab3-api-1 | 50.40% | 217.3MiB / 2GiB | 10.61% | 31.7MB / 45MB | 0B / 0B | 23 |
| 28 | 1793215147 | mtusi2026lab3-postgres-1 | 19.01% | 153.1MiB / 1GiB | 14.95% | 10.5MB / 21MB | 0B / 153MB | 38 |
| 29 | 1793215147 | mtusi2026lab3-lb-1 | 7.21% | 14.73MiB / 128MiB | 11.51% | 37.6MB / 39.2MB | 0B / 0B | 2 |
| 30 | 1793215147 | mtusi2026lab3-valkey-1 | 1.26% | 11.16MiB / 128MiB | 8.72% | 1.8MB / 1.94MB | 0B / 94.2kB | 6 |
| 31 | 1793215151 | mtusi2026lab3-k6-run-1589ede61736 | 12.37% | 52.09MiB / 1GiB | 5.09% | 36.1MB / 5.86MB | 0B / 0B | 9 |
| 32 | 1793215151 | mtusi2026lab3-api-1 | 50.12% | 217.2MiB / 2GiB | 10.61% | 37.7MB / 53.4MB | 0B / 0B | 23 |
| 33 | 1793215151 | mtusi2026lab3-postgres-1 | 19.82% | 153.9MiB / 1GiB | 15.03% | 12.4MB / 25MB | 0B / 170MB | 38 |
| 34 | 1793215151 | mtusi2026lab3-lb-1 | 6.91% | 15.28MiB / 128MiB | 11.94% | 44.6MB / 46.5MB | 0B / 0B | 2 |
| 35 | 1793215151 | mtusi2026lab3-valkey-1 | 2.00% | 11.16MiB / 128MiB | 8.72% | 2.16MB / 2.33MB | 0B / 94.2kB | 6 |
| 36 | 1793215154 | mtusi2026lab3-k6-run-1589ede61736 | 11.56% | 52.14MiB / 1GiB | 5.09% | 40.9MB / 6.68MB | 0B / 0B | 9 |
| 37 | 1793215154 | mtusi2026lab3-api-1 | 60.54% | 217.1MiB / 2GiB | 10.60% | 42.8MB / 60.6MB | 0B / 0B | 23 |
| 38 | 1793215154 | mtusi2026lab3-postgres-1 | 19.04% | 154.8MiB / 1GiB | 15.12% | 14.1MB / 28.3MB | 0B / 184MB | 38 |
| 39 | 1793215154 | mtusi2026lab3-lb-1 | 6.83% | 14.79MiB / 128MiB | 11.55% | 50.6MB / 52.8MB | 0B / 0B | 2 |
| 40 | 1793215154 | mtusi2026lab3-valkey-1 | 1.93% | 11.16MiB / 128MiB | 8.72% | 2.57MB / 2.77MB | 0B / 94.2kB | 6 |
| 41 | 1793215158 | mtusi2026lab3-k6-run-1589ede61736 | 12.41% | 54.16MiB / 1GiB | 5.29% | 46.9MB / 7.62MB | 0B / 0B | 9 |
| 42 | 1793215158 | mtusi2026lab3-api-1 | 51.52% | 231.6MiB / 2GiB | 11.31% | 49MB / 69.3MB | 0B / 0B | 23 |
| 43 | 1793215158 | mtusi2026lab3-postgres-1 | 19.60% | 155.7MiB / 1GiB | 15.20% | 16MB / 32.5MB | 0B / 200MB | 38 |
| 44 | 1793215158 | mtusi2026lab3-lb-1 | 7.56% | 15.05MiB / 128MiB | 11.76% | 55.9MB / 58.3MB | 0B / 0B | 2 |
| 45 | 1793215158 | mtusi2026lab3-valkey-1 | 2.04% | 11.16MiB / 128MiB | 8.72% | 2.93MB / 3.16MB | 0B / 94.2kB | 6 |
| 46 | 1793215161 | mtusi2026lab3-k6-run-1589ede61736 | 11.97% | 54.18MiB / 1GiB | 5.29% | 51.1MB / 8.31MB | 0B / 0B | 9 |
| 47 | 1793215161 | mtusi2026lab3-api-1 | 49.67% | 232.1MiB / 2GiB | 11.33% | 55MB / 77.8MB | 0B / 0B | 23 |
| 48 | 1793215161 | mtusi2026lab3-postgres-1 | 19.99% | 156.5MiB / 1GiB | 15.29% | 18MB / 36.4MB | 0B / 216MB | 38 |
| 49 | 1793215161 | mtusi2026lab3-lb-1 | 7.12% | 14.77MiB / 128MiB | 11.54% | 65.1MB / 67.9MB | 0B / 0B | 2 |
| 50 | 1793215161 | mtusi2026lab3-valkey-1 | 2.01% | 11.23MiB / 128MiB | 8.77% | 3.28MB / 3.55MB | 0B / 94.2kB | 6 |
| 51 | 1793215165 | mtusi2026lab3-k6-run-1589ede61736 | 12.53% | 54.23MiB / 1GiB | 5.30% | 59MB / 9.5MB | 0B / 0B | 9 |
| 52 | 1793215165 | mtusi2026lab3-api-1 | 64.26% | 232.2MiB / 2GiB | 11.34% | 59.6MB / 84.5MB | 0B / 0B | 23 |
| 53 | 1793215165 | mtusi2026lab3-postgres-1 | 21.93% | 157.7MiB / 1GiB | 15.40% | 19.9MB / 40.7MB | 0B / 232MB | 38 |
| 54 | 1793215165 | mtusi2026lab3-lb-1 | 7.26% | 15.04MiB / 128MiB | 11.75% | 72.9MB / 75.9MB | 0B / 0B | 2 |
| 55 | 1793215165 | mtusi2026lab3-valkey-1 | 1.49% | 11.16MiB / 128MiB | 8.72% | 3.64MB / 3.94MB | 0B / 94.2kB | 6 |
| 56 | 1793215169 | mtusi2026lab3-k6-run-1589ede61736 | 11.17% | 54.55MiB / 1GiB | 5.33% | 63.3MB / 10.2MB | 0B / 0B | 9 |
| 57 | 1793215169 | mtusi2026lab3-api-1 | 41.13% | 231.8MiB / 2GiB | 11.32% | 65.8MB / 93.2MB | 0B / 0B | 23 |
| 58 | 1793215169 | mtusi2026lab3-postgres-1 | 16.04% | 160.7MiB / 1GiB | 15.69% | 21.4MB / 43.7MB | 0B / 245MB | 38 |
| 59 | 1793215169 | mtusi2026lab3-lb-1 | 6.23% | 14.51MiB / 128MiB | 11.33% | 78.2MB / 81.5MB | 0B / 0B | 2 |
| 60 | 1793215169 | mtusi2026lab3-valkey-1 | 1.80% | 11.4MiB / 128MiB | 8.91% | 3.91MB / 4.24MB | 0B / 94.2kB | 6 |