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.3 KiB
6.3 KiB
| 1 | ts | name | cpu_pct | mem_usage | mem_pct | net_io | block_io | pids |
|---|---|---|---|---|---|---|---|---|
| 2 | 1793216416 | mtusi2026lab3-api-1 | 50.10% | 186.8MiB / 1GiB | 18.24% | 247MB / 348MB | 0B / 0B | 13 |
| 3 | 1793216416 | mtusi2026lab3-api-2 | 50.85% | 183.8MiB / 1GiB | 17.95% | 248MB / 350MB | 0B / 0B | 13 |
| 4 | 1793216416 | mtusi2026lab3-postgres-1 | 37.17% | 206.1MiB / 1GiB | 20.12% | 159MB / 328MB | 86kB / 1.62GB | 31 |
| 5 | 1793216416 | mtusi2026lab3-lb-1 | 12.03% | 13.64MiB / 128MiB | 10.66% | 587MB / 612MB | 0B / 0B | 2 |
| 6 | 1793216416 | mtusi2026lab3-valkey-1 | 2.99% | 11.03MiB / 128MiB | 8.62% | 29.2MB / 32MB | 0B / 606kB | 6 |
| 7 | 1793216420 | mtusi2026lab3-k6-run-3eab4d7e193c | 28.17% | 89.4MiB / 1GiB | 8.73% | 13.7MB / 2.33MB | 0B / 0B | 8 |
| 8 | 1793216420 | mtusi2026lab3-api-1 | 51.37% | 187.7MiB / 1GiB | 18.33% | 254MB / 358MB | 0B / 0B | 13 |
| 9 | 1793216420 | mtusi2026lab3-api-2 | 51.81% | 184.8MiB / 1GiB | 18.05% | 255MB / 360MB | 0B / 0B | 13 |
| 10 | 1793216420 | mtusi2026lab3-postgres-1 | 40.51% | 233.9MiB / 1GiB | 22.84% | 164MB / 337MB | 86kB / 1.65GB | 38 |
| 11 | 1793216420 | mtusi2026lab3-lb-1 | 11.84% | 16.59MiB / 128MiB | 12.96% | 604MB / 629MB | 0B / 0B | 2 |
| 12 | 1793216420 | mtusi2026lab3-valkey-1 | 3.03% | 11.05MiB / 128MiB | 8.63% | 30MB / 32.9MB | 0B / 606kB | 6 |
| 13 | 1793216423 | mtusi2026lab3-k6-run-3eab4d7e193c | 20.72% | 89.66MiB / 1GiB | 8.76% | 30.8MB / 5MB | 0B / 0B | 9 |
| 14 | 1793216423 | mtusi2026lab3-api-1 | 66.70% | 187.7MiB / 1GiB | 18.33% | 261MB / 368MB | 0B / 0B | 13 |
| 15 | 1793216423 | mtusi2026lab3-api-2 | 67.68% | 184.8MiB / 1GiB | 18.05% | 262MB / 369MB | 0B / 0B | 13 |
| 16 | 1793216423 | mtusi2026lab3-postgres-1 | 42.54% | 236.4MiB / 1GiB | 23.08% | 168MB / 346MB | 86kB / 1.71GB | 38 |
| 17 | 1793216423 | mtusi2026lab3-lb-1 | 12.12% | 16.53MiB / 128MiB | 12.92% | 616MB / 642MB | 0B / 0B | 2 |
| 18 | 1793216423 | mtusi2026lab3-valkey-1 | 2.68% | 11.15MiB / 128MiB | 8.71% | 30.8MB / 33.8MB | 0B / 631kB | 6 |
| 19 | 1793216427 | mtusi2026lab3-k6-run-3eab4d7e193c | 22.11% | 98.56MiB / 1GiB | 9.62% | 42MB / 6.82MB | 0B / 0B | 9 |
| 20 | 1793216427 | mtusi2026lab3-api-1 | 48.69% | 188MiB / 1GiB | 18.36% | 267MB / 376MB | 0B / 0B | 13 |
| 21 | 1793216427 | mtusi2026lab3-api-2 | 48.56% | 185.1MiB / 1GiB | 18.08% | 268MB / 378MB | 0B / 0B | 13 |
| 22 | 1793216427 | mtusi2026lab3-postgres-1 | 35.23% | 238.2MiB / 1GiB | 23.26% | 172MB / 354MB | 86kB / 1.74GB | 38 |
| 23 | 1793216427 | mtusi2026lab3-lb-1 | 11.84% | 15.56MiB / 128MiB | 12.16% | 634MB / 661MB | 0B / 0B | 2 |
| 24 | 1793216427 | mtusi2026lab3-valkey-1 | 2.90% | 11.16MiB / 128MiB | 8.72% | 31.5MB / 34.5MB | 0B / 631kB | 6 |
| 25 | 1793216430 | mtusi2026lab3-k6-run-3eab4d7e193c | 20.78% | 100.1MiB / 1GiB | 9.78% | 55.3MB / 8.93MB | 0B / 0B | 9 |
| 26 | 1793216430 | mtusi2026lab3-api-1 | 52.27% | 187.7MiB / 1GiB | 18.33% | 274MB / 386MB | 0B / 0B | 13 |
| 27 | 1793216430 | mtusi2026lab3-api-2 | 53.02% | 185.1MiB / 1GiB | 18.08% | 274MB / 387MB | 0B / 0B | 13 |
| 28 | 1793216430 | mtusi2026lab3-postgres-1 | 41.25% | 240.3MiB / 1GiB | 23.46% | 176MB / 363MB | 86kB / 1.78GB | 38 |
| 29 | 1793216430 | mtusi2026lab3-lb-1 | 12.23% | 15.32MiB / 128MiB | 11.97% | 650MB / 678MB | 0B / 0B | 2 |
| 30 | 1793216430 | mtusi2026lab3-valkey-1 | 2.72% | 11.16MiB / 128MiB | 8.72% | 32.1MB / 35.2MB | 0B / 631kB | 6 |
| 31 | 1793216434 | mtusi2026lab3-k6-run-3eab4d7e193c | 21.28% | 100.1MiB / 1GiB | 9.78% | 68MB / 11MB | 0B / 0B | 9 |
| 32 | 1793216434 | mtusi2026lab3-api-1 | 53.99% | 187.8MiB / 1GiB | 18.34% | 281MB / 395MB | 0B / 0B | 13 |
| 33 | 1793216434 | mtusi2026lab3-api-2 | 54.80% | 184.9MiB / 1GiB | 18.06% | 281MB / 397MB | 0B / 0B | 13 |
| 34 | 1793216434 | mtusi2026lab3-postgres-1 | 43.47% | 231.5MiB / 1GiB | 22.60% | 180MB / 372MB | 86kB / 1.82GB | 35 |
| 35 | 1793216434 | mtusi2026lab3-lb-1 | 12.70% | 14.68MiB / 128MiB | 11.47% | 666MB / 694MB | 0B / 0B | 2 |
| 36 | 1793216434 | mtusi2026lab3-valkey-1 | 3.50% | 11.15MiB / 128MiB | 8.71% | 32.9MB / 36MB | 0B / 631kB | 6 |
| 37 | 1793216438 | mtusi2026lab3-k6-run-3eab4d7e193c | 25.07% | 100.1MiB / 1GiB | 9.78% | 81MB / 13.2MB | 0B / 0B | 9 |
| 38 | 1793216438 | mtusi2026lab3-api-1 | 58.28% | 187.7MiB / 1GiB | 18.33% | 287MB / 405MB | 0B / 0B | 13 |
| 39 | 1793216438 | mtusi2026lab3-api-2 | 58.86% | 185.1MiB / 1GiB | 18.07% | 288MB / 406MB | 0B / 0B | 13 |
| 40 | 1793216438 | mtusi2026lab3-postgres-1 | 44.37% | 233.9MiB / 1GiB | 22.84% | 185MB / 381MB | 86kB / 1.88GB | 35 |
| 41 | 1793216438 | mtusi2026lab3-lb-1 | 12.89% | 14.89MiB / 128MiB | 11.64% | 682MB / 711MB | 0B / 0B | 2 |
| 42 | 1793216438 | mtusi2026lab3-valkey-1 | 3.17% | 11.19MiB / 128MiB | 8.74% | 33.7MB / 36.9MB | 0B / 651kB | 6 |
| 43 | 1793216441 | mtusi2026lab3-k6-run-3eab4d7e193c | 20.83% | 102.2MiB / 1GiB | 9.98% | 91.8MB / 14.9MB | 0B / 0B | 9 |
| 44 | 1793216441 | mtusi2026lab3-api-1 | 52.34% | 187.8MiB / 1GiB | 18.34% | 293MB / 413MB | 0B / 0B | 13 |
| 45 | 1793216441 | mtusi2026lab3-api-2 | 53.30% | 185.1MiB / 1GiB | 18.07% | 294MB / 414MB | 0B / 0B | 13 |
| 46 | 1793216441 | mtusi2026lab3-postgres-1 | 41.27% | 235.5MiB / 1GiB | 22.99% | 188MB / 388MB | 86kB / 1.91GB | 35 |
| 47 | 1793216441 | mtusi2026lab3-lb-1 | 12.15% | 14.4MiB / 128MiB | 11.25% | 696MB / 725MB | 0B / 0B | 2 |
| 48 | 1793216441 | mtusi2026lab3-valkey-1 | 3.11% | 11.19MiB / 128MiB | 8.74% | 34.5MB / 37.9MB | 0B / 651kB | 6 |
| 49 | 1793216444 | mtusi2026lab3-k6-run-3eab4d7e193c | 25.22% | 102.2MiB / 1GiB | 9.98% | 105MB / 17MB | 0B / 0B | 9 |
| 50 | 1793216444 | mtusi2026lab3-api-1 | 67.87% | 188MiB / 1GiB | 18.36% | 300MB / 422MB | 0B / 0B | 13 |
| 51 | 1793216444 | mtusi2026lab3-api-2 | 68.99% | 185.3MiB / 1GiB | 18.10% | 300MB / 424MB | 0B / 0B | 13 |
| 52 | 1793216444 | mtusi2026lab3-postgres-1 | 51.29% | 237.2MiB / 1GiB | 23.16% | 192MB / 395MB | 86kB / 1.94GB | 35 |
| 53 | 1793216444 | mtusi2026lab3-lb-1 | 15.11% | 14.41MiB / 128MiB | 11.26% | 712MB / 742MB | 0B / 0B | 2 |
| 54 | 1793216444 | mtusi2026lab3-valkey-1 | 3.86% | 11.19MiB / 128MiB | 8.74% | 35.3MB / 38.7MB | 0B / 651kB | 6 |
| 55 | 1793216448 | mtusi2026lab3-k6-run-3eab4d7e193c | 20.66% | 102.2MiB / 1GiB | 9.98% | 117MB / 19.1MB | 0B / 0B | 9 |
| 56 | 1793216448 | mtusi2026lab3-api-1 | 51.91% | 188MiB / 1GiB | 18.36% | 306MB / 432MB | 0B / 0B | 13 |
| 57 | 1793216448 | mtusi2026lab3-api-2 | 52.14% | 185.1MiB / 1GiB | 18.07% | 307MB / 433MB | 0B / 0B | 13 |
| 58 | 1793216448 | mtusi2026lab3-postgres-1 | 42.07% | 239.5MiB / 1GiB | 23.39% | 196MB / 403MB | 86kB / 1.98GB | 35 |
| 59 | 1793216448 | mtusi2026lab3-lb-1 | 11.53% | 14.43MiB / 128MiB | 11.27% | 727MB / 758MB | 0B / 0B | 2 |
| 60 | 1793216448 | mtusi2026lab3-valkey-1 | 2.50% | 11.17MiB / 128MiB | 8.72% | 36.1MB / 39.6MB | 0B / 651kB | 6 |
| 61 | 1793216452 | mtusi2026lab3-k6-run-3eab4d7e193c | 21.09% | 102.2MiB / 1GiB | 9.98% | 129MB / 21MB | 0B / 0B | 9 |
| 62 | 1793216452 | mtusi2026lab3-api-1 | 53.19% | 188.1MiB / 1GiB | 18.36% | 312MB / 440MB | 0B / 0B | 13 |
| 63 | 1793216452 | mtusi2026lab3-api-2 | 53.62% | 185.3MiB / 1GiB | 18.10% | 313MB / 441MB | 0B / 0B | 13 |
| 64 | 1793216452 | mtusi2026lab3-postgres-1 | 41.52% | 237.9MiB / 1GiB | 23.23% | 201MB / 414MB | 86kB / 2.02GB | 34 |
| 65 | 1793216452 | mtusi2026lab3-lb-1 | 12.11% | 14.59MiB / 128MiB | 11.40% | 742MB / 773MB | 0B / 0B | 2 |
| 66 | 1793216452 | mtusi2026lab3-valkey-1 | 3.22% | 11.17MiB / 128MiB | 8.73% | 36.8MB / 40.4MB | 0B / 651kB | 6 |
| 67 | 1793216455 | mtusi2026lab3-k6-run-3eab4d7e193c | 21.26% | 102.7MiB / 1GiB | 10.03% | 142MB / 23MB | 0B / 0B | 9 |
| 68 | 1793216455 | mtusi2026lab3-api-1 | 46.51% | 187.8MiB / 1GiB | 18.34% | 319MB / 449MB | 0B / 0B | 13 |
| 69 | 1793216455 | mtusi2026lab3-api-2 | 47.63% | 184.9MiB / 1GiB | 18.05% | 320MB / 451MB | 0B / 0B | 13 |
| 70 | 1793216455 | mtusi2026lab3-postgres-1 | 36.28% | 250.4MiB / 1GiB | 24.46% | 205MB / 423MB | 86kB / 2.07GB | 37 |
| 71 | 1793216455 | mtusi2026lab3-lb-1 | 13.33% | 14.37MiB / 128MiB | 11.23% | 754MB / 785MB | 0B / 0B | 2 |
| 72 | 1793216455 | mtusi2026lab3-valkey-1 | 2.90% | 11.41MiB / 128MiB | 8.91% | 37.6MB / 41.2MB | 0B / 651kB | 6 |