lab4: исправления по ревью
This commit is contained in:
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user