forked from mtusi2026/mtusi2026lab5
исправление
This commit is contained in:
+16
-16
@@ -2,17 +2,17 @@ python student-tests/check_stack.py
|
||||
docker: 29.6.2
|
||||
compose: 5.3.1
|
||||
container_name: not set for any service (replicas of one service are possible)
|
||||
api replicas running: 2 -> ['b0db3e40abfe', 'ef44b0d4c0a1'] (deploy.replicas = 2)
|
||||
api replicas running: 2 -> ['48dc392933dc', 'c1b7e1ab5673'] (deploy.replicas = 2)
|
||||
|
||||
service container cpus memory published ports networks
|
||||
worker 292a36c54a41 1.00 1024Mi - backend
|
||||
api 48dc392933dc 1.00 512Mi - backend, edge
|
||||
valkey 4e223cb9301e 0.50 128Mi - backend
|
||||
s3 892c7ca290f2 0.50 512Mi - backend
|
||||
lb 8be67a2e86b7 0.50 128Mi 127.0.0.1:8080->8080/tcp, 127.0.0.1:8081->8081/tcp, 127.0.0.1:8404->8404/tcp edge
|
||||
broker 9f909ed7ecea 1.00 512Mi - backend
|
||||
api b0db3e40abfe 1.00 512Mi - backend, edge
|
||||
api c1b7e1ab5673 1.00 512Mi - backend, edge
|
||||
postgres d2bfd48385f1 1.00 512Mi - backend
|
||||
worker d9eced386d93 1.00 1024Mi - backend
|
||||
api ef44b0d4c0a1 1.00 512Mi - backend, edge
|
||||
|
||||
published: only lb, only on 127.0.0.1 (api replicas have no ports)
|
||||
balancer: every api server is under the /health/ready check, no backup servers -> api1 UP (L7OK), api2 UP (L7OK)
|
||||
@@ -25,15 +25,15 @@ images: lb haproxy:3.2.25-alpine; api mtusi-messenger:lab5; worker mtusi-messen
|
||||
PASS: one entry point (lb on 127.0.0.1), >= 2 api replicas without ports and container_name, only ready replicas get traffic, CPU/RAM limits everywhere, stores (incl. S3) only on the internal network, S3 admin credentials only in s3-init; broker and worker are separate services
|
||||
docker compose ps -a --format "table {{.Service}}\t{{.ID}}\t{{.Status}}"
|
||||
SERVICE CONTAINER ID STATUS
|
||||
api b0db3e40abfe Up 34 seconds (healthy)
|
||||
api ef44b0d4c0a1 Up 34 seconds (healthy)
|
||||
broker 9f909ed7ecea Up 43 seconds (healthy)
|
||||
lb 8be67a2e86b7 Up 33 seconds (healthy)
|
||||
migrate e6c2c825d38d Exited (0) 35 seconds ago
|
||||
postgres d2bfd48385f1 Up 43 seconds (healthy)
|
||||
s3 892c7ca290f2 Up 43 seconds (healthy)
|
||||
s3-init 08c2e7925d67 Exited (0) 35 seconds ago
|
||||
valkey 4e223cb9301e Up 43 seconds (healthy)
|
||||
worker d9eced386d93 Up 34 seconds (healthy)
|
||||
s3-init-1 | s3-init: bucket messenger-attachments created; anonymous access: 403 (private)
|
||||
migrate-1 | 2026-10-25 18:20:01,879 INFO messenger.db: Миграции применены: 001_core, 002_sessions, 003_text_as_bytes, 004_message_idempotency, 005_attachments, 006_jobs
|
||||
api 48dc392933dc Up 49 seconds (healthy)
|
||||
api c1b7e1ab5673 Up 49 seconds (healthy)
|
||||
broker 9f909ed7ecea Up About a minute (healthy)
|
||||
lb 8be67a2e86b7 Up 48 seconds (healthy)
|
||||
migrate a5a9934b4d6b Exited (0) About a minute ago
|
||||
postgres d2bfd48385f1 Up About a minute (healthy)
|
||||
s3 892c7ca290f2 Up About a minute (healthy)
|
||||
s3-init deab1aa2b022 Exited (0) 50 seconds ago
|
||||
valkey 4e223cb9301e Up About a minute (healthy)
|
||||
worker 292a36c54a41 Up 49 seconds (healthy)
|
||||
s3-init-1 | s3-init: bucket messenger-attachments already exists; anonymous access: 403 (private)
|
||||
migrate-1 | 2026-10-26 16:15:25,625 INFO messenger.db: Миграции: новых нет, схема актуальна
|
||||
|
||||
Reference in New Issue
Block a user