Files
mtusi2026lab2/evidence/track1/host.txt
T
ArtyomandClaude Opus 5.5 be19abf364 Record the fixed budget series of track 1
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
2026-10-29 00:31:43 +03:00

57 lines
3.3 KiB
Plaintext

date: 2026-10-28T19:18:17Z commit: 67f6d68
host: Apple M4 Max, 16 CPU, macOS 15.1
docker: 28.3.2, compose 2.38.2-desktop.1, VM 16 CPU, 8217190400 bytes
$ docker stats --no-stream --all # every container on the host, before the series
NAME CPU % MEM USAGE / LIMIT PIDS
mtusi2026lab4-api-1 11.89% 180.2MiB / 512MiB 13
mtusi2026lab4-api-2 11.69% 178.4MiB / 512MiB 13
mtusi2026lab4-migrate-1 0.00% 0B / 0B 0
mtusi2026lab4-s3-init-1 0.00% 0B / 0B 0
mtusi2026lab4-postgres-1 0.14% 44.02MiB / 1GiB 10
mtusi2026lab4-lb-1 1.24% 24.59MiB / 128MiB 17
mtusi2026lab4-valkey-1 1.46% 13.01MiB / 128MiB 6
mtusi2026lab4-s3-1 0.04% 79.51MiB / 512MiB 14
mtusi2026lab3-api-2 0.92% 205.7MiB / 1GiB 13
mtusi2026lab3-api-1 0.92% 205.5MiB / 1GiB 13
mtusi2026lab3-migrate-1 0.00% 0B / 0B 0
mtusi2026lab3-postgres-1 1.40% 348.5MiB / 1GiB 38
mtusi2026lab3-lb-1 0.94% 19.41MiB / 128MiB 2
mtusi2026lab3-valkey-1 1.34% 11.16MiB / 128MiB 6
infra-tsvision-backend-1 0.00% 0B / 0B 0
infra-tsvision-consumer-1 0.00% 0B / 0B 0
infra-minio-init-1 0.00% 0B / 0B 0
infra-postgres-1 0.00% 0B / 0B 0
infra-rabbitmq-1 0.00% 0B / 0B 0
infra-minio-1 0.00% 0B / 0B 0
infra-mediamtx-1 0.00% 0B / 0B 0
infra-dragonfly-1 0.00% 0B / 0B 0
boring_merkle 0.00% 0B / 0B 0
infallible_solomon 0.00% 0B / 0B 0
friendly_goldwasser 0.00% 0B / 0B 0
magical_noether 0.00% 0B / 0B 0
postgres 0.00% 0B / 0B 0
main_postgres 0.00% 0B / 0B 0
fulfilment-backend 0.00% 0B / 0B 0
$ docker ps --format '{{.Names}} {{.Image}} {{.Status}}'
mtusi2026lab4-api-1 mtusi-messenger:lab4 Up 32 minutes (healthy)
mtusi2026lab4-api-2 mtusi-messenger:lab4 Up 32 minutes (healthy)
mtusi2026lab4-postgres-1 postgres:17.11-alpine Up 32 minutes (healthy)
mtusi2026lab4-lb-1 haproxy:3.2.26-alpine Up 32 minutes (healthy)
mtusi2026lab4-valkey-1 valkey/valkey:8.1.11-alpine Up 32 minutes (healthy)
mtusi2026lab4-s3-1 rustfs/rustfs:1.0.4 Up 32 minutes (healthy)
mtusi2026lab3-api-2 mtusi-messenger:lab3 Up About an hour (healthy)
mtusi2026lab3-api-1 mtusi-messenger:lab3 Up About an hour (healthy)
mtusi2026lab3-postgres-1 postgres:17.11-alpine Up About an hour (healthy)
mtusi2026lab3-lb-1 haproxy:3.2.26-alpine Up About an hour (healthy)
mtusi2026lab3-valkey-1 valkey/valkey:8.1.11-alpine Up About an hour (healthy)
$ docker compose --profile bench config --images
grafana/k6:2.3.0@sha256:2dd4756ec6e14e62778916e1eb850108e4b499304c02df56760fa0bdb0fba0b8
haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b
mtusi-messenger:lab3
mtusi-messenger:lab3
postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b
valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a