Development12 min read•Updated November 2026

VPS Hosting for RabbitMQ

Quick answer

To run RabbitMQ on a VPS, install a supported release from the official packages or Docker image, create a dedicated user and virtual host for each application (the default guest user only works from localhost), keep the management UI and AMQP ports private, and enable TLS for remote clients. Use quorum queues for messages that must survive failures, publisher confirms and consumer acknowledgements with a sensible prefetch, keep queues short by scaling consumers, leave memory and disk headroom so alarms do not block publishers, and run a three-node cluster when the broker is critical. Monitor queue depth, consumer counts and alarms.

RabbitMQ is a mature message broker used to decouple services, distribute work to background workers and route events. It supports flexible routing through exchanges, strong delivery guarantees and several protocols. A VPS gives you a dedicated broker with predictable performance, provided it is configured for durability and monitored.

Core Concepts

  • Exchanges receive messages and route them to queues by type: direct, topic, fanout or headers.
  • Queues store messages until consumers process them.
  • Bindings connect exchanges to queues with routing rules.
  • Virtual hosts separate applications with their own exchanges, queues and permissions.

Installation and Ports

Install RabbitMQ and a compatible Erlang version from the official repositories, or run the official Docker image with a persistent volume for data. Common ports:

PortUse
5672 / 5671AMQP / AMQP over TLS
15672Management UI and HTTP API
25672, 4369Inter-node communication and peer discovery in clusters
15692Prometheus metrics (when enabled)

Allow these only from application servers and administrators; never expose the management UI publicly.

Users and Virtual Hosts

Create a virtual host per application or environment and a user per application with permissions limited to its virtual host. The built-in guest user can only connect from localhost by default; keep it that way or delete it. Use strong generated passwords stored in your secrets management.

Choosing Queue Types

TypeUse
Quorum queuesReplicated, durable queues using Raft; recommended for important messages in clusters
Classic queuesSingle-node queues; fine for transient or less critical data
StreamsAppend-only logs with replay, for high-volume event streams

Older classic mirrored queues have been removed in recent major versions; use quorum queues for replication. Declare durable queues and publish persistent messages for data you cannot lose.

Reliable Delivery

  • Publisher confirms: the broker confirms each message once safely stored; publishers retry unconfirmed messages.
  • Consumer acknowledgements: consumers acknowledge after processing; unacknowledged messages are redelivered if a consumer dies.
  • Prefetch (QoS): limit unacknowledged messages per consumer (often 10–100 for fast tasks, 1 for long tasks) to balance work.
  • Dead-letter exchanges: route rejected or expired messages to a separate queue for inspection.
  • Idempotent consumers: redelivery means a message may be processed twice.

Memory and Disk Alarms

RabbitMQ raises a memory alarm when usage passes the configured high watermark (a fraction of system RAM by default) and a disk alarm when free disk falls below its limit. While an alarm is active, publishers are blocked. Prevent this by keeping queues short (add consumers when backlogs grow), setting queue length limits or TTLs where appropriate, leaving memory headroom on the VPS, and setting the disk free limit to a safe value for your message volume.

TLS and Security

  • Enable TLS for clients connecting across networks.
  • Keep ports firewalled to known servers.
  • Put the management UI behind a VPN or restrict it by IP.
  • Update RabbitMQ and Erlang regularly, following the compatibility matrix.

Clustering

For high availability, run three nodes (an odd number, so quorum queues keep a majority) on separate VPS servers in the same region with low-latency private networking. Clients should connect through a load balancer or a list of nodes and reconnect automatically. Clusters add operational work: upgrades must follow the documented rolling procedure, and all nodes share the same Erlang cookie.

Monitoring

Enable the Prometheus plugin and track queue depth, message rates in and out, unacknowledged messages, consumer counts, connections, memory and disk alarms, and node health. Alert when a queue grows steadily or has no consumers, and on any alarm (see our monitoring guide).

Backups and Definitions

Export definitions (users, virtual hosts, exchanges, queues, policies) regularly and store them in version control or backups, so you can rebuild the topology quickly. Messages themselves are transient by nature; protect them with quorum queue replication rather than file backups.

Sizing

WorkloadSuggested plans
Task queue for a web app, single node2 vCores / 8 GB
Busy microservices, persistent messages4 vCores / 16 GB
Critical workloads with quorum queues3 × 4 vCores / 16 GB cluster

Fast NVMe storage helps with persistent messages and quorum queues, which write to disk.

RabbitMQ or Kafka?

RabbitMQ excels at task distribution, flexible routing and per-message acknowledgement. Kafka excels at high-volume event streams retained for replay by many consumers (see our Kafka guide). For Python task queues, RabbitMQ pairs naturally with Celery (see our Celery guide).

Example: Order Processing

An online business publishes order events to a topic exchange on a three-node RabbitMQ cluster. Quorum queues feed separate consumers for invoicing, inventory and notifications, each with prefetch 20 and idempotent processing. Failed messages go to dead-letter queues reviewed daily, and alerts fire when any queue backlog exceeds five minutes of normal traffic.

Common Mistakes

  • Using the guest user or one shared user for every app.
  • Management UI exposed to the internet.
  • No publisher confirms or consumer acknowledgements.
  • Letting queues grow until memory alarms block publishers.
  • Two-node clusters, which cannot keep a quorum after a failure.

In Short

Run RabbitMQ with per-app users and virtual hosts, private ports and TLS, quorum queues for important data, confirms and acknowledgements, short queues with headroom, three-node clusters for critical use, and good monitoring.

SkyRainCloud Plans for This Workload

RabbitMQ needs memory headroom and fast disks for persistent messages. 2 vCores / 8 GB handles thousands of messages per second for typical apps; a three-node cluster of 4 vCores / 16 GB suits critical workloads.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

Can RabbitMQ run on a VPS?
Yes. Install it from official packages or Docker with persistent storage, and keep its ports private.
Which ports does RabbitMQ use?
5672 for AMQP, 5671 for AMQP over TLS, 15672 for the management UI, and 25672 and 4369 for clustering.
What are quorum queues?
Replicated, durable queues based on Raft, recommended for important messages in clusters.
Why are my publishers blocked?
A memory or disk alarm is active; reduce queue backlogs, add consumers or increase resources.
How do I avoid losing messages?
Use durable quorum queues, persistent messages, publisher confirms and consumer acknowledgements.
What is prefetch?
A limit on unacknowledged messages per consumer, used to balance work and control memory.
How many nodes should a RabbitMQ cluster have?
Three is the usual minimum for high availability; use an odd number.
Should the management UI be public?
No. Restrict it to a VPN or trusted IP addresses.
RabbitMQ or Kafka?
RabbitMQ for task distribution and routing; Kafka for high-volume event streams with replay.
Which plan suits RabbitMQ?
2 vCores / 8 GB for typical apps; three 4 vCore / 16 GB nodes for critical clusters.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning