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
4.9 KiB
4.9 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215697 | mtusi2026lab3-api-1 | 205.54% | 328.2MiB / 2GiB | 16.02% | 1.6GB / 2.26GB | 0B / 0B | 25 |
| 3 | 1793215697 | mtusi2026lab3-postgres-1 | 86.68% | 395.5MiB / 1GiB | 38.63% | 514MB / 1.06GB | 0B / 5.09GB | 37 |
| 4 | 1793215697 | mtusi2026lab3-lb-1 | 25.11% | 29.12MiB / 128MiB | 22.75% | 1.9GB / 1.98GB | 0B / 0B | 2 |
| 5 | 1793215697 | mtusi2026lab3-valkey-1 | 2.27% | 11.3MiB / 128MiB | 8.83% | 93.8MB / 103MB | 0B / 1.19MB | 6 |
| 6 | 1793215701 | mtusi2026lab3-k6-run-885496dc8b16 | 40.95% | 183.5MiB / 1GiB | 17.92% | 40.8MB / 6.72MB | 0B / 0B | 9 |
| 7 | 1793215701 | mtusi2026lab3-api-1 | 221.62% | 327.7MiB / 2GiB | 16.00% | 1.63GB / 2.3GB | 0B / 0B | 25 |
| 8 | 1793215701 | mtusi2026lab3-postgres-1 | 87.70% | 395.2MiB / 1GiB | 38.60% | 521MB / 1.07GB | 0B / 5.14GB | 36 |
| 9 | 1793215701 | mtusi2026lab3-lb-1 | 24.77% | 28.3MiB / 128MiB | 22.11% | 1.94GB / 2.02GB | 0B / 0B | 2 |
| 10 | 1793215701 | mtusi2026lab3-valkey-1 | 4.79% | 11.3MiB / 128MiB | 8.83% | 96.1MB / 105MB | 0B / 1.19MB | 6 |
| 11 | 1793215705 | mtusi2026lab3-k6-run-885496dc8b16 | 45.01% | 185.8MiB / 1GiB | 18.14% | 70.2MB / 11.5MB | 0B / 0B | 9 |
| 12 | 1793215705 | mtusi2026lab3-api-1 | 208.18% | 328MiB / 2GiB | 16.01% | 1.66GB / 2.34GB | 0B / 0B | 25 |
| 13 | 1793215705 | mtusi2026lab3-postgres-1 | 86.95% | 405MiB / 1GiB | 39.55% | 534MB / 1.1GB | 0B / 5.25GB | 37 |
| 14 | 1793215705 | mtusi2026lab3-lb-1 | 24.24% | 25.7MiB / 128MiB | 20.08% | 1.97GB / 2.05GB | 0B / 0B | 2 |
| 15 | 1793215705 | mtusi2026lab3-valkey-1 | 5.40% | 11.3MiB / 128MiB | 8.83% | 97.4MB / 107MB | 0B / 1.19MB | 6 |
| 16 | 1793215708 | mtusi2026lab3-k6-run-885496dc8b16 | 45.60% | 193.4MiB / 1GiB | 18.89% | 91.5MB / 15MB | 0B / 0B | 9 |
| 17 | 1793215708 | mtusi2026lab3-api-1 | 208.29% | 328MiB / 2GiB | 16.02% | 1.69GB / 2.39GB | 0B / 0B | 25 |
| 18 | 1793215708 | mtusi2026lab3-postgres-1 | 87.00% | 413.3MiB / 1GiB | 40.36% | 544MB / 1.12GB | 0B / 5.34GB | 38 |
| 19 | 1793215708 | mtusi2026lab3-lb-1 | 24.74% | 26.82MiB / 128MiB | 20.96% | 2.01GB / 2.09GB | 0B / 0B | 2 |
| 20 | 1793215708 | mtusi2026lab3-valkey-1 | 4.76% | 11.29MiB / 128MiB | 8.82% | 99.7MB / 109MB | 0B / 1.19MB | 6 |
| 21 | 1793215712 | mtusi2026lab3-k6-run-885496dc8b16 | 42.41% | 212.7MiB / 1GiB | 20.77% | 121MB / 19.8MB | 0B / 0B | 9 |
| 22 | 1793215712 | mtusi2026lab3-api-1 | 207.10% | 327.8MiB / 2GiB | 16.00% | 1.72GB / 2.43GB | 0B / 0B | 25 |
| 23 | 1793215712 | mtusi2026lab3-postgres-1 | 85.73% | 414.5MiB / 1GiB | 40.48% | 553MB / 1.14GB | 0B / 5.42GB | 37 |
| 24 | 1793215712 | mtusi2026lab3-lb-1 | 24.06% | 26.16MiB / 128MiB | 20.44% | 2.05GB / 2.13GB | 0B / 0B | 2 |
| 25 | 1793215712 | mtusi2026lab3-valkey-1 | 5.29% | 11.3MiB / 128MiB | 8.83% | 101MB / 111MB | 0B / 1.19MB | 6 |
| 26 | 1793215716 | mtusi2026lab3-k6-run-885496dc8b16 | 41.82% | 212.6MiB / 1GiB | 20.76% | 159MB / 25.9MB | 0B / 0B | 9 |
| 27 | 1793215716 | mtusi2026lab3-api-1 | 213.56% | 328MiB / 2GiB | 16.01% | 1.75GB / 2.47GB | 0B / 0B | 25 |
| 28 | 1793215716 | mtusi2026lab3-postgres-1 | 89.92% | 418.5MiB / 1GiB | 40.87% | 561MB / 1.15GB | 0B / 5.49GB | 37 |
| 29 | 1793215716 | mtusi2026lab3-lb-1 | 25.41% | 25.94MiB / 128MiB | 20.26% | 2.08GB / 2.17GB | 0B / 0B | 2 |
| 30 | 1793215716 | mtusi2026lab3-valkey-1 | 5.55% | 11.3MiB / 128MiB | 8.83% | 103MB / 113MB | 0B / 1.2MB | 6 |
| 31 | 1793215719 | mtusi2026lab3-k6-run-885496dc8b16 | 41.58% | 212.6MiB / 1GiB | 20.76% | 183MB / 29.8MB | 0B / 0B | 9 |
| 32 | 1793215719 | mtusi2026lab3-api-1 | 210.85% | 328.1MiB / 2GiB | 16.02% | 1.78GB / 2.51GB | 0B / 0B | 25 |
| 33 | 1793215719 | mtusi2026lab3-postgres-1 | 88.30% | 418.7MiB / 1GiB | 40.88% | 571MB / 1.18GB | 0B / 5.58GB | 36 |
| 34 | 1793215719 | mtusi2026lab3-lb-1 | 24.62% | 25.46MiB / 128MiB | 19.89% | 2.11GB / 2.2GB | 0B / 0B | 2 |
| 35 | 1793215719 | mtusi2026lab3-valkey-1 | 4.78% | 11.3MiB / 128MiB | 8.83% | 105MB / 115MB | 0B / 1.22MB | 6 |
| 36 | 1793215722 | mtusi2026lab3-k6-run-885496dc8b16 | 42.06% | 212.6MiB / 1GiB | 20.77% | 213MB / 34.5MB | 0B / 0B | 9 |
| 37 | 1793215722 | mtusi2026lab3-api-1 | 224.19% | 327.8MiB / 2GiB | 16.00% | 1.8GB / 2.54GB | 0B / 0B | 25 |
| 38 | 1793215722 | mtusi2026lab3-postgres-1 | 88.56% | 427.9MiB / 1GiB | 41.79% | 581MB / 1.2GB | 0B / 5.67GB | 38 |
| 39 | 1793215722 | mtusi2026lab3-lb-1 | 25.07% | 25.71MiB / 128MiB | 20.09% | 2.15GB / 2.24GB | 0B / 0B | 2 |
| 40 | 1793215722 | mtusi2026lab3-valkey-1 | 5.61% | 11.3MiB / 128MiB | 8.83% | 107MB / 117MB | 0B / 1.22MB | 6 |
| 41 | 1793215726 | mtusi2026lab3-k6-run-885496dc8b16 | 47.45% | 212.7MiB / 1GiB | 20.77% | 242MB / 39.3MB | 0B / 0B | 9 |
| 42 | 1793215726 | mtusi2026lab3-api-1 | 213.19% | 328MiB / 2GiB | 16.01% | 1.84GB / 2.6GB | 0B / 0B | 25 |
| 43 | 1793215726 | mtusi2026lab3-postgres-1 | 90.07% | 429.9MiB / 1GiB | 41.98% | 591MB / 1.22GB | 0B / 5.75GB | 38 |
| 44 | 1793215726 | mtusi2026lab3-lb-1 | 25.10% | 25.13MiB / 128MiB | 19.63% | 2.19GB / 2.27GB | 0B / 0B | 2 |
| 45 | 1793215726 | mtusi2026lab3-valkey-1 | 4.76% | 11.29MiB / 128MiB | 8.82% | 108MB / 118MB | 0B / 1.22MB | 6 |
| 46 | 1793215730 | mtusi2026lab3-k6-run-885496dc8b16 | 46.87% | 212.7MiB / 1GiB | 20.77% | 267MB / 43.4MB | 0B / 0B | 9 |
| 47 | 1793215730 | mtusi2026lab3-api-1 | 210.38% | 328MiB / 2GiB | 16.01% | 1.87GB / 2.63GB | 0B / 0B | 25 |
| 48 | 1793215730 | mtusi2026lab3-postgres-1 | 87.37% | 423.2MiB / 1GiB | 41.33% | 599MB / 1.24GB | 73.7kB / 5.87GB | 36 |
| 49 | 1793215730 | mtusi2026lab3-lb-1 | 24.97% | 25.23MiB / 128MiB | 19.71% | 2.22GB / 2.31GB | 0B / 0B | 2 |
| 50 | 1793215730 | mtusi2026lab3-valkey-1 | 4.78% | 11.3MiB / 128MiB | 8.83% | 110MB / 121MB | 0B / 1.22MB | 6 |
| 51 | 1793215733 | mtusi2026lab3-k6-run-885496dc8b16 | 40.85% | 222.7MiB / 1GiB | 21.75% | 297MB / 48.2MB | 0B / 0B | 9 |
| 52 | 1793215733 | mtusi2026lab3-api-1 | 205.98% | 327.7MiB / 2GiB | 16.00% | 1.9GB / 2.68GB | 0B / 0B | 25 |
| 53 | 1793215733 | mtusi2026lab3-postgres-1 | 85.46% | 419.4MiB / 1GiB | 40.96% | 609MB / 1.26GB | 73.7kB / 5.95GB | 35 |
| 54 | 1793215733 | mtusi2026lab3-lb-1 | 24.52% | 25.48MiB / 128MiB | 19.90% | 2.25GB / 2.34GB | 0B / 0B | 2 |
| 55 | 1793215733 | mtusi2026lab3-valkey-1 | 5.40% | 11.3MiB / 128MiB | 8.83% | 111MB / 122MB | 0B / 1.22MB | 6 |