Files
mtusi2026lab2/evidence/stack.txt
T
ArtyomandClaude Opus 5.5 a55bc716c4 Record level 3 evidence and fill in the report
Every grade 3 item of lab 5 is proven on a stand raised from empty
volumes at fe26938: the public smoke passes with 202 queued and a real
256x160 JPEG thumbnail; the suite runs its six grade 3 scenarios and
eight invariants green, including worker down with both API replicas,
the relay and the broker restarted while the job stays in the queue,
a redelivered finished job that changes nothing, an S3 outage that
recovers on attempt 2 and five transient failures that end in
retry_exhausted; the stand evidence shows the queued job with
delivery mode 2, the job id as message id and exactly the contract
fields, 409 before ready and a clean SIGTERM of the relay and the
worker; persistence restarts all eight services with their volumes,
failover keeps 134 writes without errors, and the lab 4 scenarios,
S3 checks, upload faults and container policy still pass.

The report describes the clean clone start, the processes and the
source of truth, what is stored at the moment of 202, the outbox and
relay, the claim, fencing and ack order of the worker, the retry
policy, the failure windows, the broker topology and permissions, the
roles table and the mapping of .env.example.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 01:31:07 +03:00

40 lines
2.5 KiB
Plaintext

date: 2026-10-28T22:23:55Z commit: fe26938
$ docker compose --env-file .env config --quiet && echo valid
valid
$ docker compose ps --format '{{.Service}} {{.Name}} {{.Status}} {{.Ports}}'
api mtusi2026lab5-api-1 Up 45 seconds (healthy)
api mtusi2026lab5-api-2 Up 42 seconds (healthy)
broker mtusi2026lab5-broker-1 Up About a minute (healthy) 127.0.0.1:25672->15672/tcp
lb mtusi2026lab5-lb-1 Up About a minute (healthy) 127.0.0.1:18085->8080/tcp, 127.0.0.1:25085->8404/tcp
postgres mtusi2026lab5-postgres-1 Up About a minute (healthy)
relay mtusi2026lab5-relay-1 Up About a minute (healthy)
s3 mtusi2026lab5-s3-1 Up About a minute (healthy)
valkey mtusi2026lab5-valkey-1 Up About a minute (healthy)
worker mtusi2026lab5-worker-1 Up About a minute (healthy)
$ docker compose config | grep -c container_name
0
$ docker port <каждая реплика api> # реплики не публикуют порт
6f688eb249b1: []
db66b246dcf8: []
$ docker inspect: hostname = X-Instance-Id, сети, лимиты CPU (nano) и памяти
api 6f688eb249b1 /mtusi2026lab5-api-1 nets=mtusi2026lab5_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
api db66b246dcf8 /mtusi2026lab5-api-2 nets=mtusi2026lab5_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
broker broker /mtusi2026lab5-broker-1 nets=mtusi2026lab5_backend,mtusi2026lab5_edge, cpus=1000000000 mem=536870912 user=100:101 ro=true
lb d708a0029059 /mtusi2026lab5-lb-1 nets=mtusi2026lab5_backend,mtusi2026lab5_edge, cpus=1000000000 mem=134217728 user=haproxy ro=true
postgres e7a6e449eabf /mtusi2026lab5-postgres-1 nets=mtusi2026lab5_backend, cpus=2000000000 mem=1073741824 user=70:70 ro=false
relay 0885d6359cd9 /mtusi2026lab5-relay-1 nets=mtusi2026lab5_backend, cpus=500000000 mem=201326592 user=10001:10001 ro=true
s3 b4c9e833e654 /mtusi2026lab5-s3-1 nets=mtusi2026lab5_backend, cpus=1000000000 mem=536870912 user=rustfs ro=true
valkey 49888ec3e02e /mtusi2026lab5-valkey-1 nets=mtusi2026lab5_backend, cpus=500000000 mem=134217728 user=999:1000 ro=false
worker 7ad814af7027 /mtusi2026lab5-worker-1 nets=mtusi2026lab5_backend, cpus=2000000000 mem=805306368 user=10001:10001 ro=true
$ curl LB stats: backend api, server status check
api1 UP L7OK 200
api2 UP L7OK 200
BACKEND UP
$ for i in 1..6: curl -D - http://127.0.0.1:18085/health/live | X-Instance-Id
x-instance-id: 6f688eb249b1
x-instance-id: db66b246dcf8
x-instance-id: 6f688eb249b1
x-instance-id: db66b246dcf8
x-instance-id: 6f688eb249b1
x-instance-id: db66b246dcf8