Лабораторная работа 6

This commit is contained in:
2026-11-13 01:27:57 +03:00
parent 470d9d6f1e
commit 2dbdcf898c
218 changed files with 22057 additions and 37 deletions
+17
View File
@@ -0,0 +1,17 @@
# lab5: стенд внедрения отказов worker'а (только учебный, не для обычной работы).
# docker compose -f compose.yaml -f compose.faults.yaml up -d --no-deps worker
# Включает маркеры в filename (fault-crash-after-effects, fault-crash-before-ack,
# fault-transient-until-3, fault-transient-until-replay, fault-permanent, fault-slow)
# и укорачивает аренду/backoff, чтобы сценарии проходили за секунды.
# Возврат к обычному worker: docker compose up -d --no-deps --force-recreate worker
# Используется автоматически: python scripts/ops.py pipeline-faults
services:
worker:
environment:
WORKER_FAULTS: "true"
JOB_TIMEOUT_SECONDS: "25"
JOB_LEASE_GRACE_SECONDS: "2"
JOB_CLAIM_IDLE_SECONDS: "30"
JOB_RETRY_BASE_SECONDS: "1"
JOB_RETRY_MAX_SECONDS: "4"
WORKER_IMAGE_TIMEOUT_SECONDS: "5"