Save sanitized outputs from a stand started from a clean state: the clean clone run, smoke through the balancer, the stack view with the replica hostnames, ports, networks, limits and the balancer server states, the probe with two replicas behind one token and the eight way race on one key, a failover run for each replica with the container left exited and its graceful shutdown log, the hook negative cases and the balancer answer without replicas, the persistence run with StartedAt of every container before and after, schema, migration rerun, KDF prefix, ignore rules, own tests and the lab 2 stack fault tests through the balancer, plus the environment. The report covers the clean clone start, the architecture, the X-Instance-Id and idempotency decisions, the balancer settings, the role to service table, the mapping of .env.example to the real variables, one evidence row per level 3 criterion and the carried lab 2 minimum, and the failure table for level 3. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
31 lines
1.7 KiB
Plaintext
31 lines
1.7 KiB
Plaintext
date: 2026-10-28T08:48:39Z commit: 0796e29
|
|
$ docker compose --env-file .env config --quiet && echo valid
|
|
valid
|
|
$ docker compose ps --format '{{.Service}} {{.Name}} {{.Status}} {{.Ports}}'
|
|
api mtusi2026lab3-api-1 Up 8 seconds (healthy)
|
|
api mtusi2026lab3-api-2 Up 8 seconds (healthy)
|
|
lb mtusi2026lab3-lb-1 Up About a minute (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
|
|
postgres mtusi2026lab3-postgres-1 Up About a minute (healthy)
|
|
valkey mtusi2026lab3-valkey-1 Up About a minute (healthy)
|
|
$ docker compose config | grep -c container_name
|
|
0
|
|
$ docker compose port api 8080 # реплики не публикуют порт
|
|
no port 8080/tcp for container mtusi2026lab3-api-1:
|
|
$ docker inspect: hostname = X-Instance-Id, сети, лимиты CPU (nano) и памяти
|
|
api 302cfee8f673 /mtusi2026lab3-api-1 nets=mtusi2026lab3_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
|
|
api b582bd503bdd /mtusi2026lab3-api-2 nets=mtusi2026lab3_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
|
|
lb 10cd61cb6cc5 /mtusi2026lab3-lb-1 nets=mtusi2026lab3_backend,mtusi2026lab3_edge, cpus=1000000000 mem=134217728 user=haproxy ro=true
|
|
postgres f06fc06e6824 /mtusi2026lab3-postgres-1 nets=mtusi2026lab3_backend, cpus=2000000000 mem=1073741824 user=70:70 ro=false
|
|
valkey 5f8773e8a7ad /mtusi2026lab3-valkey-1 nets=mtusi2026lab3_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:18083/health/live | X-Instance-Id
|
|
x-instance-id: 302cfee8f673
|
|
x-instance-id: b582bd503bdd
|
|
x-instance-id: 302cfee8f673
|
|
x-instance-id: b582bd503bdd
|
|
x-instance-id: 302cfee8f673
|
|
x-instance-id: b582bd503bdd
|