Skip to Content
QueuesRabbitMQ

How Zenifra RabbitMQ works

This page shows how Zenifra managed RabbitMQ is configured: how many nodes it uses, how memory, connections, and channels are set in each plan, how messages are stored and replicated, and how the connection is protected. To connect and use exchanges, routing keys, and dead-letter, see Queues with RabbitMQ.

Summary

ItemHow it works
Version4.4
Engineofficial RabbitMQ, no fork
Nodes1 on queue-starter; 3 on queue-basic, queue-premium, and queue-enterprise
Default queue typeclassic with 1 node; quorum queue with 3 nodes
Memorymemory alarm at 60% of the plan RAM (vm_memory_high_watermark)
Diskdisk alarm below 256 MB free (disk_free_limit)
Connectionsfrom 100 to 5,000 per plan
Channelsfrom 128 to 1,024 per connection, from 400 to 12,000 in total
Messageup to 4 MiB on Starter and 16 MiB on the other plans
Queuefrom 128 MiB to 2 GiB per plan
External accessAMQPS (TLS)
Storagea disk of its own on each node, encrypted
Userapp, on virtual host /
Plansqueue-starter, queue-basic, queue-premium, and queue-enterprise

Nodes per plan

PlanvCPURAMNodesDefault queue typeMinimum storage
queue-starter0.5512 MB1classic2 GB
queue-basic11 GB3quorum3 GB
queue-premium22 GB3quorum5 GB
queue-enterprise88 GB3quorum20 GB
  • vCPU and RAM apply to each node.
  • Each node has a disk of its own, of the chosen size. Storage can be increased at any time.
  • Plan changes happen between plans with the same number of nodes: Basic, Premium, and Enterprise switch among themselves. Starter stays at 1 node; to move to 3 nodes, create a new service on the plan you want. See Plans and high availability.
  • During a plan change, the nodes restart one at a time with the new resources and limits.

Memory and disk

PlanRAMMemory alarm (60%)
queue-starter512 MBabout 307 MB
queue-basic1 GBabout 614 MB
queue-premium2 GBabout 1.2 GB
queue-enterprise8 GBabout 4.8 GB
  • Memory alarm: when RabbitMQ goes past 60% of the plan RAM (vm_memory_high_watermark.relative = 0.6), publishing is blocked until memory drops. Consumers keep receiving messages.
  • Disk alarm: when a node's disk has less than 256 MB free (disk_free_limit.absolute = 256MB), publishing is blocked too.
  • Keep consumers running and increase storage before the disk fills up.

Connections and channels

The limits below are set at creation and applied again on every plan change.

PlanConnections (connection_max)Channels per connection (channel_max)Total channelsMax message size (max_message_size)
queue-starter1001284004 MiB
queue-basic3002561,20016 MiB
queue-premium1,0005123,00016 MiB
queue-enterprise5,0001,02412,00016 MiB
  • Connections and total channels add up every connection of the app user, across all nodes.
  • Past the limit, the server refuses the new connection or the new channel. A refused connection gets NOT_ALLOWED - connection refused: node connection limit (100) is reached, with the plan limit in place of 100.
  • A message larger than the maximum size is refused.
  • Use few connections and reuse channels. One connection per process, with one channel per thread or task, fits any plan with room to spare.

Durability

  • Default queue type: a queue declared without x-queue-type uses the plan default (default_queue_type): quorum queue on plans with 3 nodes and classic queue on Starter.
  • Quorum queue: each message is replicated across the 3 nodes and written to disk. The queue keeps working while a majority of the nodes (2 of 3) is up.
  • Classic queue: declare the queue as durable and publish with persistent so messages stay on disk and come back after a restart.
  • Publisher confirms: turn them on in the channel (createConfirmChannel, confirm_delivery). The server confirms each publish after accepting the message, and the application knows what it needs to resend.
  • Manual ack on the consumer: ack only after processing. A message without an ack goes back to the queue if the connection drops.
  • Maximum queue size: a Zenifra policy applies to every queue, with the plan limit (max-length-bytes) and overflow set to reject-publish. When the queue is full, new publishes to it are refused, and with publisher confirms the application gets a nack.
PlanMax queue size
queue-starter128 MiB
queue-basic256 MiB
queue-premium512 MiB
queue-enterprise2 GiB

Replication and high availability

  • Basic, Premium, and Enterprise: 3 nodes, with quorum queues by default.
  • The nodes always sit on different servers, close to each other on the network, so a server failure takes down at most one node and the majority stays up.
  • Starter: 1 node, with classic queues. Durable queues and persistent messages stay on the node's disk and come back with it after a restart.
  • Automatic backups included in the plan, with frequency and retention per plan. See Automatic backups.

Failover

  • If a node fails, quorum queues keep running on the other 2 nodes, with no action from you.
  • The Console host does not change: it leads to the nodes that are running.
  • Connections open to the failed node are closed. Set up the application to reconnect, resend unconfirmed publishes, and handle repeated messages with an idempotency key.
  • The same applies to a plan change, when the nodes restart one at a time.

Encryption and TLS

  • External access: the public port accepts only AMQPS (amqps://), with TLS.
  • Certificate: issued for *.managed.zenifra.com. Always connect through the Console host (rabbitmq-<id>.managed.zenifra.com), not the IP.
  • Private connection: applications in your organization linked by a private connection use amqp:// on port 5672, inside the private network.
  • At rest: the disks of every node are encrypted.

User, virtual host, and permissions

  • The application user is app, on virtual host /, with a random password generated at creation. To change it, use credential rotation.
  • app can configure, write, and read across the whole / virtual host: it creates, changes, and removes exchanges, queues, and bindings from the AMQP client itself.
  • app is an application user. Server administration (configuration, policies, plugins, and version) stays with Zenifra and follows the plan.

Limits

  • Connections, channels, message size, and queue size follow the plan, as in the tables above. For more, change the plan.
  • Storage starts at the plan minimum and grows whenever you increase it.
  • These are the current limits and may change.

Next steps

RabbitMQ® is a trademark of Broadcom, Inc. in the U.S. and other countries. Zenifra is not affiliated with or endorsed by Broadcom.

Last updated on

On this page