forked from mtusi2026/mtusi2026lab5
lab5: RabbitMQ, relay и worker в стенде; reconciler lab4 убран
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> broker: RabbitMQ 4.3.7 (тег+digest), quorum queue + DLX/DLQ из definitions, пользователи relay (только publish в exchange) и worker (только consume), без management UI и портов. relay: outbox -> publish с publisher confirm, reaper истёкших lease, страховка от потерянных сообщений. worker: claim + heartbeat lease, варианты, публикация с fencing, ack после COMMIT, graceful stop, уборка staging и мусора попыток. S3: два bucket и четыре identity (admin, api, worker, auditor) с проверкой модели доступа в s3-init. Отдельная сеть queue. Reconciler lab4 (трек прошлой лабы) удалён: его роль выполняет уборка по журналу попыток.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# RabbitMQ 4.3 of the lab 5 stand (compose service `broker`), mounted as conf.d/20-lab5.conf.
|
||||
# Only AMQP 0-9-1 on 5672 inside the internal network `queue`: no management UI, no Prometheus
|
||||
# listener (enabled_plugins is empty), nothing published on the host.
|
||||
listeners.tcp.default = 5672
|
||||
|
||||
# Users, permissions and topology are imported from files at every boot (idempotent):
|
||||
# /etc/rabbitmq/definitions.d/topology.json exchanges, quorum queues, bindings (this repo)
|
||||
# /etc/rabbitmq/definitions.d/users.json users relay/worker + permissions (Docker secret,
|
||||
# generated by scripts/init_secrets.py)
|
||||
# With imported definitions no default `guest` user is created.
|
||||
definitions.import_backend = local_filesystem
|
||||
definitions.local.path = /etc/rabbitmq/definitions.d
|
||||
definitions.skip_if_unchanged = false
|
||||
|
||||
# A delivery that stays unacked longer than this closes the consumer's channel and the message
|
||||
# is returned to the queue (a worker that hangs while connected). Far above JOB_TIMEOUT_SECONDS.
|
||||
consumer_timeout = 300000
|
||||
|
||||
# The container has a 512 MiB limit; flow control starts well before the cgroup OOM.
|
||||
vm_memory_high_watermark.relative = 0.5
|
||||
disk_free_limit.absolute = 200MB
|
||||
|
||||
log.console = true
|
||||
log.console.level = info
|
||||
Reference in New Issue
Block a user