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 | 1793216463 | mtusi2026lab3-api-1 | 47.45% | 187.8MiB / 1GiB | 18.34% | 320MB / 450MB | 0B / 0B | 13 |
| 3 | 1793216463 | mtusi2026lab3-api-2 | 53.22% | 184.9MiB / 1GiB | 18.06% | 322MB / 454MB | 0B / 0B | 13 |
| 4 | 1793216463 | mtusi2026lab3-postgres-1 | 40.21% | 255.7MiB / 1GiB | 24.97% | 207MB / 426MB | 86kB / 2.09GB | 38 |
| 5 | 1793216463 | mtusi2026lab3-lb-1 | 12.53% | 14.57MiB / 128MiB | 11.39% | 764MB / 796MB | 0B / 0B | 2 |
| 6 | 1793216463 | mtusi2026lab3-valkey-1 | 3.16% | 11.2MiB / 128MiB | 8.75% | 37.9MB / 41.6MB | 0B / 729kB | 6 |
| 7 | 1793216467 | mtusi2026lab3-k6-run-aae90df9a19f | 20.51% | 87.54MiB / 1GiB | 8.55% | 17.5MB / 3MB | 0B / 0B | 9 |
| 8 | 1793216467 | mtusi2026lab3-api-1 | 52.38% | 188.1MiB / 1GiB | 18.37% | 328MB / 462MB | 0B / 0B | 13 |
| 9 | 1793216467 | mtusi2026lab3-api-2 | 52.46% | 184.9MiB / 1GiB | 18.06% | 329MB / 464MB | 0B / 0B | 13 |
| 10 | 1793216467 | mtusi2026lab3-postgres-1 | 40.34% | 257.9MiB / 1GiB | 25.19% | 211MB / 435MB | 86kB / 2.13GB | 38 |
| 11 | 1793216467 | mtusi2026lab3-lb-1 | 12.11% | 14.57MiB / 128MiB | 11.38% | 780MB / 812MB | 0B / 0B | 2 |
| 12 | 1793216467 | mtusi2026lab3-valkey-1 | 2.52% | 11.2MiB / 128MiB | 8.75% | 38.5MB / 42.2MB | 0B / 729kB | 6 |
| 13 | 1793216470 | mtusi2026lab3-k6-run-aae90df9a19f | 20.61% | 89.66MiB / 1GiB | 8.76% | 30.7MB / 5.1MB | 0B / 0B | 9 |
| 14 | 1793216470 | mtusi2026lab3-api-1 | 53.80% | 188.1MiB / 1GiB | 18.37% | 335MB / 472MB | 0B / 0B | 13 |
| 15 | 1793216470 | mtusi2026lab3-api-2 | 53.80% | 184.9MiB / 1GiB | 18.06% | 336MB / 474MB | 0B / 0B | 13 |
| 16 | 1793216470 | mtusi2026lab3-postgres-1 | 42.44% | 260MiB / 1GiB | 25.39% | 215MB / 444MB | 86kB / 2.17GB | 38 |
| 17 | 1793216470 | mtusi2026lab3-lb-1 | 12.39% | 14.34MiB / 128MiB | 11.20% | 791MB / 824MB | 0B / 0B | 2 |
| 18 | 1793216470 | mtusi2026lab3-valkey-1 | 2.60% | 11.2MiB / 128MiB | 8.75% | 39.5MB / 43.3MB | 0B / 729kB | 6 |
| 19 | 1793216474 | mtusi2026lab3-k6-run-aae90df9a19f | 20.20% | 100.6MiB / 1GiB | 9.82% | 43.8MB / 7.22MB | 0B / 0B | 9 |
| 20 | 1793216474 | mtusi2026lab3-api-1 | 57.45% | 198.3MiB / 1GiB | 19.37% | 342MB / 482MB | 0B / 0B | 14 |
| 21 | 1793216474 | mtusi2026lab3-api-2 | 57.17% | 193.8MiB / 1GiB | 18.93% | 343MB / 483MB | 0B / 0B | 14 |
| 22 | 1793216474 | mtusi2026lab3-postgres-1 | 42.08% | 262.4MiB / 1GiB | 25.62% | 220MB / 453MB | 86kB / 2.22GB | 38 |
| 23 | 1793216474 | mtusi2026lab3-lb-1 | 11.83% | 14.57MiB / 128MiB | 11.38% | 812MB / 846MB | 0B / 0B | 2 |
| 24 | 1793216474 | mtusi2026lab3-valkey-1 | 3.26% | 11.21MiB / 128MiB | 8.76% | 40MB / 44MB | 0B / 729kB | 6 |
| 25 | 1793216478 | mtusi2026lab3-k6-run-aae90df9a19f | 21.56% | 100.1MiB / 1GiB | 9.77% | 54.5MB / 8.96MB | 0B / 0B | 9 |
| 26 | 1793216478 | mtusi2026lab3-api-1 | 52.33% | 187.8MiB / 1GiB | 18.34% | 347MB / 489MB | 0B / 0B | 13 |
| 27 | 1793216478 | mtusi2026lab3-api-2 | 52.94% | 184.9MiB / 1GiB | 18.05% | 348MB / 491MB | 0B / 0B | 13 |
| 28 | 1793216478 | mtusi2026lab3-postgres-1 | 40.85% | 264.1MiB / 1GiB | 25.80% | 223MB / 460MB | 86kB / 2.25GB | 38 |
| 29 | 1793216478 | mtusi2026lab3-lb-1 | 12.38% | 14.6MiB / 128MiB | 11.40% | 825MB / 860MB | 0B / 0B | 2 |
| 30 | 1793216478 | mtusi2026lab3-valkey-1 | 3.19% | 11.2MiB / 128MiB | 8.75% | 40.9MB / 44.9MB | 0B / 729kB | 6 |
| 31 | 1793216481 | mtusi2026lab3-k6-run-aae90df9a19f | 21.59% | 100.2MiB / 1GiB | 9.78% | 67.2MB / 11.1MB | 0B / 0B | 9 |
| 32 | 1793216481 | mtusi2026lab3-api-1 | 54.04% | 188.1MiB / 1GiB | 18.36% | 354MB / 499MB | 0B / 0B | 13 |
| 33 | 1793216481 | mtusi2026lab3-api-2 | 54.47% | 185.1MiB / 1GiB | 18.07% | 355MB / 501MB | 0B / 0B | 13 |
| 34 | 1793216481 | mtusi2026lab3-postgres-1 | 43.67% | 258.9MiB / 1GiB | 25.28% | 228MB / 469MB | 86kB / 2.29GB | 36 |
| 35 | 1793216481 | mtusi2026lab3-lb-1 | 12.64% | 14.33MiB / 128MiB | 11.20% | 841MB / 876MB | 0B / 0B | 2 |
| 36 | 1793216481 | mtusi2026lab3-valkey-1 | 3.19% | 11.21MiB / 128MiB | 8.76% | 41.5MB / 45.5MB | 0B / 729kB | 6 |
| 37 | 1793216484 | mtusi2026lab3-k6-run-aae90df9a19f | 21.22% | 100.2MiB / 1GiB | 9.78% | 77.2MB / 12.6MB | 0B / 0B | 9 |
| 38 | 1793216484 | mtusi2026lab3-api-1 | 64.10% | 200.5MiB / 1GiB | 19.58% | 361MB / 508MB | 0B / 0B | 14 |
| 39 | 1793216484 | mtusi2026lab3-api-2 | 62.78% | 197.7MiB / 1GiB | 19.31% | 362MB / 511MB | 0B / 0B | 14 |
| 40 | 1793216484 | mtusi2026lab3-postgres-1 | 40.68% | 260.9MiB / 1GiB | 25.48% | 232MB / 478MB | 86kB / 2.33GB | 36 |
| 41 | 1793216484 | mtusi2026lab3-lb-1 | 11.82% | 14.63MiB / 128MiB | 11.43% | 858MB / 893MB | 0B / 0B | 2 |
| 42 | 1793216484 | mtusi2026lab3-valkey-1 | 2.54% | 11.21MiB / 128MiB | 8.76% | 42.5MB / 46.7MB | 0B / 750kB | 6 |
| 43 | 1793216488 | mtusi2026lab3-k6-run-aae90df9a19f | 21.62% | 100.2MiB / 1GiB | 9.79% | 92.1MB / 15MB | 0B / 0B | 9 |
| 44 | 1793216488 | mtusi2026lab3-api-1 | 54.81% | 188.1MiB / 1GiB | 18.37% | 367MB / 517MB | 0B / 0B | 13 |
| 45 | 1793216488 | mtusi2026lab3-api-2 | 55.25% | 184.9MiB / 1GiB | 18.05% | 368MB / 519MB | 0B / 0B | 13 |
| 46 | 1793216488 | mtusi2026lab3-postgres-1 | 42.95% | 262.5MiB / 1GiB | 25.63% | 236MB / 486MB | 86kB / 2.36GB | 36 |
| 47 | 1793216488 | mtusi2026lab3-lb-1 | 12.97% | 14.09MiB / 128MiB | 11.01% | 872MB / 908MB | 0B / 0B | 2 |
| 48 | 1793216488 | mtusi2026lab3-valkey-1 | 3.33% | 11.2MiB / 128MiB | 8.75% | 43.2MB / 47.4MB | 0B / 750kB | 6 |
| 49 | 1793216491 | mtusi2026lab3-k6-run-aae90df9a19f | 19.63% | 100.2MiB / 1GiB | 9.79% | 105MB / 17.1MB | 0B / 0B | 9 |
| 50 | 1793216491 | mtusi2026lab3-api-1 | 47.38% | 187.9MiB / 1GiB | 18.35% | 373MB / 526MB | 0B / 0B | 13 |
| 51 | 1793216491 | mtusi2026lab3-api-2 | 47.84% | 184.9MiB / 1GiB | 18.06% | 375MB / 529MB | 0B / 0B | 13 |
| 52 | 1793216491 | mtusi2026lab3-postgres-1 | 38.20% | 264.6MiB / 1GiB | 25.84% | 239MB / 493MB | 86kB / 2.41GB | 36 |
| 53 | 1793216491 | mtusi2026lab3-lb-1 | 11.73% | 14.34MiB / 128MiB | 11.21% | 888MB / 924MB | 0B / 0B | 2 |
| 54 | 1793216491 | mtusi2026lab3-valkey-1 | 3.01% | 11.21MiB / 128MiB | 8.76% | 44MB / 48.3MB | 0B / 750kB | 6 |
| 55 | 1793216495 | mtusi2026lab3-k6-run-aae90df9a19f | 21.58% | 102.4MiB / 1GiB | 10.00% | 118MB / 19.3MB | 0B / 0B | 9 |
| 56 | 1793216495 | mtusi2026lab3-api-1 | 67.67% | 188.1MiB / 1GiB | 18.37% | 380MB / 536MB | 0B / 0B | 13 |
| 57 | 1793216495 | mtusi2026lab3-api-2 | 67.91% | 184.9MiB / 1GiB | 18.05% | 381MB / 538MB | 0B / 0B | 13 |
| 58 | 1793216495 | mtusi2026lab3-postgres-1 | 42.97% | 263.8MiB / 1GiB | 25.77% | 244MB / 504MB | 86kB / 2.46GB | 35 |
| 59 | 1793216495 | mtusi2026lab3-lb-1 | 11.95% | 14.84MiB / 128MiB | 11.59% | 899MB / 937MB | 0B / 0B | 2 |
| 60 | 1793216495 | mtusi2026lab3-valkey-1 | 2.74% | 11.2MiB / 128MiB | 8.75% | 44.8MB / 49.2MB | 0B / 750kB | 6 |
| 61 | 1793216499 | mtusi2026lab3-k6-run-aae90df9a19f | 20.34% | 102.4MiB / 1GiB | 10.00% | 128MB / 20.8MB | 0B / 0B | 9 |
| 62 | 1793216499 | mtusi2026lab3-api-1 | 52.23% | 188.1MiB / 1GiB | 18.37% | 387MB / 545MB | 0B / 0B | 13 |
| 63 | 1793216499 | mtusi2026lab3-api-2 | 52.79% | 184.9MiB / 1GiB | 18.05% | 388MB / 548MB | 0B / 0B | 13 |
| 64 | 1793216499 | mtusi2026lab3-postgres-1 | 41.89% | 265.4MiB / 1GiB | 25.92% | 249MB / 513MB | 86kB / 2.49GB | 35 |
| 65 | 1793216499 | mtusi2026lab3-lb-1 | 11.96% | 14.58MiB / 128MiB | 11.39% | 920MB / 958MB | 0B / 0B | 2 |
| 66 | 1793216499 | mtusi2026lab3-valkey-1 | 2.56% | 11.2MiB / 128MiB | 8.75% | 45.6MB / 50MB | 0B / 750kB | 6 |
| 67 | 1793216502 | mtusi2026lab3-k6-run-aae90df9a19f | 20.47% | 102.7MiB / 1GiB | 10.03% | 141MB / 23MB | 0B / 0B | 9 |
| 68 | 1793216502 | mtusi2026lab3-api-1 | 45.11% | 187.8MiB / 1GiB | 18.34% | 392MB / 553MB | 0B / 0B | 13 |
| 69 | 1793216502 | mtusi2026lab3-api-2 | 45.32% | 184.8MiB / 1GiB | 18.05% | 393MB / 555MB | 0B / 0B | 13 |
| 70 | 1793216502 | mtusi2026lab3-postgres-1 | 35.29% | 259.9MiB / 1GiB | 25.38% | 252MB / 520MB | 86kB / 2.52GB | 33 |
| 71 | 1793216502 | mtusi2026lab3-lb-1 | 10.71% | 14.05MiB / 128MiB | 10.98% | 933MB / 971MB | 0B / 0B | 2 |
| 72 | 1793216502 | mtusi2026lab3-valkey-1 | 2.78% | 11.44MiB / 128MiB | 8.94% | 46.2MB / 50.7MB | 0B / 750kB | 6 |