Тип сервиса
Сервис приложения
Сервис RabbitMQ
Брокер сообщений RabbitMQ для очередей AMQP, событийно-ориентированных задач и асинхронного взаимодействия сервисов.
Вы добавляете этот сервис в стек и выбираете там его версию и ресурсы. Каждое окружение может их переопределить.
В StackMaster
Как RabbitMQ работает в StackMaster
What Wodby sets up for this RabbitMQ service.
How applications reach it
- Host: the name of this app service inside the environment.
- Ports:
5672AMQP (no TLS),15672management UI and HTTP API (the service's main HTTP endpoint),15692Prometheus metrics at/metrics(private, internal only). - Credentials are tokens of this service:
username(a fixed account name),password(generated) andvhost(/). A service linked to this one receives host, port and these tokens in variables named by the linking service; read them in code and do not copy the password into the repository. - Inside this container the same values are in
RABBITMQ_DEFAULT_USER,RABBITMQ_DEFAULT_PASSandRABBITMQ_DEFAULT_VHOST. The same account signs in to the management UI. - An Erlang cookie is also generated (token
erlang_cookie); applications do not need it.
What is configured
- The plugins
rabbitmq_managementandrabbitmq_prometheusare enabled. - On every start the container writes
/etc/rabbitmq/conf.d/90-wodby.conffrom environment variables. Never edit it; set the variables on the service:
| Variable | Setting | Default |
|---|---|---|
RABBITMQ_CHANNEL_MAX | channel_max | 2047 |
RABBITMQ_HEARTBEAT | heartbeat | 60 |
RABBITMQ_VM_MEMORY_HIGH_WATERMARK_RELATIVE | memory high watermark, share of available memory | 0.4 |
RABBITMQ_DISK_FREE_LIMIT | disk_free_limit.absolute | 50MB |
- The default user, password and virtual host are applied by RabbitMQ only when it first creates its database. Later changes to the account are made in RabbitMQ itself (
rabbitmqctl, management UI), not by changing the variables. - The service runs as a single node and is not scalable.
Data
Broker data (definitions, queues, messages) is in /var/lib/rabbitmq. The data volume is optional; without it everything, including users and queues created at runtime, is lost when the container is replaced. A message survives a restart only when the volume exists and the queue is durable and the message persistent. The manifest declares no backups, imports or actions.
Check the result
From this service's container:
rabbitmq-diagnostics -q pingandrabbitmq-diagnostics -q statusrabbitmqctl list_queues name messages consumersrabbitmqctl list_usersandrabbitmqctl list_permissions -p /
Обзор
Технический профиль RabbitMQ
Здесь перечислены версии, которые можно выбрать для RabbitMQ в стеке или окружении. Сам сервис публикуется ревизиями, и стек ссылается на конкретную ревизию.
Сервис приложения
Версии
4.3, 4.2
Репозиторий исходного кода
Публичный Helm-чарт
Постоянные тома
Data
Конфигурация
Конфигурация сервиса RabbitMQ
Сервис RabbitMQ объявляет следующее. Если значение можно изменить, его задаёт стек, а каждое окружение может его переопределить.
Технические домены
StackMaster выдаёт каждому публичному HTTP-порту технический домен с TLS-сертификатом и продлевает сертификат. Порт, который сервис помечает как частный, домен не получает. Можно добавить собственные домены.
Тома
Data