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.5 KiB
6.5 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793217183 | mtusi2026lab3-api-1 | 188.97% | 223.4MiB / 1GiB | 21.82% | 2.84GB / 4GB | 0B / 0B | 14 |
| 3 | 1793217183 | mtusi2026lab3-api-2 | 96.08% | 205.5MiB / 1GiB | 20.07% | 2.83GB / 3.99GB | 0B / 0B | 13 |
| 4 | 1793217183 | mtusi2026lab3-postgres-1 | 168.91% | 482.9MiB / 1GiB | 47.16% | 1.82GB / 3.76GB | 458MB / 15.4GB | 38 |
| 5 | 1793217183 | mtusi2026lab3-lb-1 | 38.72% | 70.59MiB / 128MiB | 55.15% | 6.71GB / 7.06GB | 0B / 0B | 2 |
| 6 | 1793217183 | mtusi2026lab3-valkey-1 | 8.34% | 11.38MiB / 128MiB | 8.89% | 331MB / 367MB | 0B / 2.04MB | 6 |
| 7 | 1793217187 | mtusi2026lab3-k6-run-9a0d0ab87723 | 76.43% | 504.5MiB / 1GiB | 49.26% | 69.6MB / 10.4MB | 184kB / 0B | 9 |
| 8 | 1793217187 | mtusi2026lab3-api-1 | 189.84% | 213.7MiB / 1GiB | 20.87% | 2.86GB / 4.04GB | 0B / 0B | 13 |
| 9 | 1793217187 | mtusi2026lab3-api-2 | 187.94% | 205.5MiB / 1GiB | 20.07% | 2.86GB / 4.04GB | 0B / 0B | 13 |
| 10 | 1793217187 | mtusi2026lab3-postgres-1 | 175.26% | 483MiB / 1GiB | 47.16% | 1.83GB / 3.78GB | 458MB / 15.5GB | 38 |
| 11 | 1793217187 | mtusi2026lab3-lb-1 | 39.53% | 70.59MiB / 128MiB | 55.15% | 6.77GB / 7.13GB | 0B / 0B | 2 |
| 12 | 1793217187 | mtusi2026lab3-valkey-1 | 8.91% | 11.38MiB / 128MiB | 8.89% | 334MB / 370MB | 0B / 2.05MB | 6 |
| 13 | 1793217191 | mtusi2026lab3-k6-run-9a0d0ab87723 | 57.57% | 509.6MiB / 1GiB | 49.77% | 111MB / 16.2MB | 184kB / 0B | 9 |
| 14 | 1793217191 | mtusi2026lab3-api-1 | 186.86% | 213.4MiB / 1GiB | 20.84% | 2.89GB / 4.07GB | 0B / 0B | 13 |
| 15 | 1793217191 | mtusi2026lab3-api-2 | 185.87% | 205.5MiB / 1GiB | 20.07% | 2.88GB / 4.07GB | 0B / 0B | 13 |
| 16 | 1793217191 | mtusi2026lab3-postgres-1 | 171.48% | 482.4MiB / 1GiB | 47.11% | 1.85GB / 3.82GB | 458MB / 15.6GB | 38 |
| 17 | 1793217191 | mtusi2026lab3-lb-1 | 40.05% | 70.38MiB / 128MiB | 54.98% | 6.82GB / 7.18GB | 0B / 0B | 2 |
| 18 | 1793217191 | mtusi2026lab3-valkey-1 | 9.16% | 11.38MiB / 128MiB | 8.89% | 337MB / 373MB | 0B / 2.05MB | 6 |
| 19 | 1793217194 | mtusi2026lab3-k6-run-9a0d0ab87723 | 82.48% | 599MiB / 1GiB | 58.50% | 162MB / 23.7MB | 184kB / 0B | 9 |
| 20 | 1793217194 | mtusi2026lab3-api-1 | 188.65% | 213.2MiB / 1GiB | 20.82% | 2.91GB / 4.1GB | 0B / 0B | 13 |
| 21 | 1793217194 | mtusi2026lab3-api-2 | 189.65% | 213.7MiB / 1GiB | 20.86% | 2.91GB / 4.1GB | 0B / 0B | 14 |
| 22 | 1793217194 | mtusi2026lab3-postgres-1 | 171.05% | 484.2MiB / 1GiB | 47.29% | 1.87GB / 3.85GB | 458MB / 15.7GB | 44 |
| 23 | 1793217194 | mtusi2026lab3-lb-1 | 39.91% | 71.74MiB / 128MiB | 56.05% | 6.88GB / 7.24GB | 0B / 0B | 2 |
| 24 | 1793217194 | mtusi2026lab3-valkey-1 | 9.62% | 11.38MiB / 128MiB | 8.89% | 339MB / 375MB | 0B / 2.05MB | 6 |
| 25 | 1793217197 | mtusi2026lab3-k6-run-9a0d0ab87723 | 84.40% | 623.8MiB / 1GiB | 60.92% | 199MB / 28.8MB | 184kB / 0B | 9 |
| 26 | 1793217197 | mtusi2026lab3-api-1 | 187.97% | 213.1MiB / 1GiB | 20.81% | 2.94GB / 4.14GB | 0B / 0B | 13 |
| 27 | 1793217197 | mtusi2026lab3-api-2 | 188.33% | 205.3MiB / 1GiB | 20.05% | 2.94GB / 4.14GB | 0B / 0B | 13 |
| 28 | 1793217197 | mtusi2026lab3-postgres-1 | 173.32% | 483.4MiB / 1GiB | 47.21% | 1.89GB / 3.89GB | 458MB / 15.8GB | 38 |
| 29 | 1793217197 | mtusi2026lab3-lb-1 | 41.35% | 70.59MiB / 128MiB | 55.15% | 6.94GB / 7.31GB | 0B / 0B | 2 |
| 30 | 1793217197 | mtusi2026lab3-valkey-1 | 8.86% | 11.4MiB / 128MiB | 8.91% | 343MB / 379MB | 0B / 2.05MB | 6 |
| 31 | 1793217201 | mtusi2026lab3-k6-run-9a0d0ab87723 | 82.16% | 636.8MiB / 1GiB | 62.19% | 256MB / 36.8MB | 184kB / 0B | 9 |
| 32 | 1793217201 | mtusi2026lab3-api-1 | 187.04% | 213.5MiB / 1GiB | 20.85% | 2.96GB / 4.17GB | 0B / 0B | 13 |
| 33 | 1793217201 | mtusi2026lab3-api-2 | 186.67% | 206.3MiB / 1GiB | 20.15% | 2.96GB / 4.17GB | 0B / 0B | 13 |
| 34 | 1793217201 | mtusi2026lab3-postgres-1 | 174.44% | 482.8MiB / 1GiB | 47.15% | 1.9GB / 3.91GB | 458MB / 15.9GB | 38 |
| 35 | 1793217201 | mtusi2026lab3-lb-1 | 41.04% | 70.59MiB / 128MiB | 55.15% | 6.99GB / 7.36GB | 0B / 0B | 2 |
| 36 | 1793217201 | mtusi2026lab3-valkey-1 | 9.54% | 11.38MiB / 128MiB | 8.89% | 345MB / 382MB | 0B / 2.05MB | 6 |
| 37 | 1793217204 | mtusi2026lab3-k6-run-9a0d0ab87723 | 78.34% | 641MiB / 1GiB | 62.60% | 308MB / 44.1MB | 184kB / 0B | 9 |
| 38 | 1793217204 | mtusi2026lab3-api-1 | 187.87% | 213.2MiB / 1GiB | 20.82% | 2.98GB / 4.2GB | 0B / 0B | 13 |
| 39 | 1793217204 | mtusi2026lab3-api-2 | 186.41% | 206.4MiB / 1GiB | 20.16% | 2.98GB / 4.21GB | 0B / 0B | 13 |
| 40 | 1793217204 | mtusi2026lab3-postgres-1 | 167.55% | 482.7MiB / 1GiB | 47.14% | 1.92GB / 3.95GB | 458MB / 16GB | 38 |
| 41 | 1793217204 | mtusi2026lab3-lb-1 | 39.28% | 70.34MiB / 128MiB | 54.96% | 7.06GB / 7.43GB | 0B / 0B | 2 |
| 42 | 1793217204 | mtusi2026lab3-valkey-1 | 9.12% | 11.37MiB / 128MiB | 8.88% | 348MB / 385MB | 0B / 2.05MB | 6 |
| 43 | 1793217208 | mtusi2026lab3-k6-run-9a0d0ab87723 | 79.83% | 641.1MiB / 1GiB | 62.61% | 360MB / 51.5MB | 184kB / 0B | 9 |
| 44 | 1793217208 | mtusi2026lab3-api-1 | 192.27% | 213.2MiB / 1GiB | 20.82% | 3.01GB / 4.24GB | 0B / 0B | 13 |
| 45 | 1793217208 | mtusi2026lab3-api-2 | 190.36% | 206.4MiB / 1GiB | 20.16% | 3.01GB / 4.24GB | 0B / 0B | 13 |
| 46 | 1793217208 | mtusi2026lab3-postgres-1 | 177.99% | 483MiB / 1GiB | 47.16% | 1.93GB / 3.98GB | 458MB / 16.1GB | 38 |
| 47 | 1793217208 | mtusi2026lab3-lb-1 | 42.29% | 70.32MiB / 128MiB | 54.93% | 7.12GB / 7.5GB | 0B / 0B | 2 |
| 48 | 1793217208 | mtusi2026lab3-valkey-1 | 9.07% | 11.36MiB / 128MiB | 8.88% | 351MB / 388MB | 0B / 2.05MB | 6 |
| 49 | 1793217212 | mtusi2026lab3-k6-run-9a0d0ab87723 | 84.27% | 650MiB / 1GiB | 63.47% | 411MB / 58.7MB | 184kB / 0B | 9 |
| 50 | 1793217212 | mtusi2026lab3-api-1 | 191.44% | 213.7MiB / 1GiB | 20.86% | 3.04GB / 4.28GB | 0B / 0B | 13 |
| 51 | 1793217212 | mtusi2026lab3-api-2 | 191.70% | 206.7MiB / 1GiB | 20.18% | 3.04GB / 4.28GB | 0B / 0B | 13 |
| 52 | 1793217212 | mtusi2026lab3-postgres-1 | 166.38% | 483.6MiB / 1GiB | 47.22% | 1.94GB / 4.01GB | 458MB / 16.2GB | 38 |
| 53 | 1793217212 | mtusi2026lab3-lb-1 | 42.18% | 70.63MiB / 128MiB | 55.18% | 7.18GB / 7.56GB | 0B / 0B | 2 |
| 54 | 1793217212 | mtusi2026lab3-valkey-1 | 9.07% | 11.37MiB / 128MiB | 8.88% | 354MB / 392MB | 0B / 2.05MB | 6 |
| 55 | 1793217215 | mtusi2026lab3-k6-run-9a0d0ab87723 | 79.90% | 652.5MiB / 1GiB | 63.72% | 450MB / 64.4MB | 184kB / 0B | 9 |
| 56 | 1793217215 | mtusi2026lab3-api-1 | 186.39% | 225.6MiB / 1GiB | 22.04% | 3.06GB / 4.31GB | 0B / 0B | 14 |
| 57 | 1793217215 | mtusi2026lab3-api-2 | 189.09% | 206.4MiB / 1GiB | 20.16% | 3.06GB / 4.31GB | 0B / 0B | 13 |
| 58 | 1793217215 | mtusi2026lab3-postgres-1 | 165.70% | 484.1MiB / 1GiB | 47.28% | 1.96GB / 4.04GB | 458MB / 16.4GB | 38 |
| 59 | 1793217215 | mtusi2026lab3-lb-1 | 39.41% | 70.34MiB / 128MiB | 54.95% | 7.22GB / 7.61GB | 0B / 0B | 2 |
| 60 | 1793217215 | mtusi2026lab3-valkey-1 | 9.05% | 11.36MiB / 128MiB | 8.88% | 357MB / 395MB | 0B / 2.05MB | 6 |
| 61 | 1793217218 | mtusi2026lab3-k6-run-9a0d0ab87723 | 59.99% | 668MiB / 1GiB | 65.24% | 488MB / 69.7MB | 184kB / 0B | 9 |
| 62 | 1793217218 | mtusi2026lab3-api-1 | 191.59% | 213.2MiB / 1GiB | 20.82% | 3.08GB / 4.35GB | 0B / 0B | 13 |
| 63 | 1793217218 | mtusi2026lab3-api-2 | 189.41% | 206.9MiB / 1GiB | 20.20% | 3.08GB / 4.35GB | 0B / 0B | 13 |
| 64 | 1793217218 | mtusi2026lab3-postgres-1 | 178.46% | 483.9MiB / 1GiB | 47.26% | 1.98GB / 4.08GB | 458MB / 16.5GB | 38 |
| 65 | 1793217218 | mtusi2026lab3-lb-1 | 42.42% | 70.66MiB / 128MiB | 55.21% | 7.29GB / 7.68GB | 0B / 0B | 2 |
| 66 | 1793217218 | mtusi2026lab3-valkey-1 | 9.67% | 11.37MiB / 128MiB | 8.88% | 360MB / 398MB | 0B / 2.05MB | 6 |
| 67 | 1793217222 | mtusi2026lab3-k6-run-9a0d0ab87723 | 78.17% | 646.7MiB / 1GiB | 63.16% | 554MB / 78.7MB | 184kB / 0B | 9 |
| 68 | 1793217222 | mtusi2026lab3-api-1 | 193.60% | 213.2MiB / 1GiB | 20.82% | 3.11GB / 4.38GB | 0B / 0B | 13 |
| 69 | 1793217222 | mtusi2026lab3-api-2 | 192.99% | 207.4MiB / 1GiB | 20.25% | 3.11GB / 4.38GB | 0B / 0B | 13 |
| 70 | 1793217222 | mtusi2026lab3-postgres-1 | 180.85% | 485.6MiB / 1GiB | 47.42% | 2GB / 4.11GB | 458MB / 16.6GB | 38 |
| 71 | 1793217222 | mtusi2026lab3-lb-1 | 42.05% | 71.15MiB / 128MiB | 55.58% | 7.35GB / 7.75GB | 0B / 0B | 2 |
| 72 | 1793217222 | mtusi2026lab3-valkey-1 | 9.54% | 11.36MiB / 128MiB | 8.88% | 362MB / 400MB | 0B / 2.05MB | 6 |