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
| Item | How it works |
|---|---|
| Version | 4.4 |
| Engine | official RabbitMQ, no fork |
| Nodes | 1 on queue-starter; 3 on queue-basic, queue-premium, and queue-enterprise |
| Default queue type | classic with 1 node; quorum queue with 3 nodes |
| Memory | memory alarm at 60% of the plan RAM (vm_memory_high_watermark) |
| Disk | disk alarm below 256 MB free (disk_free_limit) |
| Connections | from 100 to 5,000 per plan |
| Channels | from 128 to 1,024 per connection, from 400 to 12,000 in total |
| Message | up to 4 MiB on Starter and 16 MiB on the other plans |
| Queue | from 128 MiB to 2 GiB per plan |
| External access | AMQPS (TLS) |
| Storage | a disk of its own on each node, encrypted |
| User | app, on virtual host / |
| Plans | queue-starter, queue-basic, queue-premium, and queue-enterprise |
Nodes per plan
| Plan | vCPU | RAM | Nodes | Default queue type | Minimum storage |
|---|---|---|---|---|---|
queue-starter | 0.5 | 512 MB | 1 | classic | 2 GB |
queue-basic | 1 | 1 GB | 3 | quorum | 3 GB |
queue-premium | 2 | 2 GB | 3 | quorum | 5 GB |
queue-enterprise | 8 | 8 GB | 3 | quorum | 20 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
| Plan | RAM | Memory alarm (60%) |
|---|---|---|
queue-starter | 512 MB | about 307 MB |
queue-basic | 1 GB | about 614 MB |
queue-premium | 2 GB | about 1.2 GB |
queue-enterprise | 8 GB | about 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.
| Plan | Connections (connection_max) | Channels per connection (channel_max) | Total channels | Max message size (max_message_size) |
|---|---|---|---|---|
queue-starter | 100 | 128 | 400 | 4 MiB |
queue-basic | 300 | 256 | 1,200 | 16 MiB |
queue-premium | 1,000 | 512 | 3,000 | 16 MiB |
queue-enterprise | 5,000 | 1,024 | 12,000 | 16 MiB |
- Connections and total channels add up every connection of the
appuser, 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-typeuses 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
persistentso 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:
ackonly after processing. A message without anackgoes 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) andoverflowset toreject-publish. When the queue is full, new publishes to it are refused, and with publisher confirms the application gets anack.
| Plan | Max queue size |
|---|---|
queue-starter | 128 MiB |
queue-basic | 256 MiB |
queue-premium | 512 MiB |
queue-enterprise | 2 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 port5672, 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. appcan configure, write, and read across the whole/virtual host: it creates, changes, and removes exchanges, queues, and bindings from the AMQP client itself.appis 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
- Queues with RabbitMQ
- Queues: choose an engine
- Private connections between applications
- Automatic backups
- Which plan to choose for Cache and Queues
- Managed services API
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
Queues with RabbitMQ: exchanges, routing keys, dead-letter
RabbitMQ engine for Zenifra Queues: amqps URL, Node.js and Python examples, exchanges, routing keys, dead-letter, scheduled delivery, limits, and backups.
Storage: object storage
Store images, videos, backups, and other files in Zenifra Storage: private buckets, optional public files, access keys, expiring links, and permissions.