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
6.4 KiB
6.4 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216510 | mtusi2026lab3-api-1 | 45.35% | 187.8MiB / 1GiB | 18.34% | 395MB / 557MB | 0B / 0B | 13 |
| 3 | 1793216510 | mtusi2026lab3-api-2 | 45.13% | 185.3MiB / 1GiB | 18.10% | 396MB / 558MB | 0B / 0B | 13 |
| 4 | 1793216510 | mtusi2026lab3-postgres-1 | 33.15% | 268.3MiB / 1GiB | 26.20% | 254MB / 523MB | 86kB / 2.56GB | 35 |
| 5 | 1793216510 | mtusi2026lab3-lb-1 | 6.08% | 14.57MiB / 128MiB | 11.39% | 934MB / 973MB | 0B / 0B | 2 |
| 6 | 1793216510 | mtusi2026lab3-valkey-1 | 2.81% | 11.24MiB / 128MiB | 8.78% | 46.5MB / 51.1MB | 0B / 827kB | 6 |
| 7 | 1793216513 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 20.87% | 89.32MiB / 1GiB | 8.72% | 15.3MB / 2.61MB | 0B / 0B | 9 |
| 8 | 1793216513 | mtusi2026lab3-api-1 | 53.00% | 188.1MiB / 1GiB | 18.37% | 401MB / 564MB | 0B / 0B | 13 |
| 9 | 1793216513 | mtusi2026lab3-api-2 | 52.92% | 185.3MiB / 1GiB | 18.10% | 402MB / 566MB | 0B / 0B | 13 |
| 10 | 1793216513 | mtusi2026lab3-postgres-1 | 53.87% | 274.1MiB / 1GiB | 26.77% | 258MB / 531MB | 86kB / 2.61GB | 36 |
| 11 | 1793216513 | mtusi2026lab3-lb-1 | 11.61% | 14.6MiB / 128MiB | 11.40% | 952MB / 991MB | 0B / 0B | 2 |
| 12 | 1793216513 | mtusi2026lab3-valkey-1 | 2.59% | 11.22MiB / 128MiB | 8.76% | 47.2MB / 51.8MB | 0B / 827kB | 6 |
| 13 | 1793216516 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 22.17% | 89.61MiB / 1GiB | 8.75% | 27.9MB / 4.7MB | 0B / 0B | 9 |
| 14 | 1793216516 | mtusi2026lab3-api-1 | 51.96% | 187.8MiB / 1GiB | 18.34% | 407MB / 573MB | 0B / 0B | 13 |
| 15 | 1793216516 | mtusi2026lab3-api-2 | 52.30% | 185.3MiB / 1GiB | 18.09% | 408MB / 576MB | 0B / 0B | 13 |
| 16 | 1793216516 | mtusi2026lab3-postgres-1 | 42.49% | 272.3MiB / 1GiB | 26.59% | 262MB / 539MB | 86kB / 2.64GB | 35 |
| 17 | 1793216516 | mtusi2026lab3-lb-1 | 11.42% | 14.57MiB / 128MiB | 11.39% | 967MB / 1.01GB | 0B / 0B | 2 |
| 18 | 1793216516 | mtusi2026lab3-valkey-1 | 3.18% | 11.22MiB / 128MiB | 8.77% | 47.7MB / 52.4MB | 0B / 827kB | 6 |
| 19 | 1793216520 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 23.41% | 100.5MiB / 1GiB | 9.81% | 41.3MB / 6.83MB | 0B / 0B | 9 |
| 20 | 1793216520 | mtusi2026lab3-api-1 | 53.08% | 187.9MiB / 1GiB | 18.35% | 414MB / 583MB | 0B / 0B | 13 |
| 21 | 1793216520 | mtusi2026lab3-api-2 | 53.33% | 185.3MiB / 1GiB | 18.10% | 415MB / 586MB | 0B / 0B | 13 |
| 22 | 1793216520 | mtusi2026lab3-postgres-1 | 39.58% | 277.9MiB / 1GiB | 27.14% | 266MB / 549MB | 86kB / 2.68GB | 36 |
| 23 | 1793216520 | mtusi2026lab3-lb-1 | 12.63% | 14.59MiB / 128MiB | 11.40% | 984MB / 1.02GB | 0B / 0B | 2 |
| 24 | 1793216520 | mtusi2026lab3-valkey-1 | 2.49% | 11.22MiB / 128MiB | 8.76% | 48.5MB / 53.3MB | 0B / 827kB | 6 |
| 25 | 1793216524 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 21.69% | 100.1MiB / 1GiB | 9.77% | 54.8MB / 8.96MB | 0B / 0B | 9 |
| 26 | 1793216524 | mtusi2026lab3-api-1 | 57.66% | 187.9MiB / 1GiB | 18.35% | 419MB / 590MB | 0B / 0B | 13 |
| 27 | 1793216524 | mtusi2026lab3-api-2 | 55.23% | 185MiB / 1GiB | 18.07% | 422MB / 596MB | 0B / 0B | 13 |
| 28 | 1793216524 | mtusi2026lab3-postgres-1 | 42.63% | 280.3MiB / 1GiB | 27.38% | 271MB / 558MB | 86kB / 2.72GB | 36 |
| 29 | 1793216524 | mtusi2026lab3-lb-1 | 12.73% | 14.55MiB / 128MiB | 11.37% | 1GB / 1.04GB | 0B / 0B | 2 |
| 30 | 1793216524 | mtusi2026lab3-valkey-1 | 3.27% | 11.22MiB / 128MiB | 8.76% | 49.5MB / 54.4MB | 0B / 827kB | 6 |
| 31 | 1793216528 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 21.08% | 100.1MiB / 1GiB | 9.78% | 67.3MB / 11.1MB | 0B / 0B | 9 |
| 32 | 1793216528 | mtusi2026lab3-api-1 | 53.16% | 187.9MiB / 1GiB | 18.35% | 427MB / 602MB | 0B / 0B | 13 |
| 33 | 1793216528 | mtusi2026lab3-api-2 | 53.65% | 185.1MiB / 1GiB | 18.07% | 429MB / 605MB | 0B / 0B | 13 |
| 34 | 1793216528 | mtusi2026lab3-postgres-1 | 43.52% | 286.3MiB / 1GiB | 27.96% | 275MB / 567MB | 86kB / 2.77GB | 37 |
| 35 | 1793216528 | mtusi2026lab3-lb-1 | 11.97% | 14.58MiB / 128MiB | 11.39% | 1.01GB / 1.05GB | 0B / 0B | 2 |
| 36 | 1793216528 | mtusi2026lab3-valkey-1 | 3.23% | 11.23MiB / 128MiB | 8.77% | 50.3MB / 55.3MB | 0B / 827kB | 6 |
| 37 | 1793216531 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 23.10% | 100.1MiB / 1GiB | 9.78% | 80.3MB / 13.2MB | 0B / 0B | 9 |
| 38 | 1793216531 | mtusi2026lab3-api-1 | 63.16% | 187.9MiB / 1GiB | 18.35% | 434MB / 612MB | 0B / 0B | 13 |
| 39 | 1793216531 | mtusi2026lab3-api-2 | 62.96% | 185.4MiB / 1GiB | 18.11% | 436MB / 615MB | 0B / 0B | 13 |
| 40 | 1793216531 | mtusi2026lab3-postgres-1 | 39.07% | 284.1MiB / 1GiB | 27.75% | 279MB / 576MB | 86kB / 2.81GB | 36 |
| 41 | 1793216531 | mtusi2026lab3-lb-1 | 11.69% | 14.26MiB / 128MiB | 11.14% | 1.03GB / 1.07GB | 0B / 0B | 2 |
| 42 | 1793216531 | mtusi2026lab3-valkey-1 | 3.03% | 11.22MiB / 128MiB | 8.77% | 50.9MB / 55.9MB | 0B / 844kB | 6 |
| 43 | 1793216535 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 23.23% | 102.2MiB / 1GiB | 9.98% | 93.5MB / 15.3MB | 0B / 0B | 9 |
| 44 | 1793216535 | mtusi2026lab3-api-1 | 53.89% | 187.9MiB / 1GiB | 18.35% | 441MB / 621MB | 0B / 0B | 13 |
| 45 | 1793216535 | mtusi2026lab3-api-2 | 53.89% | 185.1MiB / 1GiB | 18.07% | 442MB / 624MB | 0B / 0B | 13 |
| 46 | 1793216535 | mtusi2026lab3-postgres-1 | 42.91% | 286.3MiB / 1GiB | 27.95% | 284MB / 585MB | 86kB / 2.85GB | 36 |
| 47 | 1793216535 | mtusi2026lab3-lb-1 | 11.95% | 14.02MiB / 128MiB | 10.96% | 1.05GB / 1.09GB | 0B / 0B | 2 |
| 48 | 1793216535 | mtusi2026lab3-valkey-1 | 3.34% | 11.22MiB / 128MiB | 8.77% | 51.7MB / 56.8MB | 0B / 844kB | 6 |
| 49 | 1793216539 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 23.19% | 102.2MiB / 1GiB | 9.98% | 104MB / 17.1MB | 0B / 0B | 9 |
| 50 | 1793216539 | mtusi2026lab3-api-1 | 60.11% | 187.9MiB / 1GiB | 18.35% | 447MB / 629MB | 0B / 0B | 13 |
| 51 | 1793216539 | mtusi2026lab3-api-2 | 62.17% | 185.1MiB / 1GiB | 18.07% | 448MB / 632MB | 0B / 0B | 13 |
| 52 | 1793216539 | mtusi2026lab3-postgres-1 | 46.64% | 284.3MiB / 1GiB | 27.76% | 287MB / 592MB | 86kB / 2.88GB | 35 |
| 53 | 1793216539 | mtusi2026lab3-lb-1 | 13.47% | 13.81MiB / 128MiB | 10.79% | 1.06GB / 1.11GB | 0B / 0B | 2 |
| 54 | 1793216539 | mtusi2026lab3-valkey-1 | 3.49% | 11.21MiB / 128MiB | 8.76% | 52.6MB / 57.8MB | 0B / 844kB | 6 |
| 55 | 1793216542 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 22.50% | 104.2MiB / 1GiB | 10.18% | 117MB / 19.2MB | 0B / 0B | 9 |
| 56 | 1793216542 | mtusi2026lab3-api-1 | 70.74% | 188.4MiB / 1GiB | 18.40% | 453MB / 639MB | 0B / 0B | 13 |
| 57 | 1793216542 | mtusi2026lab3-api-2 | 70.82% | 185.3MiB / 1GiB | 18.09% | 455MB / 641MB | 0B / 0B | 13 |
| 58 | 1793216542 | mtusi2026lab3-postgres-1 | 46.92% | 290.3MiB / 1GiB | 28.35% | 292MB / 601MB | 86kB / 2.95GB | 36 |
| 59 | 1793216542 | mtusi2026lab3-lb-1 | 13.36% | 13.79MiB / 128MiB | 10.78% | 1.08GB / 1.12GB | 0B / 0B | 2 |
| 60 | 1793216542 | mtusi2026lab3-valkey-1 | 2.91% | 11.48MiB / 128MiB | 8.97% | 53.1MB / 58.4MB | 0B / 844kB | 6 |
| 61 | 1793216545 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 21.83% | 104.2MiB / 1GiB | 10.18% | 126MB / 20.8MB | 0B / 0B | 9 |
| 62 | 1793216545 | mtusi2026lab3-api-1 | 55.51% | 187.9MiB / 1GiB | 18.35% | 460MB / 648MB | 0B / 0B | 13 |
| 63 | 1793216545 | mtusi2026lab3-api-2 | 56.03% | 185.3MiB / 1GiB | 18.10% | 462MB / 651MB | 0B / 0B | 13 |
| 64 | 1793216545 | mtusi2026lab3-postgres-1 | 44.11% | 292.2MiB / 1GiB | 28.53% | 296MB / 610MB | 86kB / 2.99GB | 36 |
| 65 | 1793216545 | mtusi2026lab3-lb-1 | 12.50% | 14.05MiB / 128MiB | 10.98% | 1.09GB / 1.14GB | 0B / 0B | 2 |
| 66 | 1793216545 | mtusi2026lab3-valkey-1 | 2.76% | 11.22MiB / 128MiB | 8.76% | 54.2MB / 59.5MB | 0B / 844kB | 6 |
| 67 | 1793216549 | mtusi2026lab3-k6-run-5bdcb0dbd0e1 | 19.55% | 104.7MiB / 1GiB | 10.23% | 140MB / 23MB | 0B / 0B | 9 |
| 68 | 1793216549 | mtusi2026lab3-api-1 | 40.90% | 187.8MiB / 1GiB | 18.34% | 465MB / 656MB | 0B / 0B | 13 |
| 69 | 1793216549 | mtusi2026lab3-api-2 | 41.60% | 185MiB / 1GiB | 18.07% | 467MB / 659MB | 0B / 0B | 13 |
| 70 | 1793216549 | mtusi2026lab3-postgres-1 | 32.60% | 294MiB / 1GiB | 28.71% | 299MB / 617MB | 86kB / 3.02GB | 36 |
| 71 | 1793216549 | mtusi2026lab3-lb-1 | 9.75% | 13.5MiB / 128MiB | 10.55% | 1.11GB / 1.15GB | 0B / 0B | 2 |
| 72 | 1793216549 | mtusi2026lab3-valkey-1 | 2.65% | 11.2MiB / 128MiB | 8.75% | 54.8MB / 60.2MB | 0B / 844kB | 6 |