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:
@@ -400,6 +400,23 @@ bench_uploads:
|
||||
bench_uploads_quick:
|
||||
$(KEEP_AWAKE) uv run python bench/run.py --profile uploads_quick --label quick-uploads-$(shell date -u +%Y%m%dT%H%M%SZ)
|
||||
|
||||
# Очередь под перегрузкой (лаба 5, трек 1; design change track1-queue-overload):
|
||||
# стенд mtusi-bench с S3, брокером, relay, worker и уборщиком, настройки
|
||||
# конкуренции и prefetch × классы изображений × 3 повтора и блоки предела, приёма,
|
||||
# второго worker и рестартов, на каждую ячейку — свежий стенд; ~2 ч 10 мин;
|
||||
# результат — evidence/queue/$(QUEUE_LABEL)/. RESUME=1 — продолжить прерванную метку
|
||||
# на том же commit
|
||||
QUEUE_LABEL ?= baseline
|
||||
.PHONY: bench_queue
|
||||
bench_queue:
|
||||
$(KEEP_AWAKE) uv run python bench/run.py --profile queue --label $(QUEUE_LABEL) $(if $(RESUME),--resume)
|
||||
|
||||
# то же коротко (самопроверка, защита): две настройки, предел с пределом 40 и без
|
||||
# него, рестарт worker, второй worker, окна короче, ~11 мин; в git не идёт
|
||||
.PHONY: bench_queue_quick
|
||||
bench_queue_quick:
|
||||
$(KEEP_AWAKE) uv run python bench/run.py --profile queue_quick --label quick-queue-$(shell date -u +%Y%m%dT%H%M%SZ)
|
||||
|
||||
RECONCILE_LABEL ?= baseline
|
||||
|
||||
# трек 2 «5» лабы 4: стоимость сверки bucket и БД на стенде mtusi-bench
|
||||
|
||||
Reference in New Issue
Block a user