forked from mtusi2026/mtusi2026lab5
абораторная 5: брокер, worker, outbox, варианты изображений, тесты отказов (оценка 4)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# stack: stand layout: replicas, ports, limits, networks, secrets, S3
|
||||
# date: 2026-10-24 15:30:20, commit: 276dbda + uncommitted changes
|
||||
# command: python.exe student-tests/check_stack.py
|
||||
# exit code: 0, 3.0 s
|
||||
|
||||
host: Windows 10, AMD64 Family 26 Model 68 Stepping 0, AuthenticAMD; client Python 3.11.1
|
||||
Docker 28.1.1, Docker Compose version v2.35.1-desktop.1; Docker VM: 16 CPU, 15.2 GiB RAM, Docker Desktop
|
||||
|
||||
SERVICE CONTAINER ID STATUS PORTS
|
||||
api b9ad6d33d190 Up 4 minutes (healthy) 8080/tcp
|
||||
api 5aa14958c864 Up 4 minutes (healthy) 8080/tcp
|
||||
dispatcher 9c5531a487f2 Up 3 minutes (healthy)
|
||||
janitor c412a9460051 Up 6 minutes (healthy)
|
||||
lb 0760689bc54d Up 6 minutes (healthy) 127.0.0.1:8080->8080/tcp, 127.0.0.1:8404->8404/tcp
|
||||
migrate 72d1affe9c8e Exited (0) 3 seconds ago
|
||||
postgres 10fec15d4ea6 Up 7 minutes (healthy)
|
||||
rabbitmq 95b4214594a8 Up 4 minutes (healthy)
|
||||
redis e7ed9903c342 Up 7 minutes (healthy)
|
||||
s3 56a0cdfb9bc8 Up 7 minutes (healthy)
|
||||
s3-init 39d4358fe2ba Exited (0) 2 seconds ago
|
||||
worker 6e040d05805f Up 3 minutes (healthy)
|
||||
|
||||
container image cpus memory host ports networks
|
||||
messenger-lab5-api-1 messenger-lab5-api 1.00 512 MiB - data,edge
|
||||
messenger-lab5-api-2 messenger-lab5-api 1.00 512 MiB - data,edge
|
||||
messenger-lab5-dispatcher-1 messenger-lab5-dispatcher 0.25 128 MiB - data
|
||||
messenger-lab5-janitor-1 messenger-lab5-janitor 0.25 192 MiB - data
|
||||
messenger-lab5-lb-1 haproxy:3.2.25-alpine 0.50 128 MiB 127.0.0.1:8080,127.0.0.1:8404 edge
|
||||
messenger-lab5-postgres-1 postgres:17.11-alpine 1.00 512 MiB - data
|
||||
messenger-lab5-rabbitmq-1 rabbitmq:4.1.4-alpine 1.00 512 MiB - data
|
||||
messenger-lab5-redis-1 redis:7.4.11-alpine 0.50 128 MiB - data
|
||||
messenger-lab5-s3-1 chrislusf/seaweedfs:3.80 1.00 512 MiB - data
|
||||
messenger-lab5-worker-1 messenger-lab5-worker 2.00 1536 MiB - data
|
||||
|
||||
secrets of api: ['cache_url', 'database_url', 's3_access_key_id', 's3_secret_access_key']
|
||||
secrets of dispatcher: ['broker_url_dispatcher', 'database_url']
|
||||
secrets of janitor: ['database_url', 's3_access_key_id', 's3_secret_access_key']
|
||||
secrets of lb: -
|
||||
secrets of migrate: ['database_url']
|
||||
secrets of postgres: ['postgres_password']
|
||||
secrets of rabbitmq: ['rabbitmq_definitions']
|
||||
secrets of redis: ['redis_auth']
|
||||
secrets of s3: ['s3_config']
|
||||
secrets of s3-init: ['s3_access_key_id', 's3_root_password', 's3_root_user', 's3_secret_access_key']
|
||||
secrets of worker: ['broker_url_worker', 'database_url', 's3_access_key_id', 's3_secret_access_key']
|
||||
|
||||
through http://127.0.0.1:8080 one session is served by 2 replicas: ['5aa14958c864', 'b9ad6d33d190']
|
||||
/health/ready -> 200 from b9ad6d33d190
|
||||
PASS: 2 api replicas behind one entry point, no direct API ports, limits on every container, postgres/redis/s3/janitor/rabbitmq/worker/dispatcher only in the internal data network, S3 admin keys only in s3 and s3-init, broker credentials only in dispatcher/worker
|
||||
Reference in New Issue
Block a user