Files
mtusi2026lab2/evidence/stack.txt
T
ArtyomandClaude Opus 5.5 db901d6401 Record level 3 evidence and fill in the report
Evidence comes from the stand started from an empty state and from a
fresh clone: the public smoke, the contract checks, lint and 325 own
tests, the storage layout with an out-of-API comparison of a stored
object against its metadata, failover of each replica under writes, the
upload failover scenario, persistence with StartedAt of every service
including S3, the S3 outage scenario and 22 S3 privacy and bootstrap
checks. The storage evidence script now covers the attachment tables
and the S3 secrets.

REPORT.md follows the lab 4 template: launch from a clean clone,
architecture with the source of truth for each fact, the write order
between PostgreSQL and S3 and what each failure leaves behind, where
each upload limit applies, roles and services, the .env.example
mapping, grade 3 rows and the grade 3 failure table. The design notes
the botocore Expect header that hung uploads behind the port proxy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 22:20:10 +03:00

34 lines
1.9 KiB
Plaintext

date: 2026-10-28T18:08:00Z commit: 24f9d61
$ docker compose --env-file .env config --quiet && echo valid
valid
$ docker compose ps --format '{{.Service}} {{.Name}} {{.Status}} {{.Ports}}'
api mtusi2026lab4-api-1 Up 16 minutes (healthy)
api mtusi2026lab4-api-2 Up 16 minutes (healthy)
lb mtusi2026lab4-lb-1 Up 16 minutes (healthy) 127.0.0.1:18084->8080/tcp, 127.0.0.1:24084->8404/tcp
postgres mtusi2026lab4-postgres-1 Up 16 minutes (healthy)
s3 mtusi2026lab4-s3-1 Up 16 minutes (healthy)
valkey mtusi2026lab4-valkey-1 Up 16 minutes (healthy)
$ docker compose config | grep -c container_name
0
$ docker port <каждая реплика api> # реплики не публикуют порт
196b3a876d81: []
8bd1d38428d0: []
$ docker inspect: hostname = X-Instance-Id, сети, лимиты CPU (nano) и памяти
api 196b3a876d81 /mtusi2026lab4-api-1 nets=mtusi2026lab4_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
api 8bd1d38428d0 /mtusi2026lab4-api-2 nets=mtusi2026lab4_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
lb 5ee5dad8003c /mtusi2026lab4-lb-1 nets=mtusi2026lab4_backend,mtusi2026lab4_edge, cpus=1000000000 mem=134217728 user=haproxy ro=true
postgres b6579b111fba /mtusi2026lab4-postgres-1 nets=mtusi2026lab4_backend, cpus=2000000000 mem=1073741824 user=70:70 ro=false
s3 b6098ae6a07c /mtusi2026lab4-s3-1 nets=mtusi2026lab4_backend, cpus=1000000000 mem=536870912 user=rustfs ro=true
valkey fb5b482d1d20 /mtusi2026lab4-valkey-1 nets=mtusi2026lab4_backend, cpus=500000000 mem=134217728 user=999:1000 ro=false
$ 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:18084/health/live | X-Instance-Id
x-instance-id: 8bd1d38428d0
x-instance-id: 196b3a876d81
x-instance-id: 8bd1d38428d0
x-instance-id: 196b3a876d81
x-instance-id: 8bd1d38428d0
x-instance-id: 196b3a876d81