lab5: очередь RabbitMQ, outbox, worker, варианты, fault-injection
This commit is contained in:
+14
-1
@@ -7,7 +7,7 @@ SESSION_TTL_SECONDS=3600
|
||||
# Choose credentials locally. File paths contain no secret values.
|
||||
DATABASE_URL_FILE=/run/secrets/database_url
|
||||
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
||||
SESSION_STORE=postgres
|
||||
SESSION_STORE=redis
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
API_REPLICAS=2
|
||||
IDEMPOTENCY_TTL_SECONDS=86400
|
||||
@@ -23,3 +23,16 @@ WORKER_CONCURRENCY=2
|
||||
JOB_MAX_ATTEMPTS=5
|
||||
JOB_TIMEOUT_SECONDS=60
|
||||
STAGING_RETENTION_SECONDS=86400
|
||||
# Graceful shutdown: after SIGTERM readiness=503 for DRAIN_DELAY, then Shutdown up to SHUTDOWN_TIMEOUT.
|
||||
DRAIN_DELAY=3s
|
||||
SHUTDOWN_TIMEOUT=8s
|
||||
# Reconciler (PostgreSQL <-> S3): background pass interval and safe grace period.
|
||||
RECONCILE_INTERVAL=10m
|
||||
RECONCILE_GRACE=1h
|
||||
# Pipeline (lab5): published version, retry backoff (exponential with jitter), WebP quality, memory budget.
|
||||
PIPELINE_VERSION=1
|
||||
RETRY_BASE_DELAY=2s
|
||||
RETRY_MAX_DELAY=60s
|
||||
WEBP_QUALITY=80
|
||||
WORKER_PIXEL_BUDGET=60000000
|
||||
WORKER_REPLICAS=1
|
||||
|
||||
Reference in New Issue
Block a user