forked from mtusi2026/mtusi2026lab3
Evidence from a freshly recreated stand at the current code: the four detection cases with their declared maxima, failover-each for both replicas under k6 at 100 rps (no errors, no balancer retries, the stopped replica never served during its outage), the 20 round same-key race, the limits and isolation check with a run against deliberate violations, and two rolling updates under load: from the level 3 image, where the old replicas without a drain window caused 54 redispatches and 2 response errors that the balancer retried, and between two current builds with all counters at zero. Level 3 runs are refreshed on the new code: smoke, stack view, both failovers with the drain sequence in the replica log, hooks with the longer stop, persistence, stack fault tests and own tests with the shutdown and timeout chain output. The report gains the shutdown order, the check period and worst detection per failure with measurements, the timeout chain, rows 4.1 to 4.4, level 4 rows of the failure table, the k6 role, the new variables and the updated limitations; AGENTS.md lists the commands. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
date: 2026-10-28T16:53:56Z commit: e00eb6c
|
|
host: Apple M4 Max, 16 CPU, 48 GiB RAM, macOS 15.1
|
|
docker: 28.3.2, VM: 16 CPU, 8217190400 bytes
|
|
compose: 2.38.2-desktop.1
|
|
images:
|
|
image: ${API_IMAGE:-mtusi-messenger:lab3}
|
|
image: haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b
|
|
image: postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b
|
|
image: valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a
|
|
image: grafana/k6:2.3.0@sha256:2dd4756ec6e14e62778916e1eb850108e4b499304c02df56760fa0bdb0fba0b8
|
|
FROM python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d AS builder
|
|
COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
|
FROM python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d AS runtime
|
|
python in image: Python 3.14.7
|
|
haproxy: HAProxy version 3.2.26-3e0f11a 2026/10/14 - https://haproxy.org/
|
|
packages (uv.lock):
|
|
fastapi 0.141.1
|
|
uvicorn 0.54.0
|
|
uvicorn-worker 0.4.0
|
|
gunicorn 26.2.0
|
|
asyncpg 0.32.0
|
|
argon2-cffi 25.1.0
|
|
pydantic 2.13.5
|
|
pydantic-settings 2.15.0
|
|
dishka 1.10.1
|
|
structlog 26.1.0
|
|
redis 8.1.0
|
|
process users (service uid command):
|
|
api 10001 python
|
|
lb 99 haproxy
|
|
postgres 70 postgres
|
|
valkey 999 tini
|
|
valkey 999 valkey-server
|