lab5: очереди и асинхронная обработка изображений

Durable staging handoff, transactional outbox, at-least-once worker with lease fencing, idempotent versioned pipeline, three variants, operator tooling, contract tests and evidence. Includes the review fixes: reprocess source selection and failure settlement, replay guards, stale-job retirement, PNG structural/raster validation, migration rollback safety and audit events.
This commit is contained in:
Vladislav Kunetskiy
2026-10-31 14:34:24 +03:00
parent 6c5ba026f1
commit 01b885e846
99 changed files with 10164 additions and 1452 deletions
+10 -10
View File
@@ -1,6 +1,6 @@
#!/bin/sh
set -eu
# Restart hook: bounce API replicas and every state store of the lab4 stand.
# Restart hook: bounce API replicas, worker/relay and every state store of the lab5 stand.
#
# scripts/restart.sh
#
@@ -29,16 +29,16 @@ compose() {
$COMPOSE_BIN --env-file .env -f compose.yaml "$@"
}
# 1. State stores: restart the running ones, then make sure they are healthy.
# Volumes are attached as before, nothing is dropped or re-seeded.
compose up -d --wait postgres redis seaweedfs
compose restart postgres redis seaweedfs
compose up -d --wait postgres redis seaweedfs
# 1. State stores and broker: restart the running ones, then make sure they are
# healthy. Volumes are attached as before, nothing is dropped or re-seeded.
compose up -d --wait postgres redis seaweedfs broker
compose restart postgres redis seaweedfs broker
compose up -d --wait postgres redis seaweedfs broker
# 2. API replicas: restart in place (same containers, same addresses) and bring
# back any replica that was stopped by the fault-injection hook.
compose restart api
compose up -d --wait --no-deps api
# 2. API replicas, worker and relay: restart in place and bring back any replica
# stopped by a fault-injection hook. The worker reconnects to the broker.
compose restart api worker relay
compose up -d --wait --no-deps api worker relay
# 3. Load balancer keeps its upstream; re-resolve in case addresses changed.
compose restart lb