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 | 1793215557 | mtusi2026lab3-api-1 | 153.46% | 328MiB / 2GiB | 16.01% | 933MB / 1.32GB | 0B / 0B | 25 |
| 3 | 1793215557 | mtusi2026lab3-postgres-1 | 58.57% | 300.5MiB / 1GiB | 29.34% | 301MB / 617MB | 0B / 3.03GB | 38 |
| 4 | 1793215557 | mtusi2026lab3-lb-1 | 17.39% | 25.52MiB / 128MiB | 19.94% | 1.11GB / 1.15GB | 0B / 0B | 2 |
| 5 | 1793215557 | mtusi2026lab3-valkey-1 | 2.22% | 11.26MiB / 128MiB | 8.80% | 55MB / 60.1MB | 0B / 918kB | 6 |
| 6 | 1793215560 | mtusi2026lab3-k6-run-5c0acfbbfefb | 31.99% | 127.1MiB / 1GiB | 12.41% | 23.4MB / 3.89MB | 0B / 0B | 9 |
| 7 | 1793215560 | mtusi2026lab3-api-1 | 137.63% | 327.8MiB / 2GiB | 16.00% | 950MB / 1.34GB | 0B / 0B | 25 |
| 8 | 1793215560 | mtusi2026lab3-postgres-1 | 55.96% | 302.8MiB / 1GiB | 29.57% | 306MB / 628MB | 0B / 3.07GB | 38 |
| 9 | 1793215560 | mtusi2026lab3-lb-1 | 16.70% | 26.03MiB / 128MiB | 20.34% | 1.13GB / 1.17GB | 0B / 0B | 2 |
| 10 | 1793215560 | mtusi2026lab3-valkey-1 | 3.92% | 11.26MiB / 128MiB | 8.80% | 56.3MB / 61.5MB | 0B / 918kB | 6 |
| 11 | 1793215563 | mtusi2026lab3-k6-run-5c0acfbbfefb | 32.95% | 127.3MiB / 1GiB | 12.43% | 43.4MB / 7.04MB | 0B / 0B | 9 |
| 12 | 1793215563 | mtusi2026lab3-api-1 | 147.11% | 327.9MiB / 2GiB | 16.01% | 970MB / 1.37GB | 0B / 0B | 25 |
| 13 | 1793215563 | mtusi2026lab3-postgres-1 | 62.16% | 306.2MiB / 1GiB | 29.91% | 313MB / 642MB | 0B / 3.14GB | 38 |
| 14 | 1793215563 | mtusi2026lab3-lb-1 | 16.70% | 25.32MiB / 128MiB | 19.78% | 1.14GB / 1.19GB | 0B / 0B | 2 |
| 15 | 1793215563 | mtusi2026lab3-valkey-1 | 4.17% | 11.28MiB / 128MiB | 8.81% | 57.5MB / 62.9MB | 0B / 918kB | 6 |
| 16 | 1793215567 | mtusi2026lab3-k6-run-5c0acfbbfefb | 30.43% | 138.5MiB / 1GiB | 13.52% | 63.4MB / 10.2MB | 0B / 0B | 9 |
| 17 | 1793215567 | mtusi2026lab3-api-1 | 166.51% | 328MiB / 2GiB | 16.01% | 991MB / 1.4GB | 0B / 0B | 25 |
| 18 | 1793215567 | mtusi2026lab3-postgres-1 | 62.97% | 309.4MiB / 1GiB | 30.21% | 319MB / 655MB | 0B / 3.19GB | 38 |
| 19 | 1793215567 | mtusi2026lab3-lb-1 | 18.81% | 26.13MiB / 128MiB | 20.42% | 1.17GB / 1.22GB | 0B / 0B | 2 |
| 20 | 1793215567 | mtusi2026lab3-valkey-1 | 3.24% | 11.5MiB / 128MiB | 8.98% | 58.4MB / 63.8MB | 0B / 918kB | 6 |
| 21 | 1793215571 | mtusi2026lab3-k6-run-5c0acfbbfefb | 29.13% | 141.9MiB / 1GiB | 13.85% | 83MB / 13.4MB | 0B / 0B | 9 |
| 22 | 1793215571 | mtusi2026lab3-api-1 | 135.52% | 328.4MiB / 2GiB | 16.04% | 1.01GB / 1.42GB | 0B / 0B | 25 |
| 23 | 1793215571 | mtusi2026lab3-postgres-1 | 55.04% | 311.9MiB / 1GiB | 30.46% | 326MB / 669MB | 0B / 3.25GB | 38 |
| 24 | 1793215571 | mtusi2026lab3-lb-1 | 17.17% | 25.61MiB / 128MiB | 20.01% | 1.2GB / 1.25GB | 0B / 0B | 2 |
| 25 | 1793215571 | mtusi2026lab3-valkey-1 | 3.22% | 11.26MiB / 128MiB | 8.80% | 59.9MB / 65.5MB | 0B / 918kB | 6 |
| 26 | 1793215574 | mtusi2026lab3-k6-run-5c0acfbbfefb | 33.07% | 141.9MiB / 1GiB | 13.85% | 97.4MB / 15.7MB | 0B / 0B | 9 |
| 27 | 1793215574 | mtusi2026lab3-api-1 | 142.23% | 327.7MiB / 2GiB | 16.00% | 1.03GB / 1.45GB | 0B / 0B | 25 |
| 28 | 1793215574 | mtusi2026lab3-postgres-1 | 59.01% | 315.9MiB / 1GiB | 30.85% | 332MB / 682MB | 0B / 3.32GB | 38 |
| 29 | 1793215574 | mtusi2026lab3-lb-1 | 16.83% | 25.59MiB / 128MiB | 19.99% | 1.22GB / 1.27GB | 0B / 0B | 2 |
| 30 | 1793215574 | mtusi2026lab3-valkey-1 | 4.14% | 11.26MiB / 128MiB | 8.80% | 60.7MB / 66.4MB | 0B / 918kB | 6 |
| 31 | 1793215578 | mtusi2026lab3-k6-run-5c0acfbbfefb | 28.99% | 141.9MiB / 1GiB | 13.86% | 122MB / 19.8MB | 0B / 0B | 9 |
| 32 | 1793215578 | mtusi2026lab3-api-1 | 142.72% | 327.7MiB / 2GiB | 16.00% | 1.05GB / 1.48GB | 0B / 0B | 25 |
| 33 | 1793215578 | mtusi2026lab3-postgres-1 | 60.00% | 311MiB / 1GiB | 30.37% | 339MB / 696MB | 0B / 3.37GB | 36 |
| 34 | 1793215578 | mtusi2026lab3-lb-1 | 17.05% | 25.6MiB / 128MiB | 20.00% | 1.25GB / 1.3GB | 0B / 0B | 2 |
| 35 | 1793215578 | mtusi2026lab3-valkey-1 | 4.11% | 11.26MiB / 128MiB | 8.80% | 61.9MB / 67.7MB | 0B / 930kB | 6 |
| 36 | 1793215582 | mtusi2026lab3-k6-run-5c0acfbbfefb | 29.08% | 143.9MiB / 1GiB | 14.06% | 141MB / 22.9MB | 0B / 0B | 9 |
| 37 | 1793215582 | mtusi2026lab3-api-1 | 147.07% | 335.7MiB / 2GiB | 16.39% | 1.07GB / 1.51GB | 0B / 0B | 26 |
| 38 | 1793215582 | mtusi2026lab3-postgres-1 | 61.29% | 318.5MiB / 1GiB | 31.10% | 345MB / 709MB | 0B / 3.44GB | 37 |
| 39 | 1793215582 | mtusi2026lab3-lb-1 | 17.56% | 25.58MiB / 128MiB | 19.98% | 1.26GB / 1.32GB | 0B / 0B | 2 |
| 40 | 1793215582 | mtusi2026lab3-valkey-1 | 4.08% | 11.26MiB / 128MiB | 8.80% | 63.4MB / 69.4MB | 0B / 930kB | 6 |
| 41 | 1793215586 | mtusi2026lab3-k6-run-5c0acfbbfefb | 29.70% | 146MiB / 1GiB | 14.25% | 157MB / 25.5MB | 0B / 0B | 9 |
| 42 | 1793215586 | mtusi2026lab3-api-1 | 144.75% | 327.8MiB / 2GiB | 16.01% | 1.09GB / 1.53GB | 0B / 0B | 25 |
| 43 | 1793215586 | mtusi2026lab3-postgres-1 | 60.96% | 320.8MiB / 1GiB | 31.33% | 351MB / 720MB | 0B / 3.49GB | 37 |
| 44 | 1793215586 | mtusi2026lab3-lb-1 | 17.76% | 25.59MiB / 128MiB | 19.99% | 1.29GB / 1.34GB | 0B / 0B | 2 |
| 45 | 1793215586 | mtusi2026lab3-valkey-1 | 3.56% | 11.27MiB / 128MiB | 8.80% | 64.4MB / 70.5MB | 0B / 930kB | 6 |
| 46 | 1793215589 | mtusi2026lab3-k6-run-5c0acfbbfefb | 28.77% | 146.1MiB / 1GiB | 14.27% | 176MB / 28.7MB | 0B / 0B | 9 |
| 47 | 1793215589 | mtusi2026lab3-api-1 | 140.74% | 327.6MiB / 2GiB | 16.00% | 1.11GB / 1.56GB | 0B / 0B | 25 |
| 48 | 1793215589 | mtusi2026lab3-postgres-1 | 57.80% | 324MiB / 1GiB | 31.64% | 357MB / 733MB | 0B / 3.57GB | 37 |
| 49 | 1793215589 | mtusi2026lab3-lb-1 | 16.76% | 25.57MiB / 128MiB | 19.97% | 1.31GB / 1.37GB | 0B / 0B | 2 |
| 50 | 1793215589 | mtusi2026lab3-valkey-1 | 4.07% | 11.26MiB / 128MiB | 8.80% | 65.3MB / 71.4MB | 0B / 930kB | 6 |
| 51 | 1793215592 | mtusi2026lab3-k6-run-5c0acfbbfefb | 30.89% | 150.1MiB / 1GiB | 14.66% | 196MB / 31.9MB | 0B / 0B | 9 |
| 52 | 1793215592 | mtusi2026lab3-api-1 | 160.80% | 340.9MiB / 2GiB | 16.65% | 1.13GB / 1.59GB | 0B / 0B | 26 |
| 53 | 1793215592 | mtusi2026lab3-postgres-1 | 64.13% | 331.4MiB / 1GiB | 32.36% | 364MB / 747MB | 0B / 3.64GB | 38 |
| 54 | 1793215592 | mtusi2026lab3-lb-1 | 17.76% | 25.36MiB / 128MiB | 19.82% | 1.34GB / 1.39GB | 0B / 0B | 2 |
| 55 | 1793215592 | mtusi2026lab3-valkey-1 | 3.45% | 11.27MiB / 128MiB | 8.80% | 66.5MB / 72.8MB | 0B / 930kB | 6 |
| 56 | 1793215596 | mtusi2026lab3-k6-run-5c0acfbbfefb | 27.70% | 150.2MiB / 1GiB | 14.67% | 211MB / 34.5MB | 0B / 0B | 9 |
| 57 | 1793215596 | mtusi2026lab3-api-1 | 115.04% | 327.5MiB / 2GiB | 15.99% | 1.15GB / 1.62GB | 0B / 0B | 25 |
| 58 | 1793215596 | mtusi2026lab3-postgres-1 | 49.08% | 333.9MiB / 1GiB | 32.61% | 369MB / 757MB | 0B / 3.68GB | 38 |
| 59 | 1793215596 | mtusi2026lab3-lb-1 | 14.12% | 25.07MiB / 128MiB | 19.59% | 1.36GB / 1.41GB | 0B / 0B | 2 |
| 60 | 1793215596 | mtusi2026lab3-valkey-1 | 3.35% | 11.23MiB / 128MiB | 8.78% | 67.8MB / 74.2MB | 0B / 930kB | 6 |