feat: add job outbox, relay, leases and image variants to the pipeline
Move publishing out of the upload path: a relay process publishes queued jobs with confirms. Add lease and attempt fencing, backoff with jitter, a per-job render process with CPU and memory limits, crop and optimized variants, the failed registry with audited replay, and staging cleanup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -101,11 +101,12 @@ backend api
|
||||
# загрузки:
|
||||
# до тела — 2 × [database] request_timeout_seconds (вход, членство) +
|
||||
# [uploads] wait_timeout_seconds = 2 × 6 + 5 = 17 с;
|
||||
# после тела — проверка (до ~4 с) + pending 6 + PUT 5 + queued 6 +
|
||||
# публикация 2 + отметка или отмена 6 ≈ 29 с; ветка компенсации после
|
||||
# неудачной фиксации queued — компенсация 5 вместо публикации, 26 с.
|
||||
# после тела — проверка (до ~4 с) + pending 6 + PUT 5 + queued 6 = 21 с,
|
||||
# а ветка компенсации после неудачной фиксации queued — ещё DELETE 5,
|
||||
# 26 с: брокера в пути нет (design change pipeline-reliability, решение
|
||||
# 11).
|
||||
# Тело ограничивают [uploads] body_timeout_seconds (30 с) и timeout
|
||||
# client; наибольшая длительность загрузки 17 + 30 + 29 ≈ 76 с <
|
||||
# client; наибольшая длительность загрузки 17 + 30 + 26 ≈ 73 с <
|
||||
# ROLLOUT_DRAIN_TIMEOUT (90 с, scripts/rolling-update.sh). Остальные
|
||||
# пути — прежние 10 с. Выражение — путь ручки в API
|
||||
# (src/api/routers/v1/attachment.py): при смене префикса менять вместе
|
||||
|
||||
Reference in New Issue
Block a user