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
4.9 KiB
4.9 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793215417 | mtusi2026lab3-api-1 | 83.57% | 294.3MiB / 2GiB | 14.37% | 490MB / 690MB | 0B / 0B | 24 |
| 3 | 1793215417 | mtusi2026lab3-postgres-1 | 33.17% | 210.1MiB / 1GiB | 20.52% | 158MB / 324MB | 0B / 1.6GB | 32 |
| 4 | 1793215417 | mtusi2026lab3-lb-1 | 11.52% | 26.6MiB / 128MiB | 20.78% | 580MB / 605MB | 0B / 0B | 2 |
| 5 | 1793215417 | mtusi2026lab3-valkey-1 | 1.37% | 11.15MiB / 128MiB | 8.71% | 29MB / 31.5MB | 0B / 623kB | 6 |
| 6 | 1793215420 | mtusi2026lab3-k6-run-b613daecac30 | 19.59% | 87.54MiB / 1GiB | 8.55% | 17.4MB / 3.02MB | 0B / 0B | 9 |
| 7 | 1793215420 | mtusi2026lab3-api-1 | 92.60% | 294MiB / 2GiB | 14.36% | 504MB / 709MB | 0B / 0B | 24 |
| 8 | 1793215420 | mtusi2026lab3-postgres-1 | 37.64% | 204.7MiB / 1GiB | 19.99% | 161MB / 330MB | 0B / 1.62GB | 30 |
| 9 | 1793215420 | mtusi2026lab3-lb-1 | 12.09% | 27.08MiB / 128MiB | 21.15% | 596MB / 621MB | 0B / 0B | 2 |
| 10 | 1793215420 | mtusi2026lab3-valkey-1 | 2.44% | 11.18MiB / 128MiB | 8.74% | 30MB / 32.6MB | 0B / 623kB | 6 |
| 11 | 1793215424 | mtusi2026lab3-k6-run-b613daecac30 | 19.43% | 89.65MiB / 1GiB | 8.75% | 31MB / 5.13MB | 0B / 0B | 9 |
| 12 | 1793215424 | mtusi2026lab3-api-1 | 90.22% | 294MiB / 2GiB | 14.36% | 517MB / 729MB | 0B / 0B | 24 |
| 13 | 1793215424 | mtusi2026lab3-postgres-1 | 39.21% | 206.6MiB / 1GiB | 20.18% | 166MB / 340MB | 0B / 1.66GB | 30 |
| 14 | 1793215424 | mtusi2026lab3-lb-1 | 11.50% | 27.11MiB / 128MiB | 21.18% | 613MB / 639MB | 0B / 0B | 2 |
| 15 | 1793215424 | mtusi2026lab3-valkey-1 | 2.39% | 11.18MiB / 128MiB | 8.73% | 30.8MB / 33.5MB | 0B / 623kB | 6 |
| 16 | 1793215428 | mtusi2026lab3-k6-run-b613daecac30 | 18.56% | 100.6MiB / 1GiB | 9.83% | 44.2MB / 7.26MB | 0B / 0B | 9 |
| 17 | 1793215428 | mtusi2026lab3-api-1 | 94.03% | 294.8MiB / 2GiB | 14.39% | 531MB / 748MB | 0B / 0B | 24 |
| 18 | 1793215428 | mtusi2026lab3-postgres-1 | 32.75% | 230.6MiB / 1GiB | 22.52% | 170MB / 349MB | 0B / 1.72GB | 36 |
| 19 | 1793215428 | mtusi2026lab3-lb-1 | 10.94% | 27.32MiB / 128MiB | 21.35% | 629MB / 656MB | 0B / 0B | 2 |
| 20 | 1793215428 | mtusi2026lab3-valkey-1 | 2.72% | 11.18MiB / 128MiB | 8.73% | 31.6MB / 34.4MB | 0B / 623kB | 6 |
| 21 | 1793215431 | mtusi2026lab3-k6-run-b613daecac30 | 19.70% | 98.16MiB / 1GiB | 9.59% | 57.3MB / 9.38MB | 0B / 0B | 9 |
| 22 | 1793215431 | mtusi2026lab3-api-1 | 94.33% | 294.4MiB / 2GiB | 14.38% | 545MB / 768MB | 0B / 0B | 24 |
| 23 | 1793215431 | mtusi2026lab3-postgres-1 | 39.54% | 228.9MiB / 1GiB | 22.35% | 175MB / 360MB | 0B / 1.76GB | 35 |
| 24 | 1793215431 | mtusi2026lab3-lb-1 | 12.18% | 27.33MiB / 128MiB | 21.35% | 645MB / 673MB | 0B / 0B | 2 |
| 25 | 1793215431 | mtusi2026lab3-valkey-1 | 2.43% | 11.21MiB / 128MiB | 8.76% | 32.1MB / 35MB | 0B / 643kB | 6 |
| 26 | 1793215435 | mtusi2026lab3-k6-run-b613daecac30 | 20.23% | 102.7MiB / 1GiB | 10.03% | 70.6MB / 11.5MB | 0B / 0B | 9 |
| 27 | 1793215435 | mtusi2026lab3-api-1 | 90.73% | 294.8MiB / 2GiB | 14.40% | 558MB / 787MB | 0B / 0B | 24 |
| 28 | 1793215435 | mtusi2026lab3-postgres-1 | 37.67% | 230.3MiB / 1GiB | 22.49% | 180MB / 369MB | 0B / 1.8GB | 35 |
| 29 | 1793215435 | mtusi2026lab3-lb-1 | 12.30% | 27.16MiB / 128MiB | 21.22% | 662MB / 690MB | 0B / 0B | 2 |
| 30 | 1793215435 | mtusi2026lab3-valkey-1 | 2.44% | 11.21MiB / 128MiB | 8.76% | 32.9MB / 35.9MB | 0B / 643kB | 6 |
| 31 | 1793215439 | mtusi2026lab3-k6-run-b613daecac30 | 22.86% | 103.1MiB / 1GiB | 10.07% | 80.9MB / 13.2MB | 0B / 0B | 9 |
| 32 | 1793215439 | mtusi2026lab3-api-1 | 107.85% | 294.8MiB / 2GiB | 14.40% | 569MB / 802MB | 0B / 0B | 24 |
| 33 | 1793215439 | mtusi2026lab3-postgres-1 | 38.92% | 231.9MiB / 1GiB | 22.65% | 183MB / 376MB | 0B / 1.83GB | 35 |
| 34 | 1793215439 | mtusi2026lab3-lb-1 | 11.99% | 27.34MiB / 128MiB | 21.36% | 674MB / 703MB | 0B / 0B | 2 |
| 35 | 1793215439 | mtusi2026lab3-valkey-1 | 2.53% | 11.21MiB / 128MiB | 8.76% | 33.8MB / 36.9MB | 0B / 643kB | 6 |
| 36 | 1793215442 | mtusi2026lab3-k6-run-b613daecac30 | 20.05% | 106.2MiB / 1GiB | 10.37% | 93.8MB / 15.3MB | 0B / 0B | 9 |
| 37 | 1793215442 | mtusi2026lab3-api-1 | 91.47% | 294.7MiB / 2GiB | 14.39% | 583MB / 821MB | 0B / 0B | 24 |
| 38 | 1793215442 | mtusi2026lab3-postgres-1 | 36.77% | 237.8MiB / 1GiB | 23.23% | 188MB / 385MB | 0B / 1.89GB | 42 |
| 39 | 1793215442 | mtusi2026lab3-lb-1 | 11.72% | 27.32MiB / 128MiB | 21.34% | 690MB / 720MB | 0B / 0B | 2 |
| 40 | 1793215442 | mtusi2026lab3-valkey-1 | 2.50% | 11.21MiB / 128MiB | 8.76% | 34.4MB / 37.5MB | 0B / 643kB | 6 |
| 41 | 1793215445 | mtusi2026lab3-k6-run-b613daecac30 | 21.71% | 106.2MiB / 1GiB | 10.37% | 107MB / 17.5MB | 0B / 0B | 9 |
| 42 | 1793215445 | mtusi2026lab3-api-1 | 95.35% | 294.5MiB / 2GiB | 14.38% | 597MB / 841MB | 0B / 0B | 24 |
| 43 | 1793215445 | mtusi2026lab3-postgres-1 | 37.60% | 238.5MiB / 1GiB | 23.30% | 191MB / 392MB | 0B / 1.91GB | 36 |
| 44 | 1793215445 | mtusi2026lab3-lb-1 | 12.63% | 27.11MiB / 128MiB | 21.18% | 707MB / 737MB | 0B / 0B | 2 |
| 45 | 1793215445 | mtusi2026lab3-valkey-1 | 3.09% | 11.21MiB / 128MiB | 8.76% | 35.4MB / 38.6MB | 0B / 643kB | 6 |
| 46 | 1793215449 | mtusi2026lab3-k6-run-b613daecac30 | 23.66% | 105.4MiB / 1GiB | 10.29% | 119MB / 19.3MB | 0B / 0B | 9 |
| 47 | 1793215449 | mtusi2026lab3-api-1 | 111.61% | 294.5MiB / 2GiB | 14.38% | 608MB / 858MB | 0B / 0B | 24 |
| 48 | 1793215449 | mtusi2026lab3-postgres-1 | 41.04% | 241MiB / 1GiB | 23.54% | 196MB / 402MB | 0B / 1.96GB | 36 |
| 49 | 1793215449 | mtusi2026lab3-lb-1 | 12.53% | 27.15MiB / 128MiB | 21.21% | 721MB / 752MB | 0B / 0B | 2 |
| 50 | 1793215449 | mtusi2026lab3-valkey-1 | 2.57% | 11.45MiB / 128MiB | 8.94% | 36.1MB / 39.4MB | 0B / 643kB | 6 |
| 51 | 1793215452 | mtusi2026lab3-k6-run-b613daecac30 | 21.35% | 113.2MiB / 1GiB | 11.05% | 132MB / 21.4MB | 0B / 0B | 9 |
| 52 | 1793215452 | mtusi2026lab3-api-1 | 98.47% | 294.5MiB / 2GiB | 14.38% | 622MB / 877MB | 0B / 0B | 24 |
| 53 | 1793215452 | mtusi2026lab3-postgres-1 | 43.28% | 242.5MiB / 1GiB | 23.69% | 199MB / 409MB | 0B / 1.98GB | 36 |
| 54 | 1793215452 | mtusi2026lab3-lb-1 | 12.51% | 27.11MiB / 128MiB | 21.18% | 738MB / 769MB | 0B / 0B | 2 |
| 55 | 1793215452 | mtusi2026lab3-valkey-1 | 2.53% | 11.2MiB / 128MiB | 8.75% | 36.9MB / 40.3MB | 0B / 643kB | 6 |