forked from mtusi2026/mtusi2026lab3
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.9 KiB
5.9 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216557 | mtusi2026lab3-api-1 | 81.29% | 198.8MiB / 1GiB | 19.41% | 469MB / 661MB | 0B / 0B | 14 |
| 3 | 1793216557 | mtusi2026lab3-api-2 | 81.70% | 195.6MiB / 1GiB | 19.10% | 471MB / 664MB | 0B / 0B | 14 |
| 4 | 1793216557 | mtusi2026lab3-postgres-1 | 57.46% | 303.2MiB / 1GiB | 29.61% | 302MB / 622MB | 86kB / 3.04GB | 38 |
| 5 | 1793216557 | mtusi2026lab3-lb-1 | 17.04% | 14.89MiB / 128MiB | 11.63% | 1.11GB / 1.16GB | 0B / 0B | 2 |
| 6 | 1793216557 | mtusi2026lab3-valkey-1 | 1.62% | 11.26MiB / 128MiB | 8.80% | 54.9MB / 60.4MB | 0B / 905kB | 6 |
| 7 | 1793216560 | mtusi2026lab3-k6-run-1b7799cc278a | 34.07% | 127.1MiB / 1GiB | 12.42% | 26.9MB / 4.45MB | 0B / 0B | 8 |
| 8 | 1793216560 | mtusi2026lab3-api-1 | 79.02% | 188.6MiB / 1GiB | 18.42% | 479MB / 675MB | 0B / 0B | 13 |
| 9 | 1793216560 | mtusi2026lab3-api-2 | 78.12% | 185.2MiB / 1GiB | 18.09% | 481MB / 679MB | 0B / 0B | 13 |
| 10 | 1793216560 | mtusi2026lab3-postgres-1 | 64.20% | 305.4MiB / 1GiB | 29.83% | 307MB / 632MB | 86kB / 3.08GB | 38 |
| 11 | 1793216560 | mtusi2026lab3-lb-1 | 17.30% | 14.44MiB / 128MiB | 11.28% | 1.14GB / 1.19GB | 0B / 0B | 2 |
| 12 | 1793216560 | mtusi2026lab3-valkey-1 | 4.23% | 11.28MiB / 128MiB | 8.81% | 56.5MB / 62.1MB | 0B / 905kB | 6 |
| 13 | 1793216564 | mtusi2026lab3-k6-run-1b7799cc278a | 32.83% | 129.4MiB / 1GiB | 12.63% | 45.9MB / 7.62MB | 0B / 0B | 9 |
| 14 | 1793216564 | mtusi2026lab3-api-1 | 79.07% | 188.2MiB / 1GiB | 18.38% | 487MB / 686MB | 0B / 0B | 13 |
| 15 | 1793216564 | mtusi2026lab3-api-2 | 74.22% | 185.2MiB / 1GiB | 18.09% | 491MB / 693MB | 0B / 0B | 13 |
| 16 | 1793216564 | mtusi2026lab3-postgres-1 | 57.70% | 306.3MiB / 1GiB | 29.91% | 315MB / 649MB | 86kB / 3.17GB | 37 |
| 17 | 1793216564 | mtusi2026lab3-lb-1 | 16.10% | 13.89MiB / 128MiB | 10.85% | 1.16GB / 1.21GB | 0B / 0B | 2 |
| 18 | 1793216564 | mtusi2026lab3-valkey-1 | 3.40% | 11.28MiB / 128MiB | 8.81% | 57.7MB / 63.4MB | 0B / 905kB | 6 |
| 19 | 1793216568 | mtusi2026lab3-k6-run-1b7799cc278a | 30.00% | 144.7MiB / 1GiB | 14.13% | 65.4MB / 10.8MB | 0B / 0B | 9 |
| 20 | 1793216568 | mtusi2026lab3-api-1 | 88.95% | 188.6MiB / 1GiB | 18.42% | 500MB / 704MB | 0B / 0B | 13 |
| 21 | 1793216568 | mtusi2026lab3-api-2 | 89.09% | 185.5MiB / 1GiB | 18.11% | 501MB / 707MB | 0B / 0B | 13 |
| 22 | 1793216568 | mtusi2026lab3-postgres-1 | 59.02% | 297.9MiB / 1GiB | 29.09% | 322MB / 662MB | 86kB / 3.23GB | 34 |
| 23 | 1793216568 | mtusi2026lab3-lb-1 | 16.61% | 14.99MiB / 128MiB | 11.71% | 1.19GB / 1.24GB | 0B / 0B | 2 |
| 24 | 1793216568 | mtusi2026lab3-valkey-1 | 4.09% | 11.28MiB / 128MiB | 8.81% | 58.5MB / 64.3MB | 0B / 905kB | 6 |
| 25 | 1793216571 | mtusi2026lab3-k6-run-1b7799cc278a | 29.72% | 146.2MiB / 1GiB | 14.27% | 84.2MB / 14MB | 0B / 0B | 9 |
| 26 | 1793216571 | mtusi2026lab3-api-1 | 73.20% | 188.1MiB / 1GiB | 18.37% | 510MB / 718MB | 0B / 0B | 13 |
| 27 | 1793216571 | mtusi2026lab3-api-2 | 73.43% | 185.5MiB / 1GiB | 18.11% | 511MB / 721MB | 0B / 0B | 13 |
| 28 | 1793216571 | mtusi2026lab3-postgres-1 | 67.71% | 310.5MiB / 1GiB | 30.32% | 326MB / 672MB | 86kB / 3.28GB | 37 |
| 29 | 1793216571 | mtusi2026lab3-lb-1 | 16.17% | 14.47MiB / 128MiB | 11.30% | 1.21GB / 1.26GB | 0B / 0B | 2 |
| 30 | 1793216571 | mtusi2026lab3-valkey-1 | 3.38% | 11.29MiB / 128MiB | 8.82% | 60MB / 66MB | 0B / 905kB | 6 |
| 31 | 1793216575 | mtusi2026lab3-k6-run-1b7799cc278a | 30.59% | 146.2MiB / 1GiB | 14.28% | 100MB / 16.6MB | 0B / 0B | 9 |
| 32 | 1793216575 | mtusi2026lab3-api-1 | 75.36% | 188.1MiB / 1GiB | 18.37% | 518MB / 729MB | 0B / 0B | 13 |
| 33 | 1793216575 | mtusi2026lab3-api-2 | 75.14% | 185.3MiB / 1GiB | 18.09% | 520MB / 733MB | 0B / 0B | 13 |
| 34 | 1793216575 | mtusi2026lab3-postgres-1 | 59.12% | 310.3MiB / 1GiB | 30.30% | 333MB / 686MB | 86kB / 3.34GB | 36 |
| 35 | 1793216575 | mtusi2026lab3-lb-1 | 17.02% | 14.7MiB / 128MiB | 11.48% | 1.23GB / 1.28GB | 0B / 0B | 2 |
| 36 | 1793216575 | mtusi2026lab3-valkey-1 | 4.03% | 11.27MiB / 128MiB | 8.81% | 61MB / 67.1MB | 0B / 905kB | 6 |
| 37 | 1793216578 | mtusi2026lab3-k6-run-1b7799cc278a | 33.88% | 146.2MiB / 1GiB | 14.28% | 114MB / 18.9MB | 0B / 0B | 9 |
| 38 | 1793216578 | mtusi2026lab3-api-1 | 91.37% | 188.2MiB / 1GiB | 18.37% | 528MB / 743MB | 0B / 0B | 13 |
| 39 | 1793216578 | mtusi2026lab3-api-2 | 92.23% | 185.3MiB / 1GiB | 18.10% | 530MB / 747MB | 0B / 0B | 13 |
| 40 | 1793216578 | mtusi2026lab3-postgres-1 | 60.97% | 317.4MiB / 1GiB | 30.99% | 340MB / 699MB | 86kB / 3.4GB | 37 |
| 41 | 1793216578 | mtusi2026lab3-lb-1 | 17.31% | 14.68MiB / 128MiB | 11.47% | 1.25GB / 1.31GB | 0B / 0B | 2 |
| 42 | 1793216578 | mtusi2026lab3-valkey-1 | 3.55% | 11.28MiB / 128MiB | 8.81% | 62.2MB / 68.4MB | 0B / 926kB | 6 |
| 43 | 1793216582 | mtusi2026lab3-k6-run-1b7799cc278a | 34.23% | 146.2MiB / 1GiB | 14.28% | 138MB / 22.9MB | 0B / 0B | 9 |
| 44 | 1793216582 | mtusi2026lab3-api-1 | 74.33% | 188.1MiB / 1GiB | 18.37% | 538MB / 757MB | 0B / 0B | 13 |
| 45 | 1793216582 | mtusi2026lab3-api-2 | 74.11% | 185.3MiB / 1GiB | 18.09% | 540MB / 761MB | 0B / 0B | 13 |
| 46 | 1793216582 | mtusi2026lab3-postgres-1 | 57.92% | 317.4MiB / 1GiB | 31.00% | 346MB / 713MB | 86kB / 3.47GB | 36 |
| 47 | 1793216582 | mtusi2026lab3-lb-1 | 16.46% | 14.83MiB / 128MiB | 11.59% | 1.28GB / 1.33GB | 0B / 0B | 2 |
| 48 | 1793216582 | mtusi2026lab3-valkey-1 | 4.14% | 11.27MiB / 128MiB | 8.81% | 63.1MB / 69.3MB | 0B / 926kB | 6 |
| 49 | 1793216585 | mtusi2026lab3-k6-run-1b7799cc278a | 33.78% | 146.4MiB / 1GiB | 14.29% | 155MB / 25.7MB | 0B / 0B | 9 |
| 50 | 1793216585 | mtusi2026lab3-api-1 | 74.09% | 188.1MiB / 1GiB | 18.37% | 547MB / 770MB | 0B / 0B | 13 |
| 51 | 1793216585 | mtusi2026lab3-api-2 | 73.39% | 185.5MiB / 1GiB | 18.12% | 548MB / 773MB | 0B / 0B | 13 |
| 52 | 1793216585 | mtusi2026lab3-postgres-1 | 55.87% | 316.3MiB / 1GiB | 30.89% | 352MB / 724MB | 86kB / 3.52GB | 35 |
| 53 | 1793216585 | mtusi2026lab3-lb-1 | 16.90% | 14.98MiB / 128MiB | 11.71% | 1.3GB / 1.35GB | 0B / 0B | 2 |
| 54 | 1793216585 | mtusi2026lab3-valkey-1 | 3.99% | 11.28MiB / 128MiB | 8.81% | 64.4MB / 70.8MB | 0B / 926kB | 6 |
| 55 | 1793216589 | mtusi2026lab3-k6-run-1b7799cc278a | 31.36% | 146.3MiB / 1GiB | 14.28% | 174MB / 28.9MB | 0B / 0B | 9 |
| 56 | 1793216589 | mtusi2026lab3-api-1 | 81.58% | 188.1MiB / 1GiB | 18.37% | 557MB / 785MB | 0B / 0B | 13 |
| 57 | 1793216589 | mtusi2026lab3-api-2 | 81.02% | 185.3MiB / 1GiB | 18.09% | 558MB / 787MB | 0B / 0B | 13 |
| 58 | 1793216589 | mtusi2026lab3-postgres-1 | 65.76% | 329.3MiB / 1GiB | 32.16% | 357MB / 734MB | 86kB / 3.58GB | 38 |
| 59 | 1793216589 | mtusi2026lab3-lb-1 | 18.06% | 14.73MiB / 128MiB | 11.51% | 1.32GB / 1.38GB | 0B / 0B | 2 |
| 60 | 1793216589 | mtusi2026lab3-valkey-1 | 4.35% | 11.28MiB / 128MiB | 8.81% | 65.6MB / 72.1MB | 0B / 926kB | 6 |
| 61 | 1793216592 | mtusi2026lab3-k6-run-1b7799cc278a | 34.59% | 150.6MiB / 1GiB | 14.71% | 193MB / 32.1MB | 0B / 0B | 9 |
| 62 | 1793216592 | mtusi2026lab3-api-1 | 80.96% | 188.4MiB / 1GiB | 18.39% | 567MB / 799MB | 0B / 0B | 13 |
| 63 | 1793216592 | mtusi2026lab3-api-2 | 80.99% | 185.2MiB / 1GiB | 18.09% | 568MB / 801MB | 0B / 0B | 13 |
| 64 | 1793216592 | mtusi2026lab3-postgres-1 | 65.59% | 333.5MiB / 1GiB | 32.57% | 363MB / 747MB | 86kB / 3.65GB | 38 |
| 65 | 1793216592 | mtusi2026lab3-lb-1 | 17.15% | 14.48MiB / 128MiB | 11.31% | 1.35GB / 1.4GB | 0B / 0B | 2 |
| 66 | 1793216592 | mtusi2026lab3-valkey-1 | 3.64% | 11.28MiB / 128MiB | 8.81% | 66.8MB / 73.5MB | 0B / 926kB | 6 |