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.8 KiB
5.8 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216323 | mtusi2026lab3-api-1 | 36.71% | 186.2MiB / 1GiB | 18.18% | 149MB / 209MB | 0B / 0B | 13 |
| 3 | 1793216323 | mtusi2026lab3-api-2 | 37.65% | 183.4MiB / 1GiB | 17.91% | 149MB / 211MB | 0B / 0B | 13 |
| 4 | 1793216323 | mtusi2026lab3-postgres-1 | 15.71% | 158.9MiB / 1GiB | 15.52% | 95.1MB / 196MB | 86kB / 981MB | 26 |
| 5 | 1793216323 | mtusi2026lab3-lb-1 | 9.26% | 12.25MiB / 128MiB | 9.57% | 353MB / 368MB | 0B / 0B | 2 |
| 6 | 1793216323 | mtusi2026lab3-valkey-1 | 2.50% | 10.85MiB / 128MiB | 8.47% | 17.6MB / 19.3MB | 0B / 430kB | 6 |
| 7 | 1793216326 | mtusi2026lab3-k6-run-67f926f763c0 | 15.00% | 64.38MiB / 1GiB | 6.29% | 11.3MB / 2.01MB | 0B / 0B | 9 |
| 8 | 1793216326 | mtusi2026lab3-api-1 | 33.26% | 186MiB / 1GiB | 18.16% | 153MB / 215MB | 0B / 0B | 13 |
| 9 | 1793216326 | mtusi2026lab3-api-2 | 53.66% | 183.4MiB / 1GiB | 17.91% | 153MB / 215MB | 0B / 0B | 13 |
| 10 | 1793216326 | mtusi2026lab3-postgres-1 | 24.23% | 157.3MiB / 1GiB | 15.36% | 98.8MB / 203MB | 86kB / 1.03GB | 25 |
| 11 | 1793216326 | mtusi2026lab3-lb-1 | 8.36% | 12.25MiB / 128MiB | 9.57% | 364MB / 379MB | 0B / 0B | 2 |
| 12 | 1793216326 | mtusi2026lab3-valkey-1 | 2.25% | 10.86MiB / 128MiB | 8.48% | 18.1MB / 19.8MB | 0B / 430kB | 6 |
| 13 | 1793216330 | mtusi2026lab3-k6-run-67f926f763c0 | 14.64% | 64.5MiB / 1GiB | 6.30% | 18.3MB / 3.16MB | 0B / 0B | 9 |
| 14 | 1793216330 | mtusi2026lab3-api-1 | 30.61% | 186MiB / 1GiB | 18.16% | 157MB / 220MB | 0B / 0B | 13 |
| 15 | 1793216330 | mtusi2026lab3-api-2 | 30.68% | 183.4MiB / 1GiB | 17.91% | 158MB / 223MB | 0B / 0B | 13 |
| 16 | 1793216330 | mtusi2026lab3-postgres-1 | 24.20% | 158MiB / 1GiB | 15.43% | 101MB / 208MB | 86kB / 1.05GB | 25 |
| 17 | 1793216330 | mtusi2026lab3-lb-1 | 7.72% | 12.45MiB / 128MiB | 9.73% | 373MB / 389MB | 0B / 0B | 2 |
| 18 | 1793216330 | mtusi2026lab3-valkey-1 | 1.64% | 10.85MiB / 128MiB | 8.47% | 18.6MB / 20.3MB | 0B / 430kB | 6 |
| 19 | 1793216333 | mtusi2026lab3-k6-run-67f926f763c0 | 14.91% | 71.09MiB / 1GiB | 6.94% | 27.1MB / 4.58MB | 0B / 0B | 9 |
| 20 | 1793216333 | mtusi2026lab3-api-1 | 31.94% | 185.9MiB / 1GiB | 18.16% | 161MB / 227MB | 0B / 0B | 13 |
| 21 | 1793216333 | mtusi2026lab3-api-2 | 32.49% | 183.7MiB / 1GiB | 17.94% | 162MB / 229MB | 0B / 0B | 13 |
| 22 | 1793216333 | mtusi2026lab3-postgres-1 | 24.59% | 159.3MiB / 1GiB | 15.55% | 104MB / 214MB | 86kB / 1.07GB | 25 |
| 23 | 1793216333 | mtusi2026lab3-lb-1 | 8.18% | 12.89MiB / 128MiB | 10.07% | 380MB / 397MB | 0B / 0B | 2 |
| 24 | 1793216333 | mtusi2026lab3-valkey-1 | 2.32% | 10.85MiB / 128MiB | 8.47% | 19.1MB / 20.9MB | 0B / 430kB | 6 |
| 25 | 1793216337 | mtusi2026lab3-k6-run-67f926f763c0 | 14.06% | 72.86MiB / 1GiB | 7.12% | 35.9MB / 5.98MB | 0B / 0B | 9 |
| 26 | 1793216337 | mtusi2026lab3-api-1 | 43.01% | 186.5MiB / 1GiB | 18.21% | 165MB / 232MB | 0B / 0B | 13 |
| 27 | 1793216337 | mtusi2026lab3-api-2 | 30.73% | 183.6MiB / 1GiB | 17.93% | 167MB / 235MB | 0B / 0B | 13 |
| 28 | 1793216337 | mtusi2026lab3-postgres-1 | 22.25% | 195.1MiB / 1GiB | 19.05% | 107MB / 220MB | 86kB / 1.1GB | 35 |
| 29 | 1793216337 | mtusi2026lab3-lb-1 | 8.03% | 13.34MiB / 128MiB | 10.42% | 394MB / 411MB | 0B / 0B | 2 |
| 30 | 1793216337 | mtusi2026lab3-valkey-1 | 2.18% | 11.05MiB / 128MiB | 8.64% | 19.6MB / 21.5MB | 0B / 430kB | 6 |
| 31 | 1793216340 | mtusi2026lab3-k6-run-67f926f763c0 | 14.78% | 72.88MiB / 1GiB | 7.12% | 44.5MB / 7.39MB | 0B / 0B | 9 |
| 32 | 1793216340 | mtusi2026lab3-api-1 | 45.74% | 186.3MiB / 1GiB | 18.19% | 170MB / 240MB | 0B / 0B | 13 |
| 33 | 1793216340 | mtusi2026lab3-api-2 | 45.90% | 183.6MiB / 1GiB | 17.93% | 171MB / 241MB | 0B / 0B | 13 |
| 34 | 1793216340 | mtusi2026lab3-postgres-1 | 26.28% | 196.2MiB / 1GiB | 19.16% | 110MB / 226MB | 86kB / 1.12GB | 35 |
| 35 | 1793216340 | mtusi2026lab3-lb-1 | 8.70% | 13.58MiB / 128MiB | 10.61% | 405MB / 422MB | 0B / 0B | 2 |
| 36 | 1793216340 | mtusi2026lab3-valkey-1 | 2.24% | 11.3MiB / 128MiB | 8.83% | 20MB / 21.9MB | 0B / 430kB | 6 |
| 37 | 1793216344 | mtusi2026lab3-k6-run-67f926f763c0 | 16.42% | 74.06MiB / 1GiB | 7.23% | 53.2MB / 8.79MB | 0B / 0B | 9 |
| 38 | 1793216344 | mtusi2026lab3-api-1 | 38.66% | 186.3MiB / 1GiB | 18.19% | 175MB / 246MB | 0B / 0B | 13 |
| 39 | 1793216344 | mtusi2026lab3-api-2 | 31.67% | 183.6MiB / 1GiB | 17.93% | 175MB / 246MB | 0B / 0B | 13 |
| 40 | 1793216344 | mtusi2026lab3-postgres-1 | 29.81% | 198MiB / 1GiB | 19.34% | 113MB / 232MB | 86kB / 1.15GB | 35 |
| 41 | 1793216344 | mtusi2026lab3-lb-1 | 9.23% | 13.34MiB / 128MiB | 10.42% | 416MB / 433MB | 0B / 0B | 2 |
| 42 | 1793216344 | mtusi2026lab3-valkey-1 | 1.95% | 11.06MiB / 128MiB | 8.64% | 20.7MB / 22.7MB | 0B / 430kB | 6 |
| 43 | 1793216348 | mtusi2026lab3-k6-run-67f926f763c0 | 16.80% | 74.94MiB / 1GiB | 7.32% | 61.9MB / 10.2MB | 0B / 0B | 9 |
| 44 | 1793216348 | mtusi2026lab3-api-1 | 35.76% | 186.3MiB / 1GiB | 18.19% | 180MB / 253MB | 0B / 0B | 13 |
| 45 | 1793216348 | mtusi2026lab3-api-2 | 35.88% | 183.6MiB / 1GiB | 17.93% | 180MB / 254MB | 0B / 0B | 13 |
| 46 | 1793216348 | mtusi2026lab3-postgres-1 | 30.89% | 199.6MiB / 1GiB | 19.50% | 115MB / 236MB | 86kB / 1.19GB | 35 |
| 47 | 1793216348 | mtusi2026lab3-lb-1 | 8.51% | 13.34MiB / 128MiB | 10.42% | 426MB / 445MB | 0B / 0B | 2 |
| 48 | 1793216348 | mtusi2026lab3-valkey-1 | 1.82% | 11.06MiB / 128MiB | 8.64% | 21.2MB / 23.2MB | 0B / 430kB | 6 |
| 49 | 1793216352 | mtusi2026lab3-k6-run-67f926f763c0 | 13.92% | 74.94MiB / 1GiB | 7.32% | 70.5MB / 11.6MB | 0B / 0B | 9 |
| 50 | 1793216352 | mtusi2026lab3-api-1 | 32.01% | 186.6MiB / 1GiB | 18.22% | 184MB / 259MB | 0B / 0B | 13 |
| 51 | 1793216352 | mtusi2026lab3-api-2 | 32.36% | 184.2MiB / 1GiB | 17.98% | 185MB / 260MB | 0B / 0B | 13 |
| 52 | 1793216352 | mtusi2026lab3-postgres-1 | 24.81% | 201.5MiB / 1GiB | 19.68% | 119MB / 244MB | 86kB / 1.22GB | 35 |
| 53 | 1793216352 | mtusi2026lab3-lb-1 | 8.39% | 13.13MiB / 128MiB | 10.26% | 437MB / 456MB | 0B / 0B | 2 |
| 54 | 1793216352 | mtusi2026lab3-valkey-1 | 1.77% | 11.06MiB / 128MiB | 8.64% | 21.6MB / 23.7MB | 0B / 430kB | 6 |
| 55 | 1793216355 | mtusi2026lab3-k6-run-67f926f763c0 | 16.43% | 75.56MiB / 1GiB | 7.38% | 77.8MB / 12.8MB | 0B / 0B | 9 |
| 56 | 1793216355 | mtusi2026lab3-api-1 | 34.52% | 186.5MiB / 1GiB | 18.22% | 188MB / 265MB | 0B / 0B | 13 |
| 57 | 1793216355 | mtusi2026lab3-api-2 | 34.49% | 183.6MiB / 1GiB | 17.93% | 188MB / 266MB | 0B / 0B | 13 |
| 58 | 1793216355 | mtusi2026lab3-postgres-1 | 29.02% | 205.5MiB / 1GiB | 20.07% | 121MB / 249MB | 86kB / 1.24GB | 36 |
| 59 | 1793216355 | mtusi2026lab3-lb-1 | 8.27% | 13.79MiB / 128MiB | 10.78% | 446MB / 465MB | 0B / 0B | 2 |
| 60 | 1793216355 | mtusi2026lab3-valkey-1 | 1.79% | 11.06MiB / 128MiB | 8.64% | 22.2MB / 24.3MB | 0B / 430kB | 6 |
| 61 | 1793216358 | mtusi2026lab3-k6-run-67f926f763c0 | 14.97% | 75.57MiB / 1GiB | 7.38% | 86.1MB / 14.2MB | 0B / 0B | 9 |
| 62 | 1793216358 | mtusi2026lab3-api-1 | 35.33% | 186.3MiB / 1GiB | 18.20% | 192MB / 271MB | 0B / 0B | 13 |
| 63 | 1793216358 | mtusi2026lab3-api-2 | 35.65% | 183.9MiB / 1GiB | 17.96% | 193MB / 272MB | 0B / 0B | 13 |
| 64 | 1793216358 | mtusi2026lab3-postgres-1 | 27.68% | 207MiB / 1GiB | 20.21% | 124MB / 255MB | 86kB / 1.27GB | 36 |
| 65 | 1793216358 | mtusi2026lab3-lb-1 | 8.88% | 13.55MiB / 128MiB | 10.59% | 453MB / 473MB | 0B / 0B | 2 |
| 66 | 1793216358 | mtusi2026lab3-valkey-1 | 1.83% | 11.05MiB / 128MiB | 8.63% | 22.7MB / 24.9MB | 0B / 430kB | 6 |