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
6.4 KiB
6.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216229 | mtusi2026lab3-api-1 | 22.09% | 165.8MiB / 1GiB | 16.19% | 66.6MB / 93.7MB | 0B / 0B | 13 |
| 3 | 1793216229 | mtusi2026lab3-api-2 | 22.18% | 165.1MiB / 1GiB | 16.13% | 66.4MB / 93.2MB | 0B / 0B | 13 |
| 4 | 1793216229 | mtusi2026lab3-postgres-1 | 17.22% | 121.4MiB / 1GiB | 11.86% | 43MB / 87.8MB | 86kB / 486MB | 23 |
| 5 | 1793216229 | mtusi2026lab3-lb-1 | 5.88% | 11.96MiB / 128MiB | 9.35% | 157MB / 164MB | 0B / 0B | 2 |
| 6 | 1793216229 | mtusi2026lab3-valkey-1 | 0.87% | 10.85MiB / 128MiB | 8.48% | 7.79MB / 8.52MB | 0B / 266kB | 6 |
| 7 | 1793216233 | mtusi2026lab3-k6-run-ced0c4b6b336 | 11.45% | 45.51MiB / 1GiB | 4.44% | 6.54MB / 1.18MB | 0B / 0B | 8 |
| 8 | 1793216233 | mtusi2026lab3-api-1 | 35.76% | 165.9MiB / 1GiB | 16.20% | 69MB / 97.1MB | 0B / 0B | 13 |
| 9 | 1793216233 | mtusi2026lab3-api-2 | 36.22% | 164.9MiB / 1GiB | 16.10% | 68.9MB / 96.9MB | 0B / 0B | 13 |
| 10 | 1793216233 | mtusi2026lab3-postgres-1 | 19.10% | 122MiB / 1GiB | 11.92% | 44.6MB / 91.1MB | 86kB / 499MB | 23 |
| 11 | 1793216233 | mtusi2026lab3-lb-1 | 5.46% | 12.02MiB / 128MiB | 9.39% | 163MB / 170MB | 0B / 0B | 2 |
| 12 | 1793216233 | mtusi2026lab3-valkey-1 | 1.20% | 10.87MiB / 128MiB | 8.49% | 8.18MB / 8.94MB | 0B / 266kB | 6 |
| 13 | 1793216236 | mtusi2026lab3-k6-run-ced0c4b6b336 | 11.37% | 47.65MiB / 1GiB | 4.65% | 12.3MB / 2.11MB | 0B / 0B | 8 |
| 14 | 1793216236 | mtusi2026lab3-api-1 | 23.11% | 166.3MiB / 1GiB | 16.24% | 71.9MB / 101MB | 0B / 0B | 13 |
| 15 | 1793216236 | mtusi2026lab3-api-2 | 23.74% | 164.9MiB / 1GiB | 16.10% | 72.1MB / 101MB | 0B / 0B | 13 |
| 16 | 1793216236 | mtusi2026lab3-postgres-1 | 17.72% | 123.1MiB / 1GiB | 12.02% | 46MB / 94MB | 86kB / 511MB | 23 |
| 17 | 1793216236 | mtusi2026lab3-lb-1 | 5.59% | 11.97MiB / 128MiB | 9.35% | 170MB / 178MB | 0B / 0B | 2 |
| 18 | 1793216236 | mtusi2026lab3-valkey-1 | 1.19% | 10.84MiB / 128MiB | 8.47% | 8.53MB / 9.33MB | 0B / 266kB | 6 |
| 19 | 1793216240 | mtusi2026lab3-k6-run-ced0c4b6b336 | 11.18% | 52.1MiB / 1GiB | 5.09% | 18.4MB / 3.04MB | 0B / 0B | 8 |
| 20 | 1793216240 | mtusi2026lab3-api-1 | 22.31% | 165.9MiB / 1GiB | 16.20% | 74.1MB / 104MB | 0B / 0B | 13 |
| 21 | 1793216240 | mtusi2026lab3-api-2 | 23.99% | 165.2MiB / 1GiB | 16.13% | 75.1MB / 106MB | 0B / 0B | 13 |
| 22 | 1793216240 | mtusi2026lab3-postgres-1 | 17.32% | 120.8MiB / 1GiB | 11.80% | 48.4MB / 99.3MB | 86kB / 531MB | 22 |
| 23 | 1793216240 | mtusi2026lab3-lb-1 | 6.17% | 12.09MiB / 128MiB | 9.45% | 178MB / 185MB | 0B / 0B | 2 |
| 24 | 1793216240 | mtusi2026lab3-valkey-1 | 1.84% | 10.85MiB / 128MiB | 8.47% | 8.88MB / 9.71MB | 0B / 266kB | 6 |
| 25 | 1793216243 | mtusi2026lab3-k6-run-ced0c4b6b336 | 11.58% | 51.92MiB / 1GiB | 5.07% | 23.7MB / 3.87MB | 0B / 0B | 8 |
| 26 | 1793216243 | mtusi2026lab3-api-1 | 37.55% | 166.1MiB / 1GiB | 16.22% | 77.6MB / 109MB | 0B / 0B | 13 |
| 27 | 1793216243 | mtusi2026lab3-api-2 | 38.37% | 165MiB / 1GiB | 16.11% | 77.9MB / 110MB | 0B / 0B | 13 |
| 28 | 1793216243 | mtusi2026lab3-postgres-1 | 20.31% | 121.9MiB / 1GiB | 11.91% | 50.1MB / 103MB | 86kB / 545MB | 22 |
| 29 | 1793216243 | mtusi2026lab3-lb-1 | 6.52% | 11.52MiB / 128MiB | 9.00% | 184MB / 192MB | 0B / 0B | 2 |
| 30 | 1793216243 | mtusi2026lab3-valkey-1 | 1.32% | 10.85MiB / 128MiB | 8.47% | 9.2MB / 10.1MB | 0B / 266kB | 6 |
| 31 | 1793216247 | mtusi2026lab3-k6-run-ced0c4b6b336 | 11.21% | 52MiB / 1GiB | 5.08% | 29.5MB / 4.81MB | 0B / 0B | 9 |
| 32 | 1793216247 | mtusi2026lab3-api-1 | 21.84% | 166.2MiB / 1GiB | 16.23% | 79.7MB / 112MB | 0B / 0B | 13 |
| 33 | 1793216247 | mtusi2026lab3-api-2 | 21.48% | 166MiB / 1GiB | 16.21% | 81MB / 114MB | 0B / 0B | 13 |
| 34 | 1793216247 | mtusi2026lab3-postgres-1 | 16.30% | 122.9MiB / 1GiB | 12.00% | 52MB / 107MB | 86kB / 562MB | 22 |
| 35 | 1793216247 | mtusi2026lab3-lb-1 | 5.09% | 11.55MiB / 128MiB | 9.02% | 191MB / 200MB | 0B / 0B | 2 |
| 36 | 1793216247 | mtusi2026lab3-valkey-1 | 1.20% | 10.85MiB / 128MiB | 8.47% | 9.55MB / 10.4MB | 0B / 266kB | 6 |
| 37 | 1793216250 | mtusi2026lab3-k6-run-ced0c4b6b336 | 10.82% | 52.02MiB / 1GiB | 5.08% | 33.5MB / 5.48MB | 0B / 0B | 9 |
| 38 | 1793216250 | mtusi2026lab3-api-1 | 25.00% | 165.9MiB / 1GiB | 16.21% | 83.5MB / 117MB | 0B / 0B | 13 |
| 39 | 1793216250 | mtusi2026lab3-api-2 | 23.66% | 166.3MiB / 1GiB | 16.24% | 84MB / 118MB | 0B / 0B | 13 |
| 40 | 1793216250 | mtusi2026lab3-postgres-1 | 18.81% | 123.7MiB / 1GiB | 12.08% | 53.9MB / 111MB | 86kB / 578MB | 22 |
| 41 | 1793216250 | mtusi2026lab3-lb-1 | 5.49% | 12.25MiB / 128MiB | 9.57% | 198MB / 207MB | 0B / 0B | 2 |
| 42 | 1793216250 | mtusi2026lab3-valkey-1 | 1.21% | 10.85MiB / 128MiB | 8.47% | 9.9MB / 10.8MB | 0B / 266kB | 6 |
| 43 | 1793216254 | mtusi2026lab3-k6-run-ced0c4b6b336 | 10.37% | 52.07MiB / 1GiB | 5.09% | 40.9MB / 6.67MB | 0B / 0B | 9 |
| 44 | 1793216254 | mtusi2026lab3-api-1 | 36.42% | 165.9MiB / 1GiB | 16.20% | 85.7MB / 120MB | 0B / 0B | 13 |
| 45 | 1793216254 | mtusi2026lab3-api-2 | 23.29% | 166MiB / 1GiB | 16.21% | 87MB / 123MB | 0B / 0B | 13 |
| 46 | 1793216254 | mtusi2026lab3-postgres-1 | 18.14% | 124.9MiB / 1GiB | 12.20% | 55.8MB / 115MB | 86kB / 594MB | 22 |
| 47 | 1793216254 | mtusi2026lab3-lb-1 | 5.71% | 11.82MiB / 128MiB | 9.23% | 205MB / 214MB | 0B / 0B | 2 |
| 48 | 1793216254 | mtusi2026lab3-valkey-1 | 1.81% | 10.85MiB / 128MiB | 8.47% | 10.3MB / 11.2MB | 0B / 266kB | 6 |
| 49 | 1793216258 | mtusi2026lab3-k6-run-ced0c4b6b336 | 10.81% | 52.09MiB / 1GiB | 5.09% | 45.5MB / 7.44MB | 0B / 0B | 9 |
| 50 | 1793216258 | mtusi2026lab3-api-1 | 23.39% | 166.1MiB / 1GiB | 16.23% | 88.9MB / 125MB | 0B / 0B | 13 |
| 51 | 1793216258 | mtusi2026lab3-api-2 | 23.48% | 168.7MiB / 1GiB | 16.47% | 89.4MB / 126MB | 0B / 0B | 13 |
| 52 | 1793216258 | mtusi2026lab3-postgres-1 | 18.88% | 125.3MiB / 1GiB | 12.24% | 57.4MB / 118MB | 86kB / 607MB | 22 |
| 53 | 1793216258 | mtusi2026lab3-lb-1 | 5.47% | 12.26MiB / 128MiB | 9.58% | 211MB / 220MB | 0B / 0B | 2 |
| 54 | 1793216258 | mtusi2026lab3-valkey-1 | 1.21% | 11.09MiB / 128MiB | 8.66% | 10.5MB / 11.5MB | 0B / 266kB | 6 |
| 55 | 1793216261 | mtusi2026lab3-k6-run-ced0c4b6b336 | 10.31% | 52.11MiB / 1GiB | 5.09% | 51.5MB / 8.38MB | 0B / 0B | 9 |
| 56 | 1793216261 | mtusi2026lab3-api-1 | 22.85% | 165.9MiB / 1GiB | 16.20% | 92MB / 129MB | 0B / 0B | 13 |
| 57 | 1793216261 | mtusi2026lab3-api-2 | 23.48% | 168.7MiB / 1GiB | 16.47% | 92.4MB / 130MB | 0B / 0B | 13 |
| 58 | 1793216261 | mtusi2026lab3-postgres-1 | 18.76% | 126.6MiB / 1GiB | 12.36% | 59.3MB / 122MB | 86kB / 629MB | 22 |
| 59 | 1793216261 | mtusi2026lab3-lb-1 | 5.38% | 12.04MiB / 128MiB | 9.41% | 218MB / 228MB | 0B / 0B | 2 |
| 60 | 1793216261 | mtusi2026lab3-valkey-1 | 1.78% | 10.85MiB / 128MiB | 8.47% | 10.8MB / 11.8MB | 0B / 266kB | 6 |
| 61 | 1793216264 | mtusi2026lab3-k6-run-ced0c4b6b336 | 11.69% | 52.13MiB / 1GiB | 5.09% | 55.9MB / 9.05MB | 0B / 0B | 9 |
| 62 | 1793216264 | mtusi2026lab3-api-1 | 22.92% | 165.9MiB / 1GiB | 16.20% | 95.1MB / 134MB | 0B / 0B | 13 |
| 63 | 1793216264 | mtusi2026lab3-api-2 | 23.08% | 168.9MiB / 1GiB | 16.50% | 95.5MB / 135MB | 0B / 0B | 13 |
| 64 | 1793216264 | mtusi2026lab3-postgres-1 | 17.00% | 127.4MiB / 1GiB | 12.44% | 61.3MB / 126MB | 86kB / 662MB | 22 |
| 65 | 1793216264 | mtusi2026lab3-lb-1 | 5.55% | 11.8MiB / 128MiB | 9.22% | 226MB / 236MB | 0B / 0B | 2 |
| 66 | 1793216264 | mtusi2026lab3-valkey-1 | 1.74% | 10.85MiB / 128MiB | 8.47% | 11.3MB / 12.3MB | 0B / 266kB | 6 |
| 67 | 1793216268 | mtusi2026lab3-k6-run-ced0c4b6b336 | 11.78% | 54.18MiB / 1GiB | 5.29% | 62.5MB / 10.1MB | 0B / 0B | 9 |
| 68 | 1793216268 | mtusi2026lab3-api-1 | 23.34% | 165.9MiB / 1GiB | 16.20% | 97.7MB / 137MB | 0B / 0B | 13 |
| 69 | 1793216268 | mtusi2026lab3-api-2 | 23.51% | 168.9MiB / 1GiB | 16.50% | 98.1MB / 138MB | 0B / 0B | 13 |
| 70 | 1793216268 | mtusi2026lab3-postgres-1 | 18.39% | 128.3MiB / 1GiB | 12.53% | 63MB / 130MB | 86kB / 676MB | 22 |
| 71 | 1793216268 | mtusi2026lab3-lb-1 | 5.89% | 12.05MiB / 128MiB | 9.41% | 232MB / 242MB | 0B / 0B | 2 |
| 72 | 1793216268 | mtusi2026lab3-valkey-1 | 1.81% | 10.85MiB / 128MiB | 8.47% | 11.6MB / 12.6MB | 0B / 266kB | 6 |