feat: bound upload memory with per-replica slots and a body deadline

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 00:23:37 +03:00
co-authored by Claude Opus 5.5
parent fc1524d0d6
commit 6cab9d3c41
55 changed files with 4133 additions and 209 deletions
+11 -5
View File
@@ -133,14 +133,20 @@ paths:
подпись), «Object storage denied access» (`AccessDenied`) и «Object
storage bucket is missing» (`NoSuchBucket`), `debug` на успешный
вызов; текста исключения botocore в записи нет. Запись «Started API» —
с `s3_host`, `s3_port`, `s3_bucket`; пустые ключи — `warning`.
с `s3_host`, `s3_port`, `s3_bucket`; пустые ключи — `warning`. С change
`upload-memory` в ней же `uploads_max_concurrent`,
`uploads_max_waiting`, `uploads_wait_timeout_seconds`,
`uploads_body_timeout_seconds` (спек `service-configuration`,
«Параметры загрузок»).
- С лабы 4 — `filename` вложений (его выбирает пользователь) и байты
изображений. Модуль `attachment_service` пишет `info` «Uploaded
attachment» (`attachment_id`, `chat_id`, `size_bytes`,
`content_type`, `width`, `height`, `duration_ms`), `info` «Rejected
attachment» с `reason` (`type`, `declared_size`, `size`, `content`,
`content_mismatch`, `damaged`, `pixels`, `interrupted`), `chat_id` и
`filename_length`, `error` «Attachment content is missing» / «…size
`content_type`, `width`, `height`, `waited_ms`, `duration_ms`), `info`
«Rejected attachment» с `reason` (`type`, `declared_size`, `size`,
`content`, `content_mismatch`, `damaged`, `pixels`, `interrupted`; с
change `upload-memory` — `busy` с `waited_ms`: места заняты, 429, и
`body_timeout` с `size` прочитанного: тело не пришло за срок, 400),
`chat_id` и `filename_length`, `error` «Attachment content is missing» / «…size
differs» с `attachment_id` и `object_key`. С change
`upload-consistency`: `warning` «Attachment upload left pending» с
`attachment_id` и `step` (`put`, `ready`, `commit`), `info` «Deleted