lab4: S3 вложения, compose-стенд, evidence и отчёт

This commit is contained in:
Conloty
2026-11-15 03:48:27 +03:00
parent ec540a1a72
commit 7022b7493d
38 changed files with 4343 additions and 14 deletions
+16
View File
@@ -0,0 +1,16 @@
# 09 недоступность PostgreSQL (2026-11-14T11:02:48Z)
$ docker compose stop postgres
Container mtusi-lab4-postgres-1 Stopping
Container mtusi-lab4-postgres-1 Stopped
GET /health/ready (через LB) -> 503 (все backend не готовы, LB отвечает 503)
GET /api/v1/users/me -> 503
$ docker compose start postgres
Container mtusi-lab4-postgres-1 Starting
Container mtusi-lab4-postgres-1 Started
ready и 2 реплики снова через 4 с
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi-lab4-api-1 mtusi-lab4-api:1 "uvicorn app.main:ap…" api 3 minutes ago Up 34 seconds (healthy) 8080/tcp
mtusi-lab4-api-2 mtusi-lab4-api:1 "uvicorn app.main:ap…" api 3 minutes ago Up 34 seconds (healthy) 8080/tcp
mtusi-lab4-lb-1 haproxy:2.8.10-alpine "docker-entrypoint.s…" lb 3 minutes ago Up 34 seconds (healthy) 127.0.0.1:8080->8080/tcp
mtusi-lab4-postgres-1 postgres:16.4-alpine "docker-entrypoint.s…" postgres 3 minutes ago Up 3 seconds (healthy) 5432/tcp
mtusi-lab4-s3-1 chrislusf/seaweedfs:4.42 "weed server -dir=/d…" s3 3 minutes ago Up About a minute (healthy) 7333/tcp, 8080/tcp, 8333/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp