feat: limit accepted attachment work and add queue overload bench

Reject uploads with 429 at [uploads] max_unfinished_jobs, counted by the existing partial indexes in the membership block. Add the bench_queue profile, hypotheses H1-H9 and the fifth failure-stand API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 07:30:08 +03:00
co-authored by Claude Opus 5.5
parent 5b5f59aa3b
commit d667fa3c57
53 changed files with 5043 additions and 122 deletions
+5 -2
View File
@@ -169,7 +169,8 @@ pass». Модуль `attachment_cleanup_service`: «Finished staging cleanup pa
с `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`,
`uploads_body_timeout_seconds`, с change `track1-queue-overload` —
`uploads_max_unfinished_jobs` (спек `service-configuration`,
«Параметры загрузок»).
- С лабы 4 — `filename` вложений (его выбирает пользователь) и байты
изображений. Модуль `attachment_service` пишет `info` «Uploaded
@@ -178,7 +179,9 @@ pass». Модуль `attachment_cleanup_service`: «Finished staging cleanup pa
«Rejected attachment» с `reason` (`type`, `declared_size`, `size`,
`content`, `content_mismatch`, `damaged`, `pixels`, `interrupted`; с
change `upload-memory` — `busy` с `waited_ms`: места заняты, 429, и
`body_timeout` с `size` прочитанного: тело не пришло за срок, 400),
`body_timeout` с `size` прочитанного: тело не пришло за срок, 400; с
change `track1-queue-overload` — `backlog` с `unfinished` и `limit`: предел
заданий, 429; профиль очереди сверяет эти записи с числом 429),
`chat_id` и `filename_length`, `error` «Attachment content is missing» / «…size
differs» с `attachment_id` и `object_key`. С change
`upload-consistency`: `warning` «Attachment upload left pending» с