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.0 KiB
5.0 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215932 | mtusi2026lab3-api-1 | 331.55% | 339.4MiB / 2GiB | 16.57% | 3.6GB / 5.09GB | 0B / 0B | 25 |
| 3 | 1793215932 | mtusi2026lab3-postgres-1 | 153.83% | 436.9MiB / 1GiB | 42.67% | 1.15GB / 2.38GB | 128MB / 10.7GB | 38 |
| 4 | 1793215932 | mtusi2026lab3-lb-1 | 36.83% | 27.46MiB / 128MiB | 21.45% | 4.28GB / 4.45GB | 0B / 0B | 2 |
| 5 | 1793215932 | mtusi2026lab3-valkey-1 | 3.44% | 11.32MiB / 128MiB | 8.85% | 210MB / 231MB | 0B / 1.61MB | 6 |
| 6 | 1793215935 | mtusi2026lab3-k6-run-e60b56e375bd | 58.49% | 270.7MiB / 1GiB | 26.44% | 60.4MB / 9.98MB | 0B / 0B | 9 |
| 7 | 1793215935 | mtusi2026lab3-api-1 | 311.02% | 339.3MiB / 2GiB | 16.57% | 3.63GB / 5.13GB | 0B / 0B | 25 |
| 8 | 1793215935 | mtusi2026lab3-postgres-1 | 139.39% | 432.8MiB / 1GiB | 42.27% | 1.17GB / 2.41GB | 128MB / 10.8GB | 37 |
| 9 | 1793215935 | mtusi2026lab3-lb-1 | 34.25% | 23.82MiB / 128MiB | 18.61% | 4.34GB / 4.51GB | 0B / 0B | 2 |
| 10 | 1793215935 | mtusi2026lab3-valkey-1 | 7.75% | 11.34MiB / 128MiB | 8.86% | 214MB / 235MB | 0B / 1.61MB | 6 |
| 11 | 1793215939 | mtusi2026lab3-k6-run-e60b56e375bd | 65.86% | 275MiB / 1GiB | 26.86% | 96.3MB / 15.8MB | 0B / 0B | 9 |
| 12 | 1793215939 | mtusi2026lab3-api-1 | 323.18% | 339.2MiB / 2GiB | 16.56% | 3.68GB / 5.2GB | 0B / 0B | 25 |
| 13 | 1793215939 | mtusi2026lab3-postgres-1 | 138.41% | 436.3MiB / 1GiB | 42.61% | 1.18GB / 2.44GB | 128MB / 10.9GB | 38 |
| 14 | 1793215939 | mtusi2026lab3-lb-1 | 33.86% | 25.12MiB / 128MiB | 19.63% | 4.38GB / 4.55GB | 0B / 0B | 8 |
| 15 | 1793215939 | mtusi2026lab3-valkey-1 | 6.99% | 11.33MiB / 128MiB | 8.85% | 216MB / 238MB | 0B / 1.61MB | 6 |
| 16 | 1793215942 | mtusi2026lab3-k6-run-e60b56e375bd | 57.31% | 309.8MiB / 1GiB | 30.26% | 140MB / 23MB | 0B / 0B | 9 |
| 17 | 1793215942 | mtusi2026lab3-api-1 | 315.21% | 339.8MiB / 2GiB | 16.59% | 3.72GB / 5.25GB | 0B / 0B | 25 |
| 18 | 1793215942 | mtusi2026lab3-postgres-1 | 133.15% | 431.9MiB / 1GiB | 42.18% | 1.2GB / 2.47GB | 128MB / 11GB | 37 |
| 19 | 1793215942 | mtusi2026lab3-lb-1 | 34.48% | 24.98MiB / 128MiB | 19.52% | 4.44GB / 4.61GB | 0B / 0B | 2 |
| 20 | 1793215942 | mtusi2026lab3-valkey-1 | 6.91% | 11.34MiB / 128MiB | 8.86% | 219MB / 241MB | 0B / 1.61MB | 6 |
| 21 | 1793215946 | mtusi2026lab3-k6-run-e60b56e375bd | 60.87% | 308.5MiB / 1GiB | 30.13% | 183MB / 30.3MB | 0B / 0B | 9 |
| 22 | 1793215946 | mtusi2026lab3-api-1 | 314.73% | 339.2MiB / 2GiB | 16.56% | 3.77GB / 5.33GB | 0B / 0B | 25 |
| 23 | 1793215946 | mtusi2026lab3-postgres-1 | 138.42% | 431.1MiB / 1GiB | 42.10% | 1.21GB / 2.5GB | 128MB / 11.1GB | 37 |
| 24 | 1793215946 | mtusi2026lab3-lb-1 | 34.85% | 22.84MiB / 128MiB | 17.85% | 4.49GB / 4.67GB | 0B / 0B | 2 |
| 25 | 1793215946 | mtusi2026lab3-valkey-1 | 7.10% | 11.33MiB / 128MiB | 8.85% | 221MB / 243MB | 0B / 1.61MB | 6 |
| 26 | 1793215949 | mtusi2026lab3-k6-run-e60b56e375bd | 60.10% | 308.5MiB / 1GiB | 30.13% | 227MB / 37.4MB | 0B / 0B | 9 |
| 27 | 1793215949 | mtusi2026lab3-api-1 | 313.47% | 339.6MiB / 2GiB | 16.58% | 3.82GB / 5.4GB | 0B / 0B | 25 |
| 28 | 1793215949 | mtusi2026lab3-postgres-1 | 137.27% | 450.2MiB / 1GiB | 43.97% | 1.23GB / 2.53GB | 128MB / 11.2GB | 38 |
| 29 | 1793215949 | mtusi2026lab3-lb-1 | 34.93% | 23.31MiB / 128MiB | 18.21% | 4.54GB / 4.72GB | 0B / 0B | 2 |
| 30 | 1793215949 | mtusi2026lab3-valkey-1 | 7.10% | 11.32MiB / 128MiB | 8.85% | 223MB / 246MB | 0B / 1.61MB | 6 |
| 31 | 1793215953 | mtusi2026lab3-k6-run-e60b56e375bd | 60.08% | 312.6MiB / 1GiB | 30.52% | 270MB / 44.6MB | 0B / 0B | 9 |
| 32 | 1793215953 | mtusi2026lab3-api-1 | 311.05% | 339.8MiB / 2GiB | 16.59% | 3.85GB / 5.44GB | 0B / 0B | 25 |
| 33 | 1793215953 | mtusi2026lab3-postgres-1 | 136.19% | 446.8MiB / 1GiB | 43.63% | 1.24GB / 2.56GB | 128MB / 11.3GB | 37 |
| 34 | 1793215953 | mtusi2026lab3-lb-1 | 34.57% | 23.8MiB / 128MiB | 18.59% | 4.6GB / 4.78GB | 0B / 0B | 2 |
| 35 | 1793215953 | mtusi2026lab3-valkey-1 | 7.82% | 11.32MiB / 128MiB | 8.85% | 227MB / 249MB | 0B / 1.63MB | 6 |
| 36 | 1793215957 | mtusi2026lab3-k6-run-e60b56e375bd | 68.62% | 317.1MiB / 1GiB | 30.97% | 313MB / 51.7MB | 0B / 0B | 9 |
| 37 | 1793215957 | mtusi2026lab3-api-1 | 312.82% | 339.5MiB / 2GiB | 16.58% | 3.91GB / 5.52GB | 0B / 0B | 25 |
| 38 | 1793215957 | mtusi2026lab3-postgres-1 | 132.65% | 450.9MiB / 1GiB | 44.03% | 1.25GB / 2.58GB | 128MB / 11.4GB | 38 |
| 39 | 1793215957 | mtusi2026lab3-lb-1 | 34.59% | 22.96MiB / 128MiB | 17.94% | 4.65GB / 4.83GB | 0B / 0B | 2 |
| 40 | 1793215957 | mtusi2026lab3-valkey-1 | 7.08% | 11.34MiB / 128MiB | 8.86% | 229MB / 252MB | 0B / 1.63MB | 6 |
| 41 | 1793215960 | mtusi2026lab3-k6-run-e60b56e375bd | 61.92% | 317.5MiB / 1GiB | 31.00% | 358MB / 58.9MB | 0B / 0B | 9 |
| 42 | 1793215960 | mtusi2026lab3-api-1 | 316.60% | 341MiB / 2GiB | 16.65% | 3.96GB / 5.59GB | 0B / 0B | 25 |
| 43 | 1793215960 | mtusi2026lab3-postgres-1 | 143.21% | 451.9MiB / 1GiB | 44.14% | 1.27GB / 2.62GB | 128MB / 11.6GB | 38 |
| 44 | 1793215960 | mtusi2026lab3-lb-1 | 35.51% | 34.17MiB / 128MiB | 26.70% | 4.71GB / 4.89GB | 0B / 0B | 2 |
| 45 | 1793215960 | mtusi2026lab3-valkey-1 | 7.69% | 11.34MiB / 128MiB | 8.86% | 231MB / 255MB | 0B / 1.63MB | 6 |
| 46 | 1793215964 | mtusi2026lab3-k6-run-e60b56e375bd | 60.35% | 323.9MiB / 1GiB | 31.63% | 395MB / 64.8MB | 0B / 0B | 9 |
| 47 | 1793215964 | mtusi2026lab3-api-1 | 325.73% | 348MiB / 2GiB | 16.99% | 4GB / 5.64GB | 0B / 0B | 26 |
| 48 | 1793215964 | mtusi2026lab3-postgres-1 | 139.44% | 451.2MiB / 1GiB | 44.06% | 1.28GB / 2.65GB | 128MB / 11.7GB | 38 |
| 49 | 1793215964 | mtusi2026lab3-lb-1 | 34.66% | 24.5MiB / 128MiB | 19.14% | 4.75GB / 4.94GB | 0B / 0B | 2 |
| 50 | 1793215964 | mtusi2026lab3-valkey-1 | 7.84% | 11.33MiB / 128MiB | 8.85% | 234MB / 258MB | 0B / 1.63MB | 6 |
| 51 | 1793215967 | mtusi2026lab3-k6-run-e60b56e375bd | 58.74% | 323.9MiB / 1GiB | 31.63% | 439MB / 72MB | 0B / 0B | 9 |
| 52 | 1793215967 | mtusi2026lab3-api-1 | 309.32% | 340.2MiB / 2GiB | 16.61% | 4.04GB / 5.71GB | 0B / 0B | 25 |
| 53 | 1793215967 | mtusi2026lab3-postgres-1 | 132.03% | 447.9MiB / 1GiB | 43.74% | 1.3GB / 2.68GB | 128MB / 11.8GB | 37 |
| 54 | 1793215967 | mtusi2026lab3-lb-1 | 34.55% | 24.23MiB / 128MiB | 18.93% | 4.81GB / 5GB | 0B / 0B | 2 |
| 55 | 1793215967 | mtusi2026lab3-valkey-1 | 7.76% | 11.32MiB / 128MiB | 8.85% | 236MB / 260MB | 0B / 1.63MB | 6 |