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
+7 -2
View File
@@ -21,11 +21,16 @@ defaults
option httplog
option dontlognull
timeout connect 1s
timeout client 30s
timeout server 5s
timeout client 70s
timeout server 45s
# Проверка готовности: одна проба не может висеть дольше 1 с, поэтому при
# inter 2s fall 2 реплика уходит из ротации максимум за ~4 с, даже если она
# держит соединение открытым и не отвечает.
#
# timeout server увеличен для 10 MiB загрузок: spool + S3 Put не всегда
# укладываются в прежние 5 с под конкурентной нагрузкой. Readiness-проба
# остаётся с timeout check 1s, поэтому обнаружение мёртвой реплики не
# замедляется.
timeout check 1s
retry-on conn-failure
retries 2
+3 -1
View File
@@ -4,7 +4,9 @@
the single source of truth for S3 credentials and permissions.
- `admin` is used only by the one-shot `s3-init` service (bucket creation and
probing). It is never given to the API.
probing). It is never given to the API and must not be placed in `.env`:
the API service loads `.env` as an environment file. Compose supplies the
synthetic admin values to `s3-init` directly.
- `app` is used by the API and by presigned uploads. It can read/write only
`messenger-attachments/attachments/*` and `messenger-attachments/staging/*`,
and list the bucket for the orphan sweeper.