lab4: исправления по ревью

This commit is contained in:
Vladislav Kunetskiy
2026-10-21 23:25:11 +03:00
parent 3389c6c900
commit e9f0fde6f2
32 changed files with 451 additions and 131 deletions
+9 -5
View File
@@ -38,7 +38,7 @@ services:
# runs at its quota while API replicas idle. Raise this knob to give the
# shared dependency more of the host CPU.
cpus: "${POSTGRES_CPU_LIMIT:-0.50}"
memory: ${POSTGRES_MEM_LIMIT:-384M}
memory: ${POSTGRES_MEM_LIMIT:-192M}
restart: unless-stopped
redis:
@@ -64,7 +64,7 @@ services:
resources:
limits:
cpus: "0.25"
memory: 192M
memory: 96M
restart: unless-stopped
# Private S3-compatible object store. Only the S3 API is published, on
@@ -81,6 +81,10 @@ services:
volumes:
- ./infra/s3/s3.json:/etc/seaweedfs/s3.json:ro
- seaweedfs-data:/data
environment:
# Keep the Go runtime below the container limit under concurrent PUTs.
GOGC: "50"
GOMEMLIMIT: "512MiB"
ports:
- "127.0.0.1:${S3_PORT:-8333}:8333"
healthcheck:
@@ -93,7 +97,7 @@ services:
resources:
limits:
cpus: "1.00"
memory: 768M
memory: 640M
restart: unless-stopped
# One-shot, idempotent bucket bootstrap and identity probe.
@@ -188,7 +192,7 @@ services:
resources:
limits:
cpus: "${API_CPU_LIMIT:-0.50}"
memory: ${API_MEM_LIMIT:-384M}
memory: ${API_MEM_LIMIT:-256M}
# The app drains on SIGTERM within SERVER_SHUTDOWN_TIMEOUT; keep the grace
# period above it so Docker does not SIGKILL an in-flight request.
stop_grace_period: 15s
@@ -230,7 +234,7 @@ services:
resources:
limits:
cpus: "${LB_CPU_LIMIT:-0.25}"
memory: 64M
memory: 48M
restart: unless-stopped
volumes: