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
View File
@@ -116,6 +116,11 @@ RECONCILE_PACE_STEP_SECONDS = 0.2
# через LB уходит на следующую реплику (design change `upload-memory`,
# решение 2)
UPLOAD_RETRY_AFTER_SECONDS = 1
# секунды в Retry-After ответа 429, когда достигнут предел незавершённых
# заданий: за 5 с worker завершает 4–15 заданий, повтор через секунду почти
# всегда получил бы тот же 429, а простоя нет: при заполненном пределе работы
# на десятки секунд (design change `track1-queue-overload`, решение 2)
UPLOAD_BACKLOG_RETRY_AFTER_SECONDS = 5
# пагинация
PAGE_LIMIT_MIN = 1