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 | 1793215510 | mtusi2026lab3-api-1 | 91.30% | 308.7MiB / 2GiB | 15.07% | 781MB / 1.1GB | 0B / 0B | 24 |
| 3 | 1793215510 | mtusi2026lab3-postgres-1 | 38.44% | 258.2MiB / 1GiB | 25.22% | 253MB / 519MB | 0B / 2.54GB | 33 |
| 4 | 1793215510 | mtusi2026lab3-lb-1 | 12.52% | 25.46MiB / 128MiB | 19.89% | 930MB / 969MB | 0B / 0B | 2 |
| 5 | 1793215510 | mtusi2026lab3-valkey-1 | 2.42% | 11.25MiB / 128MiB | 8.79% | 46.5MB / 50.8MB | 0B / 819kB | 6 |
| 6 | 1793215514 | mtusi2026lab3-k6-run-504aa39a05a4 | 21.86% | 89.48MiB / 1GiB | 8.74% | 17.1MB / 3MB | 0B / 0B | 9 |
| 7 | 1793215514 | mtusi2026lab3-api-1 | 91.42% | 308.7MiB / 2GiB | 15.07% | 794MB / 1.12GB | 0B / 0B | 24 |
| 8 | 1793215514 | mtusi2026lab3-postgres-1 | 41.73% | 271MiB / 1GiB | 26.47% | 257MB / 528MB | 0B / 2.59GB | 36 |
| 9 | 1793215514 | mtusi2026lab3-lb-1 | 12.07% | 25.98MiB / 128MiB | 20.30% | 945MB / 985MB | 0B / 0B | 2 |
| 10 | 1793215514 | mtusi2026lab3-valkey-1 | 2.39% | 11.25MiB / 128MiB | 8.79% | 47.3MB / 51.7MB | 0B / 819kB | 6 |
| 11 | 1793215517 | mtusi2026lab3-k6-run-504aa39a05a4 | 22.26% | 89.6MiB / 1GiB | 8.75% | 30.4MB / 5.09MB | 0B / 0B | 9 |
| 12 | 1793215517 | mtusi2026lab3-api-1 | 97.50% | 308.6MiB / 2GiB | 15.07% | 811MB / 1.14GB | 0B / 0B | 24 |
| 13 | 1793215517 | mtusi2026lab3-postgres-1 | 41.05% | 273.2MiB / 1GiB | 26.68% | 261MB / 537MB | 0B / 2.63GB | 36 |
| 14 | 1793215517 | mtusi2026lab3-lb-1 | 12.18% | 25.76MiB / 128MiB | 20.12% | 962MB / 1GB | 0B / 0B | 2 |
| 15 | 1793215517 | mtusi2026lab3-valkey-1 | 3.19% | 11.25MiB / 128MiB | 8.79% | 47.9MB / 52.3MB | 0B / 819kB | 6 |
| 16 | 1793215521 | mtusi2026lab3-k6-run-504aa39a05a4 | 19.24% | 100.5MiB / 1GiB | 9.82% | 43.4MB / 7.23MB | 0B / 0B | 9 |
| 17 | 1793215521 | mtusi2026lab3-api-1 | 95.60% | 319.7MiB / 2GiB | 15.61% | 821MB / 1.16GB | 0B / 0B | 25 |
| 18 | 1793215521 | mtusi2026lab3-postgres-1 | 33.36% | 271.7MiB / 1GiB | 26.54% | 266MB / 546MB | 0B / 2.67GB | 35 |
| 19 | 1793215521 | mtusi2026lab3-lb-1 | 11.16% | 26.41MiB / 128MiB | 20.63% | 978MB / 1.02GB | 0B / 0B | 2 |
| 20 | 1793215521 | mtusi2026lab3-valkey-1 | 2.76% | 11.25MiB / 128MiB | 8.79% | 48.9MB / 53.4MB | 0B / 819kB | 6 |
| 21 | 1793215525 | mtusi2026lab3-k6-run-504aa39a05a4 | 21.44% | 100.3MiB / 1GiB | 9.80% | 53.1MB / 8.97MB | 0B / 0B | 9 |
| 22 | 1793215525 | mtusi2026lab3-api-1 | 93.02% | 308.7MiB / 2GiB | 15.07% | 836MB / 1.18GB | 0B / 0B | 24 |
| 23 | 1793215525 | mtusi2026lab3-postgres-1 | 40.44% | 263MiB / 1GiB | 25.68% | 269MB / 552MB | 0B / 2.7GB | 32 |
| 24 | 1793215525 | mtusi2026lab3-lb-1 | 12.49% | 25.93MiB / 128MiB | 20.25% | 990MB / 1.03GB | 0B / 0B | 2 |
| 25 | 1793215525 | mtusi2026lab3-valkey-1 | 2.47% | 11.25MiB / 128MiB | 8.79% | 49.5MB / 54.1MB | 0B / 819kB | 6 |
| 26 | 1793215528 | mtusi2026lab3-k6-run-504aa39a05a4 | 19.88% | 100.3MiB / 1GiB | 9.80% | 66.1MB / 11.1MB | 0B / 0B | 9 |
| 27 | 1793215528 | mtusi2026lab3-api-1 | 92.80% | 308.5MiB / 2GiB | 15.07% | 849MB / 1.2GB | 0B / 0B | 24 |
| 28 | 1793215528 | mtusi2026lab3-postgres-1 | 39.32% | 257.9MiB / 1GiB | 25.19% | 274MB / 561MB | 0B / 2.74GB | 30 |
| 29 | 1793215528 | mtusi2026lab3-lb-1 | 11.81% | 25.25MiB / 128MiB | 19.72% | 1.01GB / 1.05GB | 0B / 0B | 2 |
| 30 | 1793215528 | mtusi2026lab3-valkey-1 | 3.12% | 11.24MiB / 128MiB | 8.78% | 50.1MB / 54.8MB | 0B / 836kB | 6 |
| 31 | 1793215531 | mtusi2026lab3-k6-run-504aa39a05a4 | 20.85% | 100.4MiB / 1GiB | 9.80% | 79.3MB / 13.2MB | 0B / 0B | 9 |
| 32 | 1793215531 | mtusi2026lab3-api-1 | 97.36% | 308.7MiB / 2GiB | 15.08% | 863MB / 1.22GB | 0B / 0B | 24 |
| 33 | 1793215531 | mtusi2026lab3-postgres-1 | 39.93% | 278.2MiB / 1GiB | 27.17% | 278MB / 570MB | 0B / 2.79GB | 35 |
| 34 | 1793215531 | mtusi2026lab3-lb-1 | 12.26% | 25.72MiB / 128MiB | 20.09% | 1.02GB / 1.07GB | 0B / 0B | 2 |
| 35 | 1793215531 | mtusi2026lab3-valkey-1 | 3.26% | 11.25MiB / 128MiB | 8.79% | 50.9MB / 55.6MB | 0B / 836kB | 6 |
| 36 | 1793215535 | mtusi2026lab3-k6-run-504aa39a05a4 | 22.96% | 102.4MiB / 1GiB | 10.00% | 90.2MB / 15MB | 0B / 0B | 9 |
| 37 | 1793215535 | mtusi2026lab3-api-1 | 96.59% | 308.8MiB / 2GiB | 15.08% | 874MB / 1.23GB | 0B / 0B | 24 |
| 38 | 1793215535 | mtusi2026lab3-postgres-1 | 41.25% | 275.7MiB / 1GiB | 26.92% | 282MB / 578MB | 0B / 2.82GB | 34 |
| 39 | 1793215535 | mtusi2026lab3-lb-1 | 12.70% | 25.44MiB / 128MiB | 19.88% | 1.04GB / 1.08GB | 0B / 0B | 2 |
| 40 | 1793215535 | mtusi2026lab3-valkey-1 | 3.14% | 11.25MiB / 128MiB | 8.79% | 51.8MB / 56.6MB | 0B / 836kB | 6 |
| 41 | 1793215538 | mtusi2026lab3-k6-run-504aa39a05a4 | 20.35% | 102.4MiB / 1GiB | 10.00% | 99.5MB / 16.6MB | 0B / 0B | 9 |
| 42 | 1793215538 | mtusi2026lab3-api-1 | 91.22% | 308.5MiB / 2GiB | 15.06% | 888MB / 1.25GB | 0B / 0B | 24 |
| 43 | 1793215538 | mtusi2026lab3-postgres-1 | 38.44% | 278.1MiB / 1GiB | 27.15% | 286MB / 587MB | 0B / 2.86GB | 34 |
| 44 | 1793215538 | mtusi2026lab3-lb-1 | 12.17% | 25.84MiB / 128MiB | 20.18% | 1.05GB / 1.1GB | 0B / 0B | 2 |
| 45 | 1793215538 | mtusi2026lab3-valkey-1 | 2.43% | 11.25MiB / 128MiB | 8.79% | 52.6MB / 57.5MB | 0B / 836kB | 6 |
| 46 | 1793215542 | mtusi2026lab3-k6-run-504aa39a05a4 | 22.41% | 102.5MiB / 1GiB | 10.01% | 116MB / 19.3MB | 0B / 0B | 9 |
| 47 | 1793215542 | mtusi2026lab3-api-1 | 93.03% | 308.5MiB / 2GiB | 15.06% | 901MB / 1.27GB | 0B / 0B | 24 |
| 48 | 1793215542 | mtusi2026lab3-postgres-1 | 38.32% | 280.2MiB / 1GiB | 27.36% | 290MB / 596MB | 0B / 2.91GB | 34 |
| 49 | 1793215542 | mtusi2026lab3-lb-1 | 12.52% | 25.93MiB / 128MiB | 20.26% | 1.06GB / 1.11GB | 0B / 0B | 2 |
| 50 | 1793215542 | mtusi2026lab3-valkey-1 | 2.40% | 11.49MiB / 128MiB | 8.98% | 53.4MB / 58.4MB | 0B / 836kB | 6 |
| 51 | 1793215546 | mtusi2026lab3-k6-run-504aa39a05a4 | 21.13% | 102.5MiB / 1GiB | 10.01% | 125MB / 20.8MB | 0B / 0B | 9 |
| 52 | 1793215546 | mtusi2026lab3-api-1 | 96.10% | 308.7MiB / 2GiB | 15.07% | 915MB / 1.29GB | 0B / 0B | 24 |
| 53 | 1793215546 | mtusi2026lab3-postgres-1 | 41.11% | 283.4MiB / 1GiB | 27.67% | 295MB / 605MB | 0B / 2.96GB | 34 |
| 54 | 1793215546 | mtusi2026lab3-lb-1 | 12.12% | 25.08MiB / 128MiB | 19.60% | 1.08GB / 1.13GB | 0B / 0B | 2 |
| 55 | 1793215546 | mtusi2026lab3-valkey-1 | 2.50% | 11.3MiB / 128MiB | 8.83% | 54.2MB / 59.3MB | 0B / 836kB | 6 |
| 56 | 1793215549 | mtusi2026lab3-k6-run-504aa39a05a4 | 20.03% | 103MiB / 1GiB | 10.06% | 139MB / 23MB | 0B / 0B | 9 |
| 57 | 1793215549 | mtusi2026lab3-api-1 | 80.57% | 308.5MiB / 2GiB | 15.06% | 925MB / 1.3GB | 0B / 0B | 24 |
| 58 | 1793215549 | mtusi2026lab3-postgres-1 | 34.42% | 284.1MiB / 1GiB | 27.75% | 298MB / 612MB | 0B / 2.99GB | 34 |
| 59 | 1793215549 | mtusi2026lab3-lb-1 | 10.64% | 24.93MiB / 128MiB | 19.47% | 1.1GB / 1.14GB | 0B / 0B | 2 |
| 60 | 1793215549 | mtusi2026lab3-valkey-1 | 2.71% | 11.46MiB / 128MiB | 8.96% | 54.8MB / 59.9MB | 0B / 836kB | 6 |