Реализовать lab4 на оценку 4: SeaweedFS, вложения и согласованность БД/S3.

Перенесён стенд lab3 (API, Redis-сессии, идемпотентность, HAProxy, реплики API). Добавлены приватный bucket SeaweedFS с отдельным ключом API, загрузка PNG/JPEG с лимитами и полной проверкой, компенсация и reconciler, плавная остановка API, тесты и evidence.
This commit is contained in:
Mikhail Verkovykh
2026-11-06 19:48:37 +03:00
parent ec540a1a72
commit 728e53cc55
94 changed files with 8821 additions and 43 deletions
+22
View File
@@ -0,0 +1,22 @@
# S3 gateway sidecar (lab4). Runs in the network namespace of the `s3` service:
# SeaweedFS listens on 127.0.0.1 only, this proxy publishes just the S3 HTTP API
# as s3:9000 on the internal `storage` network. Master/volume/filer UIs and the
# unauthenticated gRPC ports (1xxxx) stay unreachable from other containers.
global
maxconn 512
log stdout format raw local0
defaults
mode tcp
log global
option tcplog
timeout connect 3s
timeout client 60s
timeout server 60s
frontend s3_api
bind *:9000
default_backend seaweed_s3
backend seaweed_s3
server s3 127.0.0.1:8333